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 failing test for Windows master CI #321

Merged
merged 11 commits into from
Aug 4, 2021

Conversation

cmichi
Copy link
Collaborator

@cmichi cmichi commented Aug 3, 2021

No description provided.

@cmichi cmichi marked this pull request as ready for review August 4, 2021 07:38
@@ -201,7 +201,7 @@ fn exec_cargo_for_wasm_target(
// Currently will override user defined RUSTFLAGS from .cargo/config. See https://github.com/paritytech/cargo-contract/issues/98.
std::env::set_var(
"RUSTFLAGS",
"-C link-arg=-z -C link-arg=stack-size=65536 -C link-arg=--import-memory",
"-C link-arg=-zstack-size=65536 -C link-arg=--import-memory",
Copy link
Collaborator Author

@cmichi cmichi Aug 4, 2021

Choose a reason for hiding this comment

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

For some reason (which I don't fully understand) there is an issue with the Windows CI currently failing on master for one specific test if the -z is passed separately of the stack-size argument, which actually belongs to it. Since both versions should be equal I would change it to this.

),
"Expected a different output, found {:?}",
res
);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This test is flaky sometimes, if the CI is re-run it succeeds. I added output of the res to have some more info when if fails spuriously again.

@cmichi cmichi requested a review from ascjones August 4, 2021 07:41
@cmichi cmichi changed the title Debug cargo contract test on Windows Fix failing test for Windows master CI Aug 4, 2021
@cmichi cmichi merged commit f86db30 into master Aug 4, 2021
@cmichi cmichi deleted the cmichi-debug-test-subcommand-on-windows branch August 4, 2021 08:29
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.

2 participants