-
Notifications
You must be signed in to change notification settings - Fork 6
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
CI: workaround for push issue #57
Conversation
71c5e43
to
232e60f
Compare
232e60f
to
f1ebc1a
Compare
@masterleinad can we merge this workaround? |
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.
Please provide a proper description
- name: Checkout CI repo | ||
uses: actions/checkout@v4 |
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.
Why did we add this?
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.
Now we need to checkout the Dockerfiles as we modify them below. Previously the docker action did that for us automatically.
@@ -75,11 +77,11 @@ jobs: | |||
-DKokkos_ENABLE_OPENMP=ON && \ | |||
cmake --build builddir --parallel 2 && \ | |||
ctest --test-dir builddir --output-on-failure" | |||
sed -i '26s/$/ /' ${{ matrix.config.dockerfile }} # workaround for kokkos/ci-containers#56 |
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.
What is that doing and why is it needed?
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.
As a workaround we are adding a space to the end of the line to force docker to "rebuild" line 26 and later commands.
Sorry, I updated it above. I wish I could find a better hack. |
Now
not sure that has much to do with this PR. |
@@ -75,11 +77,11 @@ jobs: | |||
-DKokkos_ENABLE_OPENMP=ON && \ | |||
cmake --build builddir --parallel 2 && \ | |||
ctest --test-dir builddir --output-on-failure" | |||
sed -i '26s/$/ /' ${{ matrix.config.dockerfile }} # force rebuild by adding a space (kokkos/ci-containers#56) |
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.
Why line 26?
Line 26 in 79beb83
ENV LD_LIBRARY_PATH=${INTEL:+/opt/intel/oneapi/compiler/latest/linux/compiler/lib/intel64:/opt/intel/oneapi/mkl/latest/lib/intel64}${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH} |
Line 26 in 79beb83
USER kokkos |
The opensuse file only has 13 lines.
Does that mean prepend a space to the 26th line?
If so please update the comment so that I don't wonder again what this is actually doing next time I look.
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.
It was because it fails on line 26 for ubuntu.
Is there a particular reason why we cannot use the |
Let me try that.... |
@@ -77,9 +77,10 @@ jobs: | |||
ctest --test-dir builddir --output-on-failure" | |||
- name: Push the image into GitHub Container Registry | |||
uses: docker/build-push-action@v6 | |||
if: ${{ github.repository_owner == 'kokkos' && ( github.event_name == 'push' || github.event_name == 'schedule' ) }} |
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 could discuss to add this back, the step is relatively cheap except for the intel container and I prefer to run the whole CI as part of any PR.
https://github.com/kokkos/ci-containers/actions/runs/13147752154 |
Hacky workaround for #56 by adding a space after the 1st build to force a rebuild.