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

Test that workstation-bootstrap wheels are reproducible too #483

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions tests/test_reproducible_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,19 @@ def test_wheel_builds_match_version_control(name):
# Check for new, untracked files. Test will fail if working copy is dirty
# in any way, so mostly useful in CI.
assert subprocess.check_output("git status --porcelain".split()) == b""


def test_workstation_bootstrap_wheels():
subprocess.check_call(
[
"./scripts/build-sync-wheels",
"--pkg-dir",
"./workstation-bootstrap",
"--project",
"workstation-bootstrap",
]
)
# Check for modified files (won't catch new, untracked files)
subprocess.check_call(["/usr/bin/git", "diff", "--exit-code"])
# Check for new, untracked files.
assert subprocess.check_output(["/usr/bin/git", "status", "--porcelain"]) == b""