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

chore: Slight update to CircleCI config #36823

Merged
merged 4 commits into from
Oct 25, 2022
Merged

Conversation

LekoArts
Copy link
Contributor

@LekoArts LekoArts commented Oct 14, 2022

Description

This PR started as a try to fix some Jest quirks in CI but couldn't really get that working. I've also didn't really see this anymore in newer tests. So maybe it's intermittent or fixed itself.

Nevertheless, the updates here are good anyways to be merged.

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Oct 14, 2022
@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Oct 14, 2022
@LekoArts LekoArts changed the title chore: Debug CircleCI Jest chore: Slight update to CircleCI config Oct 21, 2022
@@ -523,14 +523,15 @@ jobs:
yarn
- run:
name: Run tests
command: yarn jest --ci --runInBand ((yarn jest --listTests) | Foreach-Object {$_ -replace '.*\\packages', 'packages'} | Foreach-Object {$_ -replace '\\', '/'} | circleci tests split --split-by=timings)
command: yarn jest --ci --runInBand ((yarn jest --listTests) | Foreach-Object {$_ -replace '.*\\packages', 'packages'} | Foreach-Object {$_ -replace '\\', '/'} | circleci tests split)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we don't store the results of the timings from previous runs it always runs in the default split mode anyways

@LekoArts LekoArts added the topic: automation Related to Circle CI, Peril, Renovate, scripts/*, Github Workflows, Github Actions, or Slackbot label Oct 21, 2022
@LekoArts LekoArts marked this pull request as ready for review October 21, 2022 08:58
@@ -1,6 +1,5 @@
orbs:
win: circleci/windows@2.4.0
slack: circleci/slack@3.4.1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use that anymore

@@ -99,6 +98,7 @@ aliases:
GENERATE_JEST_REPORT: "true"
JEST_JUNIT_OUTPUT_DIR: ./test-results/jest-node/
JEST_JUNIT_OUTPUT_NAME: results.xml
JEST_JUNIT_REPORT_TEST_SUITE_ERRORS: "true"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reports test suites that failed to execute altogether as error. Note: since the suite name cannot be determined from files that fail to load, it will default to file path.

Doesn't hurt to enable that I guess

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Were you able to see improved reporting with JEST_JUNIT_REPORT_TEST_SUITE_ERRORS enabled? I looked at the errors in CI for this PR but can't tell if it's different

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, didn't seem to make a difference really

Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's ship the improvements and don't keep those hostage waiting for the exit code resolution

@LekoArts LekoArts merged commit db92b17 into master Oct 25, 2022
@LekoArts LekoArts deleted the debug-jest-wrong-exit-code branch October 25, 2022 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: automation Related to Circle CI, Peril, Renovate, scripts/*, Github Workflows, Github Actions, or Slackbot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants