-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
cleanup move_pr.sh to make it suitable for CI for v2 #13652
Conversation
⏱️ 2h 54m total CI duration on this PR
🚨 2 jobs on the last run were significantly faster/slower than expected
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
☔ View full report in Codecov by Sentry. |
third_party/move/scripts/move_pr.sh
Outdated
@@ -143,31 +143,32 @@ if [ ! -z "$CHECK" ]; then | |||
) | |||
fi | |||
|
|||
CARGO_OP_PARAMS="--locked --profile $MOVE_PR_PROFILE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That does not make sense, the parameter is definitely --cargo-profile
to select the cargo profile not the nexttest one. It is essential that we use the same profile for cargo build and nextest, which seems to be hampered by this PR. Maybe by accident there is still a nextest profile of the same name, but that is not what we want to select here.
See also here: https://nexte.st/docs/running/#options-and-arguments
Why should those change be necessary in the first place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed off-line, this was needed due to an outdated version of carg-nextest
. I've updated this PR to add a comment to warn about this case and provide a solution, and also correctly read the MOVE_PR_PROFILE
environment variable if it is defined.
cargo nextest --cargo-profile ci
seems to be broken, just use --profileMOVE_PR_PROFILE
from the environment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
34e7e4a
to
b692358
Compare
b692358
to
c9ed68a
Compare
Ok, I've changed docgen to add a |
PTAL |
MOVE_PR_PROFILE
from the environment… upgrade cargo-nextest
c9ed68a
to
c5fc1a8
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
Description
Cleanup of the the move_pr.sh script to allow use in CI:
nextest -profile smoke-test
by default to tolerate rare Heisenbugs by replaying 3xSlightly more description:
move_pr.sh
, including actually paying attention toMOVE_PR_PROFILE
env var.nextest --profile smoke-test
by default to allow re-runs in case of intermittent failures (Heisenbugs). Use env varMOVE_PR_NEXTEST_PROFILE
to allow this to be overridden.MVC_DOCGEN_OUTPUT_DIR
flag to move tests to be used withMOVE_COMPILER_V2=true
to relocate all move-compiler-v2-generated docs to keep them distinct from v1-generated docs. Check in these v2 docs for comparison.#[verify_only]
in move-compiler-v2. Add relevant tests from v1. Also add tests of#[deprecated]
. #13732.Fix #13651.
Type of Change
Which Components or Systems Does This Change Impact?
How Has This Been Tested?
run repeatedly.
Key Areas to Review
Do we need to update
.config/nextest.toml
to forcecargo-profile = "ci"
for[profile.ci]
?Checklist