Repository navigation
make.sh: don't quit sed early in the rcc pipeline - #85
Open
omnimaxxing wants to merge 1 commit into
Open
omnimaxxing wants to merge 1 commit into
omnimaxxing wants to merge 1 commit into
Conversation
`sed -n '/#ifdef/q;p'` exits at the first #ifdef, about 2 KB before the end of rcc's output. If rcc is still writing, it gets SIGPIPE, and with `set -o pipefail` the script exits 141. The release workflow now fails this way on both toolchain images. `sed -n '/#ifdef/,$!p'` prints the same lines (everything before the first #ifdef) but reads its input to the end, so rcc never sees a closed pipe. The generated resources.cpp is byte-identical.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The release workflow currently fails in "Build AppLoad" with
Process completed with exit code 141, on both thelatest-rmppandlatest-rm1images. Buildingdf974a6through the release workflow on my fork failed 4 out of 4 runs. The last successful release run was v0.6.0 on Sep 19.Cause
In
xovi/make.sh:sed -n '/#ifdef/q;p'exits at the first#ifdef, about 2 KB before the end of rcc's ~250 KB output. If rcc hasn't finished writing by then, it gets SIGPIPE. Underset -euo pipefailthe pipeline's status is 141 and the script stops. Whether it hits depends on timing, which is why it passes on some machines (it does on mine) and fails in CI.Change
'/#ifdef/,$!p'prints the same lines (everything before the first#ifdef) but reads its input to the end, so rcc never writes into a closed pipe. With Qt 6.11's rcc the generatedresources.cppis byte-identical before and after (249,147 bytes,cmpclean).Testing
The release workflow on my fork, at this branch: both builds (
latest-rmppaarch64,latest-rm1arm32) and the release job pass: https://github.com/omnimaxxing/rm-appload/actions/runs/42420372422