save reproducer script - #298
Merged
Merged
Conversation
bhcopeland
reviewed
Aug 6, 2026
We set KCFLAGS to -ffile-prefix-map=<build dir>/= to keep the build path out of __FILE__. The build dir is local, and the reproducer does not pass --build-dir. So the next build gets a different build dir but the old path in KCFLAGS. The prefix never matches, and __FILE__ keeps the full path. In the kernel that string shows up in WARN and BUG messages, so the build is not bit by bit identical. Leave it out and let the next build set its own value. Keep KCFLAGS if the user asked for it with --environment. Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
The reproducer command line is already in metadata.json and in the top of build.log. Neither can be run. The line has to be copied out of the log first. Write it to reproducer.sh instead. The file is executable, so it runs directly. It is written before the build starts, so it is there also when the build fails. Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
roxell
force-pushed
the
reproducer-script
branch
from
August 6, 2026 10:09
d42db75 to
3c2c500
Compare
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 reproducer command line is in metadata.json and at the top of
build.log, but it cannot be run from there.
Write it to reproducer.sh in the output directory. The file is
executable, so it runs directly. It is written before the build starts.