-
Notifications
You must be signed in to change notification settings - Fork 889
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
[CI] Unit tests are failing in GitHub Action for all PRs and Pushes #1231
Comments
Just re-ran the PR for 1229, seems to be just the inconsistency issue since a new set of tests failed with the echo message being From my understanding, the issue being github being limiting on the resources and then the tests run into the error The snapshot error being an existing inconsistency. For Jenkins we end up updating snapshots every time we is probably not safe. If the message needs to added to PR then will need give permissions in the org to an action that can add messages if the echo isn't helping. To solve the flakiness, might just require not using github for PR validation or refactor the unit tests. |
I think we need to re-consider how unit tests are run in GitHub Actions overall since it's taking them more than an hour to run (when successful) which is ridiculous considering they take less than a minute to run locally. |
@kavilla also I don't think this is just flakiness since unit tests were consistently passing before that commit, based on going through commits before that. All 5 of the commits were passing (on the first run) before that commit was pushed: a8d499d: https://github.com/opensearch-project/OpenSearch-Dashboards/runs/4809365830?check_suite_focus=true Could just be coincidence, but we need to figure out the root cause. |
https://github.com/opensearch-project/OpenSearch-Dashboards/runs/5070398658?check_suite_focus=true, is for a commit after fc96cc3 and succeeds on the first time. |
Yeah I agree it's really painful. Right now in github we limit the amount of workers with Locally when you run |
Ah, nice catch. I must've missed that commit. |
I reduced Going to try setting it to 1 to see if that improves it further. I've seen a few anecdotes like kulshekhar/ts-jest#1044 that suggest reducing |
I keep seeing this error:
Example: https://github.com/tmarkley/OpenSearch-Dashboards/runs/5160718614?check_suite_focus=true |
Also trying to use |
As far as am I aware runInBand would look similar to what maxWorkers=1 would be. |
This is interesting. So reducing the amount of workers that can spawn makes it goes faster? Seems kind of anti-intuitive. I believe I remember trying this before and it took nearly 4 hours. Perhaps part of the node upgrade relieved some of the issues? If maxWorkers=2 is the secret sauce but I wonder if there are other values that we can try. Like 3, 4, 5. Does it improve and consistence if it works then I would totally be excited to get this! Seems like there are other articles that present it as configure it and find out what works best for us. |
Remove checksum flag check |
* Upgrades `jest` from v26.4.2 to v27.5.1. * [CHANGELOG](https://github.com/facebook/jest/blob/v27.5.1/CHANGELOG.md) * v27 introduced breaking changes that had to be addressed. * Removes caching from GitHub test workflow to simplify. * Removes "bad apples" check from GitHub workflow. * Runs unit tests in band to reduce execution time from ~90 minutes to ~11 minutes. * Adds ci-specific scripts to eliminate duplication of commands. * `yarn test:jest:ci` and `yarn test:jest_integration:ci` are now used in the workflow. * Upgrades testing-related dependencies, removes unused dependency `babel-plugin-istanbul`, and replaces `jest-environment-jsdom-thirteen` with the built-in `jest-environment-jsdom`. * Skips a few flaky tests that need require additional investigation. Resolves opensearch-project#1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
* Upgrades `jest` from v26.4.2 to v27.5.1. * [CHANGELOG](https://github.com/facebook/jest/blob/v27.5.1/CHANGELOG.md) * v27 introduced breaking changes that had to be addressed. * Removes caching from GitHub test workflow to simplify. * Removes "bad apples" check from GitHub workflow. * Runs unit tests in band to reduce execution time from ~90 minutes to ~11 minutes. * Adds ci-specific scripts to eliminate duplication of commands. * `yarn test:jest:ci` and `yarn test:jest_integration:ci` are now used in the workflow. * Upgrades testing-related dependencies, removes unused dependency `babel-plugin-istanbul`, and replaces `jest-environment-jsdom-thirteen` with the built-in `jest-environment-jsdom`. * Skips a few flaky tests that need require additional investigation. Resolves opensearch-project#1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
@kavilla I tried removing the flag check and it still failed 😞 |
* Upgrades `jest` from v26.4.2 to v27.5.1. * [CHANGELOG](https://github.com/facebook/jest/blob/v27.5.1/CHANGELOG.md) * v27 introduced breaking changes that had to be addressed. * Removes caching from GitHub test workflow to simplify. * Removes "bad apples" check from GitHub workflow. * Runs unit tests in band to reduce execution time from ~90 minutes to ~11 minutes. * Adds ci-specific scripts to eliminate duplication of commands. * `yarn test:jest:ci` and `yarn test:jest_integration:ci` are now used in the workflow. * Upgrades testing-related dependencies, removes unused dependency `babel-plugin-istanbul`, and replaces `jest-environment-jsdom-thirteen` with the built-in `jest-environment-jsdom`. * Skips a few flaky tests that need require additional investigation. Resolves opensearch-project#1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
* Upgrades `jest` from v26.4.2 to v27.5.1. * [CHANGELOG](https://github.com/facebook/jest/blob/v27.5.1/CHANGELOG.md) * v27 introduced breaking changes that had to be addressed. * Upgrades testing-related dependencies, removes unused dependency `babel-plugin-istanbul`, and replaces `jest-environment-jsdom-thirteen` with the built-in `jest-environment-jsdom`. * Skips a few flaky tests that need require additional investigation. Resolves opensearch-project#1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
* Upgrades `jest` from v26.4.2 to v27.5.1. * [CHANGELOG](https://github.com/facebook/jest/blob/v27.5.1/CHANGELOG.md) * v27 introduced breaking changes that had to be addressed. * Upgrades testing-related dependencies, removes unused dependency `babel-plugin-istanbul`, and replaces `jest-environment-jsdom-thirteen` with the built-in `jest-environment-jsdom`. * Skips a few flaky tests that need require additional investigation. Resolves opensearch-project#1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
* Upgrades `jest` from v26.4.2 to v27.5.1. * [CHANGELOG](https://github.com/facebook/jest/blob/v27.5.1/CHANGELOG.md) * v27 introduced breaking changes that had to be addressed. * Upgrades testing-related dependencies, removes unused dependency `babel-plugin-istanbul`, and replaces `jest-environment-jsdom-thirteen` with the built-in `jest-environment-jsdom`. * Skips a few flaky tests that need require additional investigation. Resolves opensearch-project#1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
* Upgrades `jest` from v26.4.2 to v27.5.1. * [CHANGELOG](https://github.com/facebook/jest/blob/v27.5.1/CHANGELOG.md) * v27 introduces breaking changes that have to be addressed. * Upgrades testing-related dependencies, removes unused dependency `babel-plugin-istanbul`, and replaces `jest-environment-jsdom-thirteen` with the built-in `jest-environment-jsdom`. * Skips a few flaky tests that require additional investigation. This is a prerequisite to resolving opensearch-project#1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
* Removes caching from GitHub test workflow to simplify. * Removes "bad apples" check from GitHub workflow since those tests now pass consistently. * Runs unit tests in band to reduce execution time from ~90 minutes to ~20 minutes. * Removes the logic that ignored failing unit tests. * Adds mocha tests to the workflow. * Adds ci-specific scripts to simplify the commands. * `yarn test:jest:ci` and `yarn test:jest_integration:ci` are now used in the workflow. Resolves opensearch-project#1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
* Removes caching from GitHub test workflow to simplify. * Removes "bad apples" check from GitHub workflow since those tests now pass consistently. * Runs unit tests in band to reduce execution time from ~90 minutes to ~20 minutes. * Removes the logic that ignored failing unit tests. * Adds mocha tests to the workflow. * Adds ci-specific scripts to simplify the commands. * `yarn test:jest:ci` and `yarn test:jest_integration:ci` are now used in the workflow. Resolves opensearch-project#1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
* Removes caching from GitHub test workflow to simplify. * Removes "bad apples" check from GitHub workflow since those tests now pass consistently. * Runs unit tests in band to reduce execution time from ~90 minutes to ~20 minutes. * Removes the logic that ignored failing unit tests. * Adds mocha tests to the workflow. * Adds ci-specific scripts to simplify the commands. * `yarn test:jest:ci` and `yarn test:jest_integration:ci` are now used in the workflow. * Adds try/catch blocks to address the `UnhandledPromiseRejectionWarning` errors. Resolves opensearch-project#1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
* Removes caching from GitHub test workflow to simplify. * Removes "bad apples" check from GitHub workflow since those tests now pass consistently. * Runs unit tests in band to reduce execution time from ~90 minutes to ~20 minutes. * Removes the logic that ignored failing unit tests. * Adds mocha tests to the workflow. * Adds ci-specific scripts to simplify the commands. * `yarn test:jest:ci` and `yarn test:jest_integration:ci` are now used in the workflow. * Adds try/catch blocks to address the `UnhandledPromiseRejectionWarning` errors. Resolves opensearch-project#1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
* Removes caching from GitHub test workflow to simplify. * Removes "bad apples" check from GitHub workflow since those tests now pass consistently. * Runs unit tests in band to reduce execution time from ~90 minutes to ~20 minutes. * Removes the logic that ignored failing unit tests. * Adds mocha tests to the workflow. * Adds ci-specific scripts to simplify the commands. * `yarn test:jest:ci` and `yarn test:jest_integration:ci` are now used in the workflow. Resolves opensearch-project#1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
* Upgrades `jest` from v26.4.2 to v27.5.1. * [CHANGELOG](https://github.com/facebook/jest/blob/v27.5.1/CHANGELOG.md) * v27 introduces breaking changes that have to be addressed. * Upgrades testing-related dependencies, removes unused dependency `babel-plugin-istanbul`, and replaces `jest-environment-jsdom-thirteen` with the built-in `jest-environment-jsdom`. * Skips a few flaky tests that require additional investigation. This is a prerequisite to resolving opensearch-project#1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
* Upgrades `jest` from v26.4.2 to v27.5.1. * [CHANGELOG](https://github.com/facebook/jest/blob/v27.5.1/CHANGELOG.md) * v27 introduces breaking changes that have to be addressed. * Upgrades testing-related dependencies, removes unused dependency `babel-plugin-istanbul`, and replaces `jest-environment-jsdom-thirteen` with the built-in `jest-environment-jsdom`. This is a prerequisite to resolving opensearch-project#1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
* Upgrades `jest` from v26.4.2 to v27.5.1. * [CHANGELOG](https://github.com/facebook/jest/blob/v27.5.1/CHANGELOG.md) * v27 introduces breaking changes that have to be addressed. * Upgrades testing-related dependencies, removes unused dependency `babel-plugin-istanbul`, and replaces `jest-environment-jsdom-thirteen` with the built-in `jest-environment-jsdom`. This is a prerequisite for resolving #1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
* Removes caching from GitHub test workflow to simplify. * Removes "bad apples" check from GitHub workflow since those tests now pass consistently. * Runs unit tests in band to reduce execution time from ~90 minutes to ~20 minutes. * Removes the logic that ignored failing unit tests. * Adds mocha tests to the workflow. * Adds ci-specific scripts to simplify the commands. * `yarn test:jest:ci` and `yarn test:jest_integration:ci` are now used in the workflow. Resolves opensearch-project#1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
* Removes caching from GitHub test workflow to simplify. * Removes "bad apples" check from GitHub workflow since those tests now pass consistently. * Runs unit tests in band to reduce execution time from ~90 minutes to ~20 minutes. * Removes the logic that ignored failing unit tests. * Adds mocha tests to the workflow. * Adds ci-specific scripts to simplify the commands. * `yarn test:jest:ci` and `yarn test:jest_integration:ci` are now used in the workflow. Resolves #1231 Signed-off-by: Tommy Markley <markleyt@amazon.com>
I just noticed that unit tests are not passing in the
Build and Verify
GitHub Action for any current PRs.Example run for PR 1229 - see
Run echo Unit tests completed unsuccessfully.
I went back through the commit history and it looks like unit tests have been failing for all commits since fc96cc3: Build and Verify unit tests failing
This might not be the cause, but the unit tests in each of the commits before this passed. The commit before that was 8777eb3: Build and Verify unit tests passing
The text was updated successfully, but these errors were encountered: