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

bpo-45629: Add a test for the "freeze" tool. #29222

Merged
merged 25 commits into from Oct 28, 2021

Conversation

Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Oct 26, 2021

The "freeze" tool has been part of the repo for a long time. However, it hasn't had any tests in the test suite to guard against regressions. We add such a test here. This is especially important as there has been a lot of change recently related to frozen modules, with more to come.

Note that as part of the test we build Python out-of-tree and install it in a temp dir.

https://bugs.python.org/issue45629

@ericsnowcurrently ericsnowcurrently marked this pull request as draft Oct 26, 2021
@ericsnowcurrently ericsnowcurrently added the 🔨 test-with-buildbots label Oct 26, 2021
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Oct 26, 2021

🤖 New build scheduled with the buildbot fleet by @ericsnowcurrently for commit f6a8755 🤖

If you want to schedule another build, you need to add the "🔨 test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots label Oct 26, 2021
@ericsnowcurrently ericsnowcurrently added the 🔨 test-with-buildbots label Oct 26, 2021
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Oct 26, 2021

🤖 New build scheduled with the buildbot fleet by @ericsnowcurrently for commit cc68b86 🤖

If you want to schedule another build, you need to add the "🔨 test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots label Oct 26, 2021
@ericsnowcurrently ericsnowcurrently added the 🔨 test-with-buildbots label Oct 27, 2021
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Oct 27, 2021

🤖 New build scheduled with the buildbot fleet by @ericsnowcurrently for commit 4b315b0 🤖

If you want to schedule another build, you need to add the "🔨 test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots label Oct 27, 2021
@ericsnowcurrently ericsnowcurrently marked this pull request as ready for review Oct 27, 2021
@ericsnowcurrently ericsnowcurrently requested review from gpshead and removed request for gpshead Oct 27, 2021
@ericsnowcurrently
Copy link
Member Author

@ericsnowcurrently ericsnowcurrently commented Oct 27, 2021

@gpshead you may notice that I'm doing an out-of-tree build. 🙂

@ericsnowcurrently ericsnowcurrently changed the title bpo-45096: Add a test for the "freeze" tool. bpo-45629: Add a test for the "freeze" tool. Oct 27, 2021
@ericsnowcurrently ericsnowcurrently added the 🔨 test-with-buildbots label Oct 27, 2021
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Oct 27, 2021

🤖 New build scheduled with the buildbot fleet by @ericsnowcurrently for commit 4c18103 🤖

If you want to schedule another build, you need to add the "🔨 test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots label Oct 27, 2021
@ericsnowcurrently ericsnowcurrently merged commit 13d9205 into python:main Oct 28, 2021
73 of 75 checks passed
@ericsnowcurrently ericsnowcurrently deleted the freeze-tool-tests branch Oct 28, 2021
gpshead added a commit to gpshead/cpython that referenced this issue Feb 3, 2022
It was added as part of python#29222 to avoid running freeze tool tests on the
buildbots but the logic was wrong so it did not skip tests on typical posix
setup buildbots where the worker is launched from cron via an @reboot task and
thus have no USER environment variable.  This uses the canonical
`getpass.getuser()` API rather than rolling its own attempt.
gpshead added a commit that referenced this issue Feb 3, 2022
It was added as part of #29222 to avoid running freeze tool tests on the
buildbots but the logic was wrong so it did not skip tests on typical posix
setup buildbots where the worker is launched from cron via an @reboot task and
thus have no USER environment variable.  This uses the canonical
`getpass.getuser()` API rather than rolling its own attempt.
erlend-aasland pushed a commit to erlend-aasland/cpython that referenced this issue Feb 11, 2022
It was added as part of python#29222 to avoid running freeze tool tests on the
buildbots but the logic was wrong so it did not skip tests on typical posix
setup buildbots where the worker is launched from cron via an @reboot task and
thus have no USER environment variable.  This uses the canonical
`getpass.getuser()` API rather than rolling its own attempt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants