Skip to content

Conversation

@carbonin
Copy link
Collaborator

@carbonin carbonin commented Jul 23, 2025

The "dev-latest" tag was failing when we tried to run, but this tag matches the commit of our submodule and the patch applies cleanly

Summary by CodeRabbit

  • Chores
    • Updated the base image in the container configuration to use a specific version tag.

The "dev-latest" tag was failing when we tried to run, but this tag
matches the commit of our submodule and the patch applies cleanly
@openshift-ci openshift-ci bot requested review from eranco74 and omertuc July 23, 2025 20:29
@openshift-ci
Copy link

openshift-ci bot commented Jul 23, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: carbonin

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

@coderabbitai
Copy link

coderabbitai bot commented Jul 23, 2025

Walkthrough

The base image reference in the Containerfile for assisted-chat was updated from a floating "dev-latest" tag to a specific version tag "dev-20250718-0cb49fc". No other modifications to build instructions or configuration were made.

Changes

File(s) Change Summary
Containerfile.assisted-chat Updated base image tag from "dev-latest" to a fixed version

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • Fix containerfile #57: Also modifies the base image tag in the Containerfile, changing from "latest" to "dev-latest" and enabling patching steps; both PRs update the base image reference.

Suggested labels

approved, lgtm

Suggested reviewers

  • jhernand

Note

⚡️ Unit Test Generation - Beta

CodeRabbit's unit test generation is now available in Beta! Automatically generate comprehensive unit tests for your code changes, ensuring better test coverage and catching edge cases you might miss. Our AI analyzes your code structure and creates tests that follow best practices and your project's testing patterns. Learn more here, or just try it under ✨ Finishing Touches.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
Containerfile.assisted-chat (1)

2-2: Pin by digest for full immutability

Switching from the floating dev-latest tag to a date-stamped tag is a step forward, but tags can still be re-pushed. Consider pinning by SHA-256 digest to guarantee byte-for-byte reproducibility and prevent supply-chain surprises.

-FROM quay.io/lightspeed-core/lightspeed-stack:dev-20250718-0cb49fc
+FROM quay.io/lightspeed-core/lightspeed-stack@sha256:<digest_here>  # dev-20250718-0cb49fc
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cc14beb and d4eae40.

📒 Files selected for processing (1)
  • Containerfile.assisted-chat (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Red Hat Konflux / assisted-chat-saas-main-on-pull-request
🔇 Additional comments (1)
Containerfile.assisted-chat (1)

8-12: Ensure build fails if the llama-stack patch doesn’t apply cleanly

Add strict error handling to the RUN step in Containerfile.assisted-chat (around lines 8–12) so the build will error out if the patch fails:

 USER root
-RUN microdnf install -y patch
-RUN curl -L https://github.com/meta-llama/llama-stack/commit/5e18d4d097d683056174b3c8b270806326e7ee96.patch | patch -p1 -d $(dirname $(dirname $(python3 -c "import llama_stack; print(llama_stack.__file__)")))
+RUN set -euo pipefail && \
+    microdnf install -y patch && \
+    curl -fsSL https://github.com/meta-llama/llama-stack/commit/5e18d4d097d683056174b3c8b270806326e7ee96.patch \
+    | patch -p1 -d "$(dirname "$(dirname "$(python3 - <<'PY'
+import os, llama_stack
+print(os.path.abspath(os.path.dirname(llama_stack.__file__)))
+PY
+)")")"
 USER 1001

• Please verify the patch still applies cleanly against the current base image.

@carbonin carbonin added the lgtm label Jul 23, 2025
@carbonin
Copy link
Collaborator Author

Adding lgtm manually since it's late for most of the team and nothing is working right now.

@openshift-merge-bot openshift-merge-bot bot merged commit 57b791e into rh-ecosystem-edge:main Jul 23, 2025
5 checks passed
@carbonin carbonin deleted the use-older-lsc-tag branch July 23, 2025 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant