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

Fix CI failing since rustc 1.65.0 #2280

Merged
merged 2 commits into from
Nov 7, 2022
Merged

Fix CI failing since rustc 1.65.0 #2280

merged 2 commits into from
Nov 7, 2022

Conversation

kamirr
Copy link
Contributor

@kamirr kamirr commented Nov 6, 2022

Three issues.

  1. Market test suite
    BT format changed in Rust 1.65, causing bactrace_util::generate_backtraced_name to return an autogenerated name created via uuidv4. However, changes applied since then have actually made the happy path a hard requirement by expecting the resultant string to be of the form (.*)::(.*)::.*. This was the case when the test names were pulled from the backtrace, but didn't work for autogenerated uuidv4 ones.
    This patch removed the uuid name generation from backtrace_util, and implemented it in mock_node in a different manner.

  2. split-debuginfo=unpacked fails on Windows.
    Cargo should not forward this option if not supported, but this does not work in this case. Likely a regression in cargo-rustc interaction. For now removed this flag with an appropriate remark to get the CI going. My fix in cargo is awaiting review (Fix split-debuginfo support detection rust-lang/cargo#11347), the option should be reenabled when it's merged and released.

  3. clippy
    We passed -D warnings to clippy, which (of course) made it fail on all warnings. Clippy 0.1.65 found more issues, and so it failed, bringing most of CI with it. This PR removes -D warnings.

☑️ Definition of Done checklist

@kamirr kamirr requested a review from a team November 6, 2022 21:59
@kamirr kamirr linked an issue Nov 6, 2022 that may be closed by this pull request
@kamirr kamirr mentioned this pull request Nov 6, 2022
Two issues.

1. Backtrace
BT format changed in Rust 1.65, causing
bactrace_util::generate_backtraced_name to return an autogenerated name
created via uuidv4. However, changes applied since then have actually
made the happy path a hard requirement by expecting the resultant string
to be of the form r"(.*)::(.*)::.*". This was the case when the test
names were pulled from BT, but didn't work for autogenerated uuidv4 ones.

This patch removed the uuid name generation from backtrace_util, and
implemented it in mock_node in a different manner.

2. split-debuginfo=unpacked fails on Windows.
Cargo should not forward this option if not supported, but this does not
work in this case. Likely a regression in cargo-rustc interaction. For
now removed this flag with an appropriate remark to get the CI going.
@kamirr kamirr changed the title Fix market test suite Fix CI failing since rustc 1.65.0 Nov 6, 2022
This option will make CI fail whenever new default lints are introduced
to clippy. Exactly this has happened with update to rust 1.65.
@nieznanysprawiciel nieznanysprawiciel merged commit 00087f3 into master Nov 7, 2022
@nieznanysprawiciel nieznanysprawiciel deleted the kek/fix-ci branch November 7, 2022 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI fails on master
3 participants