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

Bug 2088304: Eliminate use of lookaside cache and move to Cachito #11497

Merged
merged 3 commits into from
May 24, 2022

Conversation

vfreex
Copy link
Contributor

@vfreex vfreex commented May 16, 2022

Legacy Container First Pipeline will be deprecated on Jun 3, 2022. Images failing to migrate to the new source container workflow by this date will not have their sources shipped to customers and lose the compliance with legal requirements.

To move to the new source container workflow, we need to:

  • Eliminate use of distgit lookaside cache, which is not supported by the new workflow.
  • Use Cachito to track and provide npm dependencies.
  • Use fetch-artifacts-url.yaml to fetch binaries artifacts during the build.

Due to a limitation in Cachito, we also need to give a pseudo name and version to the frontend package. AFAIK the version doesn't need to be unique for every build.
I am not familiar with the code base. Let me know if the change is legitimate.

[Legacy Container First Pipeline][1] will be deprecated on Jun 3, 2022. Images failing to migrate to the new source container workflow by this date will not have their sources shipped to customers and lose the compliance with legal requirements.

To move to the new source container workflow, we need to:
- Eliminate use of distgit lookaside cache, which is not supported by the new workflow.
- Use [Cachito][2] to track and provide npm dependencies.
- Use [fetch-artifacts-url.yaml][3] to fetch binaries artifacts during the build.

Due to a limitation in Cachito, we also need to give a pseudo name and version to the frontend package. AFAIK the version doesn't need to be unique for every build.
I am not familiar with the code base. Let me know if the change is legitimate.

[1]: https://docs.engineering.redhat.com/display/SP/Decommission+of+Legacy+Container+First+Pipeline
[2]: https://github.com/containerbuildsystem/cachito
[3]: https://osbs.readthedocs.io/en/osbs_ocp3/users.html#fetch-artifacts-url-yaml
@openshift-ci openshift-ci bot requested review from rhamilto and TheRealJon May 16, 2022 09:21
@openshift-ci openshift-ci bot added the component/sdk Related to console-plugin-sdk label May 16, 2022
@vfreex
Copy link
Contributor Author

vfreex commented May 16, 2022

This PR needs to wait on https://issues.redhat.com/browse/CLOUDBLD-9948.
/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 16, 2022
@spadgett
Copy link
Member

I think this should be fine, although we'll have to dig in to see what is causing the lint failure.

cc @christianvogt @vojtechszocs

@spadgett
Copy link
Member

cc @bipuladh since these are tsdoc lint failures

@vfreex
Copy link
Contributor Author

vfreex commented May 17, 2022

Thanks for the review. I created a test build: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=45345673, could anyone have a look to ensure we won't break things?

I moved the artifacts that previously stored on lookaside cache to http://download.eng.bos.redhat.com/rcm-guest/puddles/RHAOS/artifacts/build-deps/, and used the following fetch-artifacts-url.yaml file:

- target: yarn-v1.22.19.tar.gz
  url: http://download.eng.bos.redhat.com/rcm-guest/puddles/RHAOS/artifacts/build-deps/yarn-v1.22.19.tar.gz
  sha256: 732620bac8b1690d507274f025f3c6cfdc3627a84d9642e38a07452cc00e0f2e
  source-url: http://download.eng.bos.redhat.com/rcm-guest/puddles/RHAOS/artifacts/build-deps/yarn-source-v1.22.19.tar.gz
  source-sha256: 50af0025d2ef942bf3e6cdd0587dc9c4dd8d6e6e69501b84935d09f2b2b5de8b

@openshift-cherrypick-robot

@vfreex: once the present PR merges, I will cherry-pick it on top of openshift-4.11 in a new PR and assign it to you.

In response to this:

/hold cancel
/cherry-pick openshift-4.11
/cherry-pick openshift-4.10

Looks like 4.6-4.9 need another PR because they requires node-headers.

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.

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 17, 2022
vfreex added a commit to vfreex/ocp-build-data that referenced this pull request May 17, 2022
Using distgit lookaside cache will not be allowed in the new source container workflow.

This PR:
- Uses OSBS fetch-artifacts-url.yaml to instruct OSBS to download the binaries from the internal web server during build.
- Uses Cachito to provide npm dependencies.

Requires:
- openshift/console#11497
- openshift-eng/doozer#594
- openshift-eng/doozer#593
@vfreex
Copy link
Contributor Author

vfreex commented May 17, 2022

/cherry-pick release-4.11
/cherry-pick release-4.10

@openshift-cherrypick-robot

@vfreex: once the present PR merges, I will cherry-pick it on top of release-4.11 in a new PR and assign it to you.

In response to this:

/cherry-pick release-4.11
/cherry-pick release-4.10

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.

@vfreex
Copy link
Contributor Author

vfreex commented May 17, 2022

/retest

@bipuladh
Copy link
Contributor

cc @bipuladh since these are tsdoc lint failures

I can see tsdoc warns but the ferror is related to prettier.

…er.ts

Co-authored-by: Bipul Adhikari <badhikar@redhat.com>
@spadgett
Copy link
Member

@vfreex I was able to pull and run the image from your test build. It looks good to me 👍

@spadgett
Copy link
Member

/approve

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 17, 2022
@vfreex
Copy link
Contributor Author

vfreex commented May 18, 2022

/retest

@vfreex
Copy link
Contributor Author

vfreex commented May 18, 2022

@vfreex I was able to pull and run the image from your test build. It looks good to me 👍

Thank you. Any idea about the CI failure?

I will also create another PR for 4.6-4.9.

@spadgett
Copy link
Member

Thank you. Any idea about the CI failure?

It looks like you still need to run prettier on plugin-resolver.ts

@vfreex vfreex changed the title Eliminate use of lookaside cache and move to Cachito Bug 2088304: Eliminate use of lookaside cache and move to Cachito May 19, 2022
@openshift-ci openshift-ci bot added bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels May 19, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 19, 2022

@vfreex: This pull request references Bugzilla bug 2088304, which is invalid:

  • expected the bug to target the "4.11.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 2088304: Eliminate use of lookaside cache and move to Cachito

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.

@vfreex
Copy link
Contributor Author

vfreex commented May 19, 2022

/bugzilla refresh

@openshift-ci openshift-ci bot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels May 19, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 19, 2022

@vfreex: This pull request references Bugzilla bug 2088304, which is valid. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @yapei

In response to this:

/bugzilla refresh

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.

@openshift-ci openshift-ci bot requested a review from yapei May 19, 2022 07:25
@vfreex
Copy link
Contributor Author

vfreex commented May 19, 2022

Thank you. Any idea about the CI failure?

It looks like you still need to run prettier on plugin-resolver.ts

Done fixing the lint issue. Seems all tests passed.

Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 23, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 23, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: spadgett, vfreex

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 24, 2022

@vfreex: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit f405139 into openshift:master May 24, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 24, 2022

@vfreex: All pull requests linked via external trackers have merged:

Bugzilla bug 2088304 has been moved to the MODIFIED state.

In response to this:

Bug 2088304: Eliminate use of lookaside cache and move to Cachito

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.

@openshift-cherrypick-robot

@vfreex: new pull request created: #11550

In response to this:

/cherry-pick release-4.11
/cherry-pick release-4.10

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.

@openshift-cherrypick-robot

@vfreex: new pull request created: #11551

In response to this:

/cherry-pick release-4.11
/cherry-pick release-4.10

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.

openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/ocp-build-data that referenced this pull request May 24, 2022
Using distgit lookaside cache will not be allowed in the new source container workflow.

This PR:
- Uses OSBS fetch-artifacts-url.yaml to instruct OSBS to download the binaries from the internal web server during build.
- Uses Cachito to provide npm dependencies.

Requires:
- openshift/console#11497
- openshift-eng/doozer#594
- openshift-eng/doozer#593
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/sdk Related to console-plugin-sdk lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants