-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update chatbot image when RAG image is updated #61
Update chatbot image when RAG image is updated #61
Conversation
7ab60d2
to
536ccba
Compare
3f2aa5e
to
fb228d0
Compare
fb228d0
to
a629eb6
Compare
- IMAGE_TAGS=pr-{{pull_request_number}} pr-{{pull_request_number}}.$(tasks.git-metadata.results.commit-timestamp) | ||
- GIT_COMMIT=$(tasks.clone-repository.results.commit) | ||
- RAG_CONTENTS_SUB_FOLDER=vector_db/aap_product_docs | ||
- LIGHTSPEED_RAG_CONTENT_IMAGE=quay.io/ansible/aap-rag-content:1.0.1739753069 |
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.
This is for re-writing BUILD_ARGS
in YAML list syntax and specifying a semver version to aap-rag-content
image
- IMAGE_TAGS=latest 1.0.$(tasks.git-metadata.results.commit-timestamp) | ||
- GIT_COMMIT=$(tasks.clone-repository.results.commit) | ||
- RAG_CONTENTS_SUB_FOLDER=vector_db/aap_product_docs | ||
- LIGHTSPEED_RAG_CONTENT_IMAGE=quay.io/ansible/aap-rag-content:1.0.1739753069 |
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.
Same changes added to the push.yaml as well.
@@ -0,0 +1,15 @@ | |||
{ |
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.
how can I test this @TamiTakamiya ?
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.
I used my private GitHub repositories (and corresponding Konflux builds/quay.io repos) for test:
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.
no I meant how can I test this renovate config itself? should I use Renovate CLI?
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.
According to Slack posts like this, renovate, which checks updates of the image, runs every 4 hour. So there might be delays up to 4 hours.
Oh ok just saw your comment on Slack
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.
Just one small thing which is not a blocker:
Maybe we can enforce testing the renovate stuff with the CLI instead of waiting Konflux to run it. So we can do our own verification upfront so we can make sure Konflux doesnt fail because of this. WDYT?
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.
Maybe we can enforce testing the renovate stuff with the CLI instead of waiting Konflux to run it.
I do not know how to trigger renovate with CLI and that's why I wrote my private repos for testing... How can we test renovate with CLI?
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.
Probably we can install this and use this locally at least or make the pre-commit run it in the future to validate the config json https://docs.renovatebot.com/getting-started/running/#npm-package-cli
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.
I will take a look at it once I have time
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
Description
For AAP-37207.
Trigger chatbot service image build when RAG content image is updated using renovate (reference)
Type of change
Related Tickets & Documents
Checklist before requesting a review
Testing