Skip to content

[Chore][CI]: chmod +x scripts in k3 test entrypoints #2886

Merged
sammshen merged 1 commit intoLMCache:devfrom
sammshen:k3-permission-patch
Mar 27, 2026
Merged

[Chore][CI]: chmod +x scripts in k3 test entrypoints #2886
sammshen merged 1 commit intoLMCache:devfrom
sammshen:k3-permission-patch

Conversation

@sammshen
Copy link
Copy Markdown
Contributor

No description provided.

…rrors

Git stores file permissions at add-time. If a contributor forgets
chmod +x before staging a new .sh file, CI gets "Permission denied".
Adding chmod +x in each run.sh entrypoint as a runtime safeguard.
@sammshen sammshen requested review from Oasis-Git and deng451e March 26, 2026 23:19
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 adds a command to ensure scripts are executable across several test entrypoint files. The reviewer identified that this logic is duplicated across multiple scripts and recommended centralizing it within a shared setup script to improve maintainability and modularity.

uv pip install yq jq openai pandas matplotlib 2>/dev/null || true

# ── Ensure all scripts are executable ────────────────────────
chmod +x "${SCRIPT_DIR}"/scripts/*.sh
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

This chmod command is duplicated across multiple test entrypoint scripts. This code duplication increases maintenance overhead, as any future changes to this logic will need to be applied in several places.

To improve maintainability and follow the Don't Repeat Yourself (DRY) principle, this command should be moved to a shared script. The .buildkite/k3_harness/setup-env.sh script, which is already sourced in all affected files, seems like an appropriate location to centralize this logic.

References
  1. The repository style guide emphasizes modularity and maintainability (line 10). Duplicated code is categorized as an issue that should be fixed to improve modularity (line 61). (link)

uv pip install aiohttp tqdm pandas huggingface_hub

# ── Ensure all scripts are executable ────────────────────────
chmod +x "${SCRIPT_DIR}"/scripts/*.sh
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

This chmod command is duplicated across multiple test entrypoint scripts. This code duplication increases maintenance overhead, as any future changes to this logic will need to be applied in several places.

To improve maintainability and follow the Don't Repeat Yourself (DRY) principle, this command should be moved to a shared script. The .buildkite/k3_harness/setup-env.sh script, which is already sourced in all affected files, seems like an appropriate location to centralize this logic.

References
  1. The repository style guide emphasizes modularity and maintainability (line 10). Duplicated code is categorized as an issue that should be fixed to improve modularity (line 61). (link)

uv pip install aiohttp

# ── Ensure all scripts are executable ────────────────────────
chmod +x "${SCRIPT_DIR}"/scripts/*.sh
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

This chmod command is duplicated across multiple test entrypoint scripts. This code duplication increases maintenance overhead, as any future changes to this logic will need to be applied in several places.

To improve maintainability and follow the Don't Repeat Yourself (DRY) principle, this command should be moved to a shared script. The .buildkite/k3_harness/setup-env.sh script, which is already sourced in all affected files, seems like an appropriate location to centralize this logic.

References
  1. The repository style guide emphasizes modularity and maintainability (line 10). Duplicated code is categorized as an issue that should be fixed to improve modularity (line 61). (link)

uv pip install 'lm-eval[api]' openai pandas matplotlib

# ── Ensure all scripts are executable ────────────────────────
chmod +x "${SCRIPT_DIR}"/scripts/*.sh
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

This chmod command is duplicated across multiple test entrypoint scripts. This code duplication increases maintenance overhead, as any future changes to this logic will need to be applied in several places.

To improve maintainability and follow the Don't Repeat Yourself (DRY) principle, this command should be moved to a shared script. The .buildkite/k3_harness/setup-env.sh script, which is already sourced in all affected files, seems like an appropriate location to centralize this logic.

References
  1. The repository style guide emphasizes modularity and maintainability (line 10). Duplicated code is categorized as an issue that should be fixed to improve modularity (line 61). (link)

@sammshen sammshen enabled auto-merge (squash) March 26, 2026 23:39
@github-actions github-actions Bot added the full Run comprehensive tests on this PR label Mar 26, 2026
Copy link
Copy Markdown
Contributor

@ApostaC ApostaC left a comment

Choose a reason for hiding this comment

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

LGTM!

@sammshen sammshen merged commit bed02af into LMCache:dev Mar 27, 2026
34 checks passed
jooho-XCENA pushed a commit to xcena-dev/LMCache that referenced this pull request Apr 2, 2026
[CI]: chmod +x scripts in k3 test entrypoints to prevent permission errors

Git stores file permissions at add-time. If a contributor forgets
chmod +x before staging a new .sh file, CI gets "Permission denied".
Adding chmod +x in each run.sh entrypoint as a runtime safeguard.

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
[CI]: chmod +x scripts in k3 test entrypoints to prevent permission errors

Git stores file permissions at add-time. If a contributor forgets
chmod +x before staging a new .sh file, CI gets "Permission denied".
Adding chmod +x in each run.sh entrypoint as a runtime safeguard.

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.

4 participants