Skip to content

Fix doctests in ci#3516

Merged
coolreader18 merged 3 commits into
RustPython:mainfrom
coolreader18:fix-ci
Jan 15, 2022
Merged

Fix doctests in ci#3516
coolreader18 merged 3 commits into
RustPython:mainfrom
coolreader18:fix-ci

Conversation

@coolreader18

Copy link
Copy Markdown
Member
  • Fix doc comment for Interpreter
  • Fix doctests in ci

Comment thread Cargo.toml Outdated
Comment on lines +76 to +77
# ugly hack since doctests link against debug version of rustpython-vm even
# when profile.test is optimized

@youknowone youknowone Jan 10, 2022

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Though we usually use optimization and debug option exclusively, optimization is about optimization itself and debug is about debug information. So I think giving optimization option to test doesn't change whether it is a debug or not.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Right, and it does work fine unoptimized on our machines apparently, but I think there's some timeout in ci that kills the test process if it takes too long? And afaict it was linking against release in Rust 1.56, the update broke it a bit, this just brings it back to previous behavior

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ach wait the tests aren't even fixed, dang it

@youknowone youknowone Jan 10, 2022

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yep, I think it shouldn't fix anything unless it is related to cache

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ugh I don't know why I didn't consider that it was a cache issue

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The cache action is reporting a cache miss, so I doubt that it's actually a cache issue.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could rust-lang/rust#92869 be related?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ahh, probably

@coolreader18 coolreader18 force-pushed the fix-ci branch 2 times, most recently from 59005c4 to 6e340a7 Compare January 14, 2022 05:25
@coolreader18

Copy link
Copy Markdown
Member Author

WOOOooooooo....! Passing!

@coolreader18

Copy link
Copy Markdown
Member Author

Merging this so main turns green.

@coolreader18 coolreader18 merged commit 9c728df into RustPython:main Jan 15, 2022
@coolreader18 coolreader18 deleted the fix-ci branch January 15, 2022 01:53
Comment thread Cargo.toml
[profile.test]
opt-level = 3
lto = "thin"
# https://github.com/rust-lang/rust/issues/92869

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is totally unexpected effect

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.

3 participants