-
Notifications
You must be signed in to change notification settings - Fork 618
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
OCPBUGS-6634: Enable building tectonic-console-builder on arm64 and fix the Dockerfile.product to work with no cached artifacts #12444
OCPBUGS-6634: Enable building tectonic-console-builder on arm64 and fix the Dockerfile.product to work with no cached artifacts #12444
Conversation
…rent than x86_64 This commit will allow building the tectonic-console-builder on platforms different than x86_64. The installation of chrome is currently disabled as it is not shipped for arm64.
af141b6
to
028cde6
Compare
Thanks for the change @aleskandro 👍 Please let me know once you change the image in the |
028cde6
to
8a2dbe7
Compare
Based on the discussion in https://redhat-internal.slack.com/archives/C6A3NV5J9/p1674051149090609, I'm giving a shot to make the |
8a2dbe7
to
cf5805a
Compare
@@ -55,7 +56,8 @@ RUN cd /tmp && \ | |||
ln -s /usr/local/yarn/bin/yarn /usr/local/bin/yarn | |||
|
|||
# Install Chrome for installer gui tests | |||
RUN wget --quiet -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ | |||
RUN test "$(go env GOARCH)" = amd64 || exit 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.
Can the test suite use chromium and provide reliable test results? We could install it at least for non-amd64 images.
Thanks @aleskandro. I think it would be good to have ART review the Dockerfile.product changes. /cc @sosiouxme |
/unhold |
Dockerfile.product considers the build engine providing (a) cachito-backed cache artifacts for the dependencies and (b) a cached yarn. This commit enables builder engines not providing caching artifacts to build the Dockerfile.product image by pulling the packages from other remote sources when the cached files are not available.
cf5805a
to
bd74dc0
Compare
@aleskandro if |
We could also rename Dockerfile.product to Dockerfile then and change the ref in https://github.com/openshift/ocp-build-data/blob/openshift-4.13/images/openshift-enterprise-console.yml#L3. Can't we? |
Sure, it's just when the two are symlinks the config changes in |
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.
/lgtm
/assign @jhadvig |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aleskandro, LorbusChris, spadgett The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The failing tests seem unrelated, can we skip? |
@aleskandro: This pull request references Jira Issue OCPBUGS-6634, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
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/test-infra repository. |
/jira refresh |
@aleskandro: This pull request references Jira Issue OCPBUGS-6634, which is invalid:
Comment In response to this:
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/test-infra repository. |
/jira refresh |
@aleskandro: This pull request references Jira Issue OCPBUGS-6634, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
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/test-infra repository. |
/test e2e-gcp-console |
|
/retest |
@aleskandro: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-6634 has been moved to the MODIFIED state. In response to this:
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/test-infra repository. |
This PR will allow:
Dockerfile.builder
) and the console (Dockerfile
) on architectures different than amd64;Dockerfile.product
outside the internal build engines.I disabled the installation of google-chrome in the
Dockerfile.builder
as it is not shipped for arm64: chromium is available, but I'm not sure it is ok for the purpose it has in the tests.Still,
console-tectonic-builder
will only allow building the console on arm64 once nodeJs is bumped to v14.17.0 (see nodejs/help#3202). As the idea is to switch using a unique Dockerfile for both the CI and the shipped product, this PR will not address the version bump, and the builds for arm64 can work from theDockerfile.product
.After this is merged, openshift/release#35527 can land, and we can start using
Dockerfile.product
in the CI and for OKD.The changes to the
Dockerfile.product
have been tested in prow through a temporary commit. log here.cc @jeffdyoung @LorbusChris