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

Update chatbot image when RAG image is updated #61

Conversation

TamiTakamiya
Copy link
Collaborator

Description

For AAP-37207.
Trigger chatbot service image build when RAG content image is updated using renovate (reference)

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up dependent library
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change

Related Tickets & Documents

Checklist before requesting a review

  • I have performed a self-review of my code.
  • PR has passed all pre-merge test jobs.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

@TamiTakamiya TamiTakamiya force-pushed the TamiTakamiya/AAP-37207/trigger-chatbot-service-build-when-rag-image-updated branch 2 times, most recently from 7ab60d2 to 536ccba Compare February 4, 2025 03:32
@TamiTakamiya TamiTakamiya force-pushed the TamiTakamiya/AAP-37207/trigger-chatbot-service-build-when-rag-image-updated branch 2 times, most recently from 3f2aa5e to fb228d0 Compare February 17, 2025 15:53
@TamiTakamiya TamiTakamiya force-pushed the TamiTakamiya/AAP-37207/trigger-chatbot-service-build-when-rag-image-updated branch from fb228d0 to a629eb6 Compare February 18, 2025 10:09
@TamiTakamiya TamiTakamiya marked this pull request as ready for review February 18, 2025 10:33
- 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
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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 @@
{
Copy link

@mabulgu mabulgu Feb 18, 2025

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 ?

Copy link
Collaborator Author

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:

Copy link

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?

Copy link

@mabulgu mabulgu Feb 18, 2025

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

Copy link

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?

Copy link
Collaborator Author

@TamiTakamiya TamiTakamiya Feb 18, 2025

Choose a reason for hiding this comment

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

@mabulgu

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?

Copy link

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

Copy link

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

Copy link

@mabulgu mabulgu left a comment

Choose a reason for hiding this comment

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

LGTM

@TamiTakamiya TamiTakamiya merged commit 1224700 into main Feb 18, 2025
24 checks passed
@TamiTakamiya TamiTakamiya deleted the TamiTakamiya/AAP-37207/trigger-chatbot-service-build-when-rag-image-updated branch February 18, 2025 13:05
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