-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Set python args to be like CPython in CI #8181
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
Changes from all commits
bd809ce
128cee9
74aca0c
7b47348
674bfa3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -177,7 +177,6 @@ def test_unicode_literals_exec(self): | |
| exec("from __future__ import unicode_literals; x = ''", {}, scope) | ||
| self.assertIsInstance(scope["x"], str) | ||
|
|
||
| @unittest.expectedFailure # TODO: RUSTPYTHON; barry_as_FLUFL (<> operator) not supported | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems that adding
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, that does seem a bit suspicious. Any idea why?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So I've now debugged it, it seems that it's actually because of the IMO the fix should be done over CPython side to add
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. python/cpython#152749 contains a bit more more information about why |
||
| def test_syntactical_future_repl(self): | ||
| p = spawn_python('-i') | ||
| p.stdin.write(b"from __future__ import barry_as_FLUFL\n") | ||
|
|
||
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.
if everything requires same args, dose it still need to be extra_test_args?
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.
it's repeated multiple times, I think this is the easiest way to manage it for now.
we repeat this arg in 2/3 times that we run the test suite. I can "hardcode" it in all other places instead, not a big deal
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.
extra_test_args changes the test name. then merge queue settings also must be updated.
that's not a big deal when it occasionally changes. but it happens more than common these days. So i wish that's still an argument, but not being a part of job title.
also it makes the CI job name unnecessary longer, not a big deal itself too though.
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.
CPython uses an external file to manage their CI commands, we could do the same using just for example.
bevy wrote their own tool for that, we could do something similar.
I'm in favor of starting with the
justapproach (or similar), if you think it's a good idea.There's another option which I'm less of a fan of, but still worth mentioning. cargo alias can also do that, but that's adding another layer without the full features that
justgives us, i.e. reuse of variables. (we can't define a variable calledcommon_argsand use it everywhere).lmk if that makes sense to you and/or worth implementing
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.
either way i am good as long as contributors still can copy the same CI command from web CI view to their terminal