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
[SKIP CI] docker: log git hashes for each projects #5880
Conversation
5f8aad4
to
9230e83
Compare
9230e83
to
1dfb1e7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was some build error due to wrong path. I will fix it (and see the image) and push my patch again.
|
1dfb1e7
to
5b2b1e3
Compare
cd "$HOME"/crosstool-ng && pwd >> "$HASH_LIST"; git log --oneline -5 >> "$HASH_LIST" && \ | ||
cd "$HOME"/newlib-xtensa && pwd >> "$HASH_LIST"; git log --oneline -5 >> "$HASH_LIST" && \ | ||
cd "$HOME" && rm -rf xtensa-overlay crosstool-ng newlib-xtensa && \ | ||
echo "Stage4: hash logging and deleting repos are done!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can make this a for
loop:
set -e ; for i in "$SOF_WORK"/alsa/alsa-lib "$SOF_WORK"/alsa/alsa-utils ...; do cd "$i"; git log ... ; done >> "$HASH_LIST"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to keep "" around the variables but it is not expanding if I do so. shellcheck warning is valid but we know $HOME and $SOF_WORK do not have space in it. I think better than all hard-coded path.
ARG REPOS="/home/sof/work/alsa/alsa-lib /home/sof/work/alsa/alsa-utils /home/sof/xtensa-overlay /home/sof/crosstool-ng /home/sof/newlib-xtensa"
5b2b1e3
to
106d0f8
Compare
96be4b9
to
106d0f8
Compare
@fredoh9 ping |
I will update this today |
No functionality change. Add some logs and minor clean up. Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
To track the docker images, need to keep all the hashes of the projects builts in the image. Log git tree information to /home/sof/work/sof_git_hash.txt in the docker image. Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
106d0f8
to
7465be7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved assuming this was actually tested (I know testing this takes ages :-)
No functionality change. Minor clean up.
Signed-off-by: Fred Oh fred.oh@linux.intel.com
Plan to add HASH loggings for each repo before deleting them.