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

ci(*): Run flaky tests with --verbose and use ci profile #3063

Merged
merged 3 commits into from
Dec 19, 2024
Merged

Conversation

flub
Copy link
Contributor

@flub flub commented Dec 19, 2024

Description

Also fix building of tests to use --profile ci which is used to run
the tests. The test run did not trigger a re-build. So mosly likely
the profile is not encoded in the build artifacts and we were running
tests on the normal dev profile rather than the ci profile.

Breaking Changes

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

Also fix building of tests to use --profile ci which is used to run
the tests.  The test run did not trigger a re-build.  So mosly likely
the profile is not encoded in the build artifacts and we were running
tests on the normal dev profile rather than the ci profile.
@flub flub requested a review from Arqu December 19, 2024 08:45
Copy link

github-actions bot commented Dec 19, 2024

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3063/docs/iroh/

Last updated: 2024-12-19T16:26:53Z

Copy link

github-actions bot commented Dec 19, 2024

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: 8147c32

.github/workflows/tests.yaml Outdated Show resolved Hide resolved
Seems like this is a nextest profile, not a cargo profile.  Goodness.
@@ -111,7 +111,7 @@ jobs:
- name: run tests
run: |
mkdir -p output
cargo nextest run --workspace ${{ env.FEATURES }} --lib --bins --tests --profile ci --run-ignored ${{ inputs.flaky && 'all' || 'default' }} --no-fail-fast --message-format ${{ inputs.flaky && 'libtest-json' || 'human' }} > output/${{ matrix.name }}_${{ matrix.features }}_${{ matrix.rust }}.json
cargo nextest run --workspace ${{ env.FEATURES }} --lib --bins --tests --profile ci --run-ignored ${{ inputs.flaky && 'all' || 'default' }} ${{ inputs.flaky && '--verbose' }} --no-fail-fast --message-format ${{ inputs.flaky && 'libtest-json' || 'human' }} > output/${{ matrix.name }}_${{ matrix.features }}_${{ matrix.rust }}.json
Copy link
Collaborator

@Arqu Arqu Dec 19, 2024

Choose a reason for hiding this comment

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

Fyi in the test suite this renders as "false" for the CLI command, think you need to add || '' so it returns an empty string when evaluating to false. Which I think is the reason the tests fail.

@flub flub enabled auto-merge December 19, 2024 16:25
@flub flub added this pull request to the merge queue Dec 19, 2024
Merged via the queue into main with commit bc4f3ca Dec 19, 2024
26 checks passed
@Arqu Arqu deleted the flub/flaky-verbose branch December 20, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants