Skip to content

fix: copy techdocs-venv from cleanup stage in Dockerfile#4682

Open
polasudo wants to merge 2 commits intoredhat-developer:release-1.9from
polasudo:fix/next-1.9-dockerfile-techdocs-venv
Open

fix: copy techdocs-venv from cleanup stage in Dockerfile#4682
polasudo wants to merge 2 commits intoredhat-developer:release-1.9from
polasudo:fix/next-1.9-dockerfile-techdocs-venv

Conversation

@polasudo
Copy link
Copy Markdown
Member

@polasudo polasudo commented Apr 23, 2026

Summary

  • Fix broken next-1.9 image builds caused by moving techdocs-venv creation from the build stage to the cleanup stage, but left the COPY --from=build instruction unchanged in the runner stage
  • Every build on release-1.9 has been failing since April 8 with: failed to calculate checksum of ref: "/opt/techdocs-venv": not found
  • The next-1.9 Quay tag expired on April 21 (14-day TTL via quay.expires-after=14d), breaking smoke tests in the overlay repo

Root Cause

moved the techdocs-venv RUN block into the cleanup stage (after FROM skeleton AS cleanup at line 157), but line 242 still had:

COPY --from=build --chown=1001:1001 /opt/techdocs-venv /opt/techdocs-venv

Since the venv is built in cleanup, not build, the COPY fails. For comparison, release-1.8 builds the venv inside the build stage so its COPY --from=build works correctly.

Fix

Changed line 242 from COPY --from=build to COPY --from=cleanup to match where the venv is actually created:

COPY --from=cleanup --chown=1001:1001 /opt/techdocs-venv /opt/techdocs-venv

Test plan

  • Verify the next-build-image workflow succeeds on this branch
  • Confirm next-1.9 tag reappears in quay.io/rhdh-community/rhdh
  • Verify overlay repo smoke tests pass again with rhdh:next-1.9

🤖 Generated with Claude Code

PR redhat-developer#4553 moved the techdocs-venv creation from the build stage into
the cleanup stage, but the COPY instruction in the runner stage still
referenced --from=build. This caused every image build on release-1.9
to fail since April 8 with:
  "failed to calculate checksum of ref: /opt/techdocs-venv: not found"

Since next-* tags have a 14-day Quay expiration (quay.expires-after=14d),
the last successful next-1.9 image (built April 7) expired on April 21,
breaking smoke tests in the overlay repo.

The fix changes COPY --from=build to COPY --from=cleanup to match where
the techdocs-venv is actually built, consistent with how release-1.8
handles this (where the venv is built in the build stage and correctly
copied from there).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@openshift-ci openshift-ci Bot requested review from davidfestal and kim-tsao April 23, 2026 09:02
@github-actions
Copy link
Copy Markdown
Contributor

Image was built and published successfully. It is available at:

@Omar-AlJaljuli
Copy link
Copy Markdown
Contributor

Omar-AlJaljuli commented Apr 23, 2026

I'd move https://github.com/redhat-developer/rhdh/blob/release-1.9/docker/Dockerfile#L205-L214 to the build stage instead. I believe that there were dependencies there that the techdocs-venv relied on as well to build.
Similar to: https://github.com/redhat-developer/rhdh/blob/release-1.8/docker/Dockerfile#L155-L168

PR redhat-developer#4553 moved the techdocs-venv creation from the build stage into
the cleanup stage, but the COPY instruction in the runner stage still
referenced --from=build. This caused every image build on release-1.9
to fail since April 8 with:
  "failed to calculate checksum of ref: /opt/techdocs-venv: not found"

Since next-* tags have a 14-day Quay expiration (quay.expires-after=14d),
the last successful next-1.9 image (built April 7) expired on April 21,
breaking smoke tests in the overlay repo.

The fix moves the techdocs-venv RUN block back into the build stage
(matching release-1.8 and main), where the python3.11 and pip
dependencies from the skeleton base image are available. The
COPY --from=build in the runner stage now correctly finds the venv.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown
Contributor

Image was built and published successfully. It is available at:

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 23, 2026

@polasudo: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-ocp-helm 9b93bfe link true /test e2e-ocp-helm

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants