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

fixed art-bot query using catalogs #174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mbiarnes
Copy link
Contributor

No description provided.

@mbiarnes mbiarnes requested a review from ashwindasr February 20, 2024 11:49
@mbiarnes
Copy link
Contributor Author

/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 Feb 20, 2024
artbotlib/brew_list.py Outdated Show resolved Hide resolved
Copy link
Contributor

openshift-ci bot commented Feb 21, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from ashwindasr. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@mbiarnes mbiarnes requested a review from ashwindasr February 21, 2024 14:53
@mbiarnes mbiarnes force-pushed the catalogs branch 3 times, most recently from 8aa2c2b to 750a4e0 Compare March 4, 2024 10:26
@mbiarnes
Copy link
Contributor Author

mbiarnes commented Mar 4, 2024

@ashwindasr now it is working also if we have multiple CDNs or deliveries. Please test it.

@mbiarnes mbiarnes requested review from ashwindasr and removed request for ashwindasr March 20, 2024 13:38
@mbiarnes mbiarnes force-pushed the catalogs branch 3 times, most recently from abe696b to 12a29d2 Compare March 20, 2024 15:59
for item in data_info:
cat_id, cat_name = item
result += f"{constants.CATALOG_URL}/{cat_name}/{cat_id}\n"
except Exception as e:
Copy link
Contributor

Choose a reason for hiding this comment

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

What exception do you expect here? I think we can be more specific and restrict the except block to the expected exception only

artbotlib/brew_list.py Show resolved Hide resolved
artbotlib/brew_list.py Outdated Show resolved Hide resolved
artbotlib/brew_list.py Show resolved Hide resolved
@mbiarnes
Copy link
Contributor Author

mbiarnes commented Sep 3, 2024

@ashwindasr
there are still two things I don't like:

  1. when we have i.e. the component_name: ose-cluster-policy-controller-container
    there does not exist a distgit for this repo, but for cluster-policy-controller.
    When it is easy to strip -container it is not clear how to look if ose is needed or not.

  2. When accessing an URL like https://art-dash-server-art-dashboard-server.apps.artc2023.pc3z.p1.openshiftapps.com/api/v1/pipeline-image?starting_from=distgit&name=golang-github-prometheus-alertmanager&version=4.16 it takes a lot of time (also when you browse to this URL).
    So the command for art -bot: What catalogs are associated with takes very long! I don't think we can accelerate this.

@ashwindasr
Copy link
Contributor

@mbiarnes

  1. We store the brew package name in the image metadata (ocp-build-data config file) itself, so doozer runtime will have the mapping (since the distgit key is the file name)
  2. Yes right now its not optimized, but it has the potential to be cached on the server side, if you are looking to optimize it

@mbiarnes
Copy link
Contributor Author

mbiarnes commented Sep 9, 2024

@ashwindasr
art-bot: what catalog are associated with <release> works.
Before it could fetch from the json file ['config']['config']['label'] the url, but this doesn't work any more.
The resulting catalog url has to be constructed by accessing urls like:
https://art-dash-server-art-dashboard-server.apps.artc2023.pc3z.p1.openshiftapps.com/api/v1/pipeline-image?starting_from=distgit&name=ose-alibaba-cloud-controller-manager&version=4.16
and retrieving from the json answer
delivery_repo_id and delivery_repo_name
The access to https://art-dash-server-art-dashboard-server.apps.artc2023.pc3z.p1.openshiftapps.com/api/v1/pipeline-image?starting_from=distgit&name=>calatog_name>&version=<MAJ.MIN) takes a long amount of time

Update artbotlib/brew_list.py

Co-authored-by: Daniele Paolella <[email protected]>
Copy link
Contributor

openshift-ci bot commented Sep 9, 2024

@mbiarnes: 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/security bbb485e link false /test security

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

@mbiarnes
Copy link
Contributor Author

/unhold

@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 Sep 10, 2024
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.

3 participants