Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] The workflow "Build min release artifacts on macOS x64" is flaky #5677

Open
tianleh opened this issue Jan 10, 2024 · 3 comments
Open
Assignees
Labels
bug Something isn't working v2.13.0

Comments

@tianleh
Copy link
Member

tianleh commented Jan 10, 2024

Describe the bug

The Github workflow "Build min release artifacts on macOS x64" is flaky and requires a re-run to success. Below is an example of the failed run.

https://github.com/opensearch-project/OpenSearch-Dashboards/actions/runs/7470103512/job/20328249268?pr=5641

To Reproduce

  1. Find an open PR and check its workflow "Build min release artifacts on macOS x64"

Below is an example of the error.

  info [  opensearch-dashboards  ] Cleaning npm from node
   │ debg Deleting patterns: [
   │        '/Users/runner/work/OpenSearch-Dashboards/OpenSearch-Dashboards/artifacts/build/opensearch-dashboards-3.0.0-darwin-x64/node/**/node_modules',
   │        '/Users/runner/work/OpenSearch-Dashboards/OpenSearch-Dashboards/artifacts/build/opensearch-dashboards-3.0.0-darwin-x64/node/**/npm*',
   │        '/Users/runner/work/OpenSearch-Dashboards/OpenSearch-Dashboards/artifacts/build/opensearch-dashboards-3.0.0-darwin-x64/node/**/npx*',
   │        '/Users/runner/work/OpenSearch-Dashboards/OpenSearch-Dashboards/artifacts/build/opensearch-dashboards-3.0.0-darwin-x64/node/**/corepack*',
   │        '/Users/runner/work/OpenSearch-Dashboards/OpenSearch-Dashboards/artifacts/build/opensearch-dashboards-3.0.0-darwin-x64/node/**/nodevars*'
   │      ]
   │ERROR failure 1 sec
   │ERROR Error: EINVAL: invalid argument, rmdir '/Users/runner/work/OpenSearch-Dashboards/OpenSearch-Dashboards/artifacts/build/opensearch-dashboards-3.0.0-darwin-x64/node/fallback/lib/node_modules/npm/node_modules/yargs/lib'

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.

Expected behavior
The build shall be successful instead of being flaky.

OpenSearch Version
3.0.0

Dashboards Version
3.0.0

Plugins

No

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Browser and version [e.g. 22]

Additional context

Add any other context about the problem here.

@kavilla
Copy link
Member

kavilla commented Feb 20, 2024

@AMoo-Miki look into clean up.

@kavilla
Copy link
Member

kavilla commented Feb 20, 2024

Related to this: #5688

@tianleh
Copy link
Member Author

tianleh commented Feb 27, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2.13.0
Projects
None yet
Development

No branches or pull requests

3 participants