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

Patch debrebuild to add sleep #345

Merged
merged 1 commit into from
Feb 14, 2025
Merged

Patch debrebuild to add sleep #345

merged 1 commit into from
Feb 14, 2025

Conversation

wbxyz
Copy link
Member

@wbxyz wbxyz commented Feb 13, 2025

This mitigates what seems to be a race condition in mmdebstrap, where the chroot isn't completely setup by the time our customize-hook runs.

@wbxyz
Copy link
Member Author

wbxyz commented Feb 13, 2025

Example failure before this patch

I: running --customize-hook in shell: sh -c 'chroot "$1" sh -c "mkdir -p /build/reproducible-path && dpkg-source --no-check -x /file_5.45-3.dsc /build/reproducible-path/file-5.45 && cd /build/reproducible-path/file-5.45 && { printf "%s" 'file (1:5.45-3+b1) sid; urgency=low, binary-only=yes

  * Binary-only non-maintainer upload for amd64; no source changes.
  * Rebuild for PAC/BTI support

 -- all / amd64 / i386 Build Daemon (x86-conova-01) <[email protected]>  Mon, 28 Oct 2024 17:55:16 +0000

'; cat debian/changelog; } > debian/changelog.debrebuild && mv debian/changelog.debrebuild debian/changelog && env DEB_BUILD_OPTIONS="parallel=6" LANG="C.UTF-8" LC_COLLATE="C.UTF-8" LC_CTYPE="C.UTF-8" SOURCE_DATE_EPOCH="1730138116" dpkg-buildpackage -uc -a amd64 --build=any && cd / && rm -r /build/reproducible-path/file-5.45"' exec /tmp/mmdebstrap.dHC_SGAmL8
chroot: failed to run command ‘sh’: Permission denied
E: setup failed: E: command failed: chroot "$1" sh -c "mkdir -p /build/reproducible-path && dpkg-source --no-check -x /file_5.45-3.dsc /build/reproducible-path/file-5.45 && cd /build/reproducible-path/file-5.45 && { printf "%s" 'file (1:5.45-3+b1) sid; urgency=low, binary-only=yes

  * Binary-only non-maintainer upload for amd64; no source changes.
  * Rebuild for PAC/BTI support

 -- all / amd64 / i386 Build Daemon (x86-conova-01) <[email protected]>  Mon, 28 Oct 2024 17:55:16 +0000

'; cat debian/changelog; } > debian/changelog.debrebuild && mv debian/changelog.debrebuild debian/changelog && env DEB_BUILD_OPTIONS="parallel=6" LANG="C.UTF-8" LC_COLLATE="C.UTF-8" LC_CTYPE="C.UTF-8" SOURCE_DATE_EPOCH="1730138116" dpkg-buildpackage -uc -a amd64 --build=any && cd / && rm -r /build/reproducible-path/file-5.45"
W: hooklistener errored out: E: received eof on socket

I: main() received signal PIPE: waiting for setup...
I: removing tempdir /tmp/mmdebstrap.dHC_SGAmL8...
E: mmdebstrap failed to run
mmdebstrap failed

@wbxyz wbxyz force-pushed the push-xrwulkrmykzp branch 3 times, most recently from baa0c51 to 4884d45 Compare February 13, 2025 22:11
@wbxyz wbxyz force-pushed the push-xrwulkrmykzp branch from 4884d45 to f365d58 Compare February 14, 2025 17:14
@wbxyz wbxyz closed this Feb 14, 2025
@wbxyz wbxyz deleted the push-xrwulkrmykzp branch February 14, 2025 17:17
@wbxyz wbxyz restored the push-xrwulkrmykzp branch February 14, 2025 17:18
@wbxyz wbxyz reopened this Feb 14, 2025
@wbxyz wbxyz force-pushed the push-xrwulkrmykzp branch 2 times, most recently from ef182ca to 46e3db2 Compare February 14, 2025 17:41
@wbxyz wbxyz force-pushed the push-xrwulkrmykzp branch from 46e3db2 to dc2d701 Compare February 14, 2025 20:31
@wbxyz wbxyz merged commit 1819abc into google:main Feb 14, 2025
3 checks passed
@wbxyz wbxyz deleted the push-xrwulkrmykzp branch February 14, 2025 20:31
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.

2 participants