Skip to content
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

Fix docs build release job #4464

Merged
merged 7 commits into from
Jun 21, 2024
Merged

Fix docs build release job #4464

merged 7 commits into from
Jun 21, 2024

Conversation

Baltoli
Copy link
Contributor

@Baltoli Baltoli commented Jun 20, 2024

This PR fixes a bug that's been breaking the Pyk documentation release jobs; the issue was that we were trying to install the standalone LLVM backend .deb package on top of an existing K installation that already contains the LLVM backend.

The fix is to add a flag to the K Docker reusable action that allows the backend installation step to be skipped. You can see a successful run of the fixed workflow here: https://github.com/runtimeverification/k/actions/runs/9604052282/job/26489371015?pr=4464

@Baltoli Baltoli requested a review from tothtamas28 June 21, 2024 08:36
@Baltoli Baltoli marked this pull request as ready for review June 21, 2024 08:36
@Baltoli Baltoli requested a review from a team as a code owner June 21, 2024 08:36
Comment on lines +21 to +23
RUN if [ "${INSTALL_BACKEND_DEBS}" = "true" ]; then \
apt-get -y install /llvm-backend.deb; \
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should clean this up a bit (in a different PR): the LLVM_BACKEND_DEB_PATH is required, even if INSTALL_BACKEND_DEBS is not true.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, it's a slightly awkward design as it stands - will aim to clean up in a following PR per your comment below

/llvm-backend.deb \
/kframework.deb \
&& apt-get -y clean
/kframework.deb
Copy link
Contributor

@tothtamas28 tothtamas28 Jun 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So IIUC this Docker file is used with two kinds of kframework.deb: one that contains the LLVM backend and one that doesn't.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep! We should clean that up

@rv-jenkins rv-jenkins merged commit 8adae80 into develop Jun 21, 2024
17 checks passed
@rv-jenkins rv-jenkins deleted the fix-docs-job branch June 21, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants