Skip to content

[ci]: fix k3 comprehensive test nightly baseline retrieval#2753

Merged
sammshen merged 1 commit intoLMCache:devfrom
sammshen:patch-k3-comprehensive
Mar 13, 2026
Merged

[ci]: fix k3 comprehensive test nightly baseline retrieval#2753
sammshen merged 1 commit intoLMCache:devfrom
sammshen:patch-k3-comprehensive

Conversation

@sammshen
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Samuel Shen <slshen@uchciago.edu>
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses a critical issue in the K3 comprehensive test suite's nightly baseline retrieval mechanism. By refining the method for identifying and fetching benchmark baseline files, it ensures that the CI process accurately retrieves both date-stamped and legacy JSON baselines. This change enhances the reliability of nightly benchmark comparisons, preventing potential failures or incorrect results caused by the previous flawed globbing approach.

Highlights

  • CI Baseline Retrieval Fix: Corrected the logic for retrieving nightly baseline files in the K3 comprehensive test suite. The previous git ls-tree command incorrectly used shell globs, which it does not expand.
  • Improved Pattern Matching: Modified the script to use git ls-tree to list the directory contents, then pipe the output to grep -E for accurate filtering of date-stamped and legacy baseline JSON files.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • .buildkite/k3_tests/comprehensive/scripts/run-single-config.sh
    • Refactored baseline file retrieval to use git ls-tree for directory listing combined with grep -E for robust pattern matching.
    • Added a comment explaining why grep is used instead of direct globbing with git ls-tree.
Activity
  • No specific activity (comments, reviews, progress) was provided in the context.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request fixes an issue with retrieving nightly baseline files for comprehensive tests. The previous method using git ls-tree with a glob in the pathspec was not working correctly. The new implementation, which lists all files in the target directory and then uses grep with a regular expression to filter for the correct baseline files, is a more robust and correct approach. My review includes a suggestion to further improve maintainability by extracting a repeated path into a variable.

Comment on lines 337 to 343
local -a baseline_files=()
mapfile -t baseline_files < <(
git ls-tree --name-only origin/benchmarks-main -- \
"benchmarks/long_doc_qa/${feat_type}-"*.json \
"benchmarks/long_doc_qa/${feat_type}.json" \
2>/dev/null || true
benchmarks/long_doc_qa/ 2>/dev/null \
| grep -E "^benchmarks/long_doc_qa/${feat_type}(-[0-9]{8})?\.json$" \
|| true
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

To improve readability and maintainability, you could extract the repeated path benchmarks/long_doc_qa into a variable. This avoids repeating the string and makes it easier to update if the path ever changes.

Suggested change
local -a baseline_files=()
mapfile -t baseline_files < <(
git ls-tree --name-only origin/benchmarks-main -- \
"benchmarks/long_doc_qa/${feat_type}-"*.json \
"benchmarks/long_doc_qa/${feat_type}.json" \
2>/dev/null || true
benchmarks/long_doc_qa/ 2>/dev/null \
| grep -E "^benchmarks/long_doc_qa/${feat_type}(-[0-9]{8})?\.json$" \
|| true
)
local baseline_dir="benchmarks/long_doc_qa"
local -a baseline_files=()
mapfile -t baseline_files < <(
git ls-tree --name-only origin/benchmarks-main -- \
"${baseline_dir}/" 2>/dev/null \
| grep -E "^${baseline_dir}/${feat_type}(-[0-9]{8})?\.json$" \
|| true
)

@sammshen sammshen enabled auto-merge (squash) March 13, 2026 20:24
@github-actions github-actions Bot added the full Run comprehensive tests on this PR label Mar 13, 2026
@deng451e deng451e self-requested a review March 13, 2026 20:25
@sammshen sammshen merged commit 01b9cc4 into LMCache:dev Mar 13, 2026
23 of 25 checks passed
hyunyul-XCENA pushed a commit to xcena-dev/LMCache that referenced this pull request Mar 20, 2026
)

fix git glob

Signed-off-by: Samuel Shen <slshen@uchciago.edu>
Co-authored-by: Samuel Shen <slshen@uchciago.edu>
realAaronWu pushed a commit to realAaronWu/LMCache that referenced this pull request Mar 20, 2026
)

fix git glob

Signed-off-by: Samuel Shen <slshen@uchciago.edu>
Co-authored-by: Samuel Shen <slshen@uchciago.edu>
Signed-off-by: Aaron Wu <aaron.wu@dell.com>
jooho-XCENA pushed a commit to xcena-dev/LMCache that referenced this pull request Apr 2, 2026
)

fix git glob

Signed-off-by: Samuel Shen <slshen@uchciago.edu>
Co-authored-by: Samuel Shen <slshen@uchciago.edu>
jooho-XCENA pushed a commit to xcena-dev/LMCache that referenced this pull request Apr 2, 2026
)

fix git glob

Signed-off-by: Samuel Shen <slshen@uchciago.edu>
Co-authored-by: Samuel Shen <slshen@uchciago.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full Run comprehensive tests on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants