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

tools: Fix building Debian source package after binary build #19232

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

martinpitt
Copy link
Member

Building the binary and running the tests creates tmp/wheel and .pytest_cache/, which are considered as unrepresentable source changes. Let dh_clean remove them before building a source package.

Moreover, running the unit tests changes the "dev@cockpit-project.org" in src/ssh/mock_rsa_key.pub to the local user@hostname. Our tests don't explicitly do that, this smells like some libssh bug/weirdness. Until this is investigated, just ignore the changes in that file for building a source package.

https://bugs.debian.org/1044095

Building the binary and running the tests creates tmp/wheel and
.pytest_cache/, which are considered as unrepresentable source changes.
Let dh_clean remove them before building a source package.

Moreover, running the unit tests changes the "dev@cockpit-project.org"
in src/ssh/mock_rsa_key.pub to the local user@hostname. Our tests don't
explicitly do that, this smells like some libssh bug/weirdness. Until
this is investigated, just ignore the changes in that file for building
a source package.

https://bugs.debian.org/1044095
@martinpitt martinpitt added the no-test For doc/workflow changes, or experiments which don't need a full CI run, label Aug 24, 2023
@martinpitt martinpitt requested a review from jelly August 24, 2023 06:06
@martinpitt
Copy link
Member Author

The rawhide failure is unrelated, I created #19235 to investigate. This will likely take some time.

@martinpitt martinpitt added unrelated-test-failure and removed no-test For doc/workflow changes, or experiments which don't need a full CI run, labels Aug 24, 2023
@martinpitt martinpitt merged commit 4b68be7 into cockpit-project:main Aug 24, 2023
41 of 42 checks passed
@martinpitt martinpitt deleted the debclean branch August 24, 2023 08:38
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

2 participants