-
Notifications
You must be signed in to change notification settings - Fork 349
[stable-v2.2] cherry-pick docker and other upgrade from main branch #7551
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
Conversation
|
there is no sof-cnl.ri generated. apl, jsl, tgl are built fine. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
ad7bffc to
fdd9aec
Compare
|
This is blocked by + manual rebuild and deploy. |
|
#7552 now merged. |
|
I built new docker image using this PR. thesofproject/sof:20230515_ubuntu22.04. I found there are some missing commits. |
This stable-2.2 PR does not affect the docker image. It's only waiting for a new docker image with #7552 |
This suddenly failed in for PR thesofproject#7551 in https://github.com/thesofproject/sof/actions/runs/4998109337/ jobs/8953192254 I have no idea why it never failed earlier (new yamllint version maybe?) but it's always been wrong and should have never been there anyway. Fixes commit 3d69a7f (".github: extend yamllint line-length to 100") Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This is a release branch, we shouldn't be using any "latest" docker image. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Support downloads from within the container - notably cloning Zephyr. Similar to commit 424da2c ("zephyr/docker: pass http[s]_proxy variables to the container") on the main branch. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Dropping *.yml change from the original commit cause there is no west.yml in this branch. Signed-off-by: Marc Herbert <marc.herbert@intel.com> (cherry picked from commit 3d69a7f)
This will make sure platforms without an open-source toolchain available are added to SUPPORTED_PLATFORMS and do not break the -a option Signed-off-by: Marc Herbert <marc.herbert@intel.com> (cherry picked from commit 8a7a1ad)
This should get rid of most warnings in daily tests ``` Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/ 2022-09-22-github-actions-all-actions-will-begin-running-on-node16... Please update the following actions to use Node.js 16: actions/checkout@v2 ``` Example at https://github.com/thesofproject/sof/actions/runs/3597808171 v3 seems backward compatible. Upgrade only the most used instances for now (most used because of the `matrix` of platforms), upgrade everything in a few days if no issue is spotted. Signed-off-by: Marc Herbert <marc.herbert@intel.com> (cherry picked from commit f71eb15)
This upgrade was already performed for other jobs in commit f71eb15 (".github/workflows: upgrade actions/checkout@v2 -> v3") and everything went fine. Finish the job and get rid of the last warnings in the daily tests (example: https://github.com/thesofproject/sof/actions/runs/3709176785) stable-v2.2: dropped sof-docs action which does not exist in this branch. Signed-off-by: Marc Herbert <marc.herbert@intel.com> (cherry picked from commit 2ea4bc0)
Search and replace checkout@v2 with checkout@v3. This finally gets rid of all warnings "Node.js 12 actions are deprecated". We've been using v3 in a few other places and never met any backwards compatibility issue. Fixed testbench.yml conflict, still embedded in pull-request.yml Signed-off-by: Marc Herbert <marc.herbert@intel.com> (cherry picked from commit 65a68b7)
sudo-cwd.sh was developed on the main branch for zephyr but now we want to re-use it for building topologies. Cherry-pick only that script, not the zephyr parts. Original commit message: Besides making things more obvious, the important functional change is that the user switch is now performed for _every_ invoked, command, not just for the build command. Signed-off-by: Marc Herbert <marc.herbert@intel.com> (cherry picked from commit 027be98)
This script is now generic. This was not done earlier to be gentle on git blame. Signed-off-by: Marc Herbert <marc.herbert@intel.com> (cherry picked from commit 0a4b1d6)
Support downloads from within the container. Signed-off-by: Marc Herbert <marc.herbert@intel.com> (cherry picked from commit 424da2c)
Copying a file that does not exist obviously fails. This bug was found when trying to switch from the current "Developer Image" to the smaller "CI Image": https://github.com/zephyrproject-rtos/docker-image zephyr-build Signed-off-by: Marc Herbert <marc.herbert@intel.com> (cherry picked from commit 75fa04d)
|
Only a couple suspend/resume failures in https://sof-ci.01.org/sofpr/PR7551/build8011/devicetest/index.html checkpatch is wrong in https://github.com/thesofproject/sof/actions/runs/5008561941/jobs/8976565505?pr=7551 https://sof-ci.01.org/sof-pr-viewer/#/build/PR7551/build12013250 cannot work because quickbuild CI is simply not compatible with the stable-v2.2 branch which uses a very different manifest. Everything else is green. @wszypelt, @aborisovich can we please disable quickbuild on the stable-v2.2 branch? Unless someone is capable of reverting QB to what it was at v2.2 time but I'm really not holding my breath. |
| - name: build | ||
| run: docker run -v "$(pwd)":/workdir | ||
| ghcr.io/zephyrproject-rtos/zephyr-build:latest | ||
| ghcr.io/zephyrproject-rtos/zephyr-build:v0.23.4 |
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.
We are explicitly changing the behavior here? Changing from the "moving target" of "latest" to a hard-coded version? Does that mean someone has to make sure to keep this up-to-date?
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.
Yes because this is a stable branch, see commit message.
| # ever goes wrong try replacing --user with the newer | ||
| # scripts/sudo-cwd.sh script. | ||
| test "$(id -u)" = 1000 || | ||
| >&2 printf "Warning: this script should be run as user ID 1000 to match the container's account\n" |
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.
Out of curiosity, what changed the user from 1001 to 1000?
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.
This is a bug fix, I got the ID wrong. See commit message.
| # zephyr-build:/etc/sudoers: 'user' can do anything but... only as | ||
| # root. | ||
| sudo sudo -u "$sof_user" "$0" "$@" | ||
| sudo sudo -u "$sof_user" http_proxy="$http_proxy" https_proxy="$https_proxy" "$0" "$@" |
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 know this all works and has been tested, but where does $http_proxy and $https_proxy come from here?
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.
This is a shell script so they come from your personal environment (and they're optional)
fredoh9
left a comment
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.
looks good for stable-v2.2
marc-hb
left a comment
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.
Thanks for the reviews!
| - name: build | ||
| run: docker run -v "$(pwd)":/workdir | ||
| ghcr.io/zephyrproject-rtos/zephyr-build:latest | ||
| ghcr.io/zephyrproject-rtos/zephyr-build:v0.23.4 |
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.
Yes because this is a stable branch, see commit message.
| # ever goes wrong try replacing --user with the newer | ||
| # scripts/sudo-cwd.sh script. | ||
| test "$(id -u)" = 1000 || | ||
| >&2 printf "Warning: this script should be run as user ID 1000 to match the container's account\n" |
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.
This is a bug fix, I got the ID wrong. See commit message.
| # zephyr-build:/etc/sudoers: 'user' can do anything but... only as | ||
| # root. | ||
| sudo sudo -u "$sof_user" "$0" "$@" | ||
| sudo sudo -u "$sof_user" http_proxy="$http_proxy" https_proxy="$https_proxy" "$0" "$@" |
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.
This is a shell script so they come from your personal environment (and they're optional)
95%, mostly clean cherry-picks from main branch
This avoids branching the Docker image and turns all checks green.