Skip to content

build(shell): add ShellCheck and shfmt checks - #907

Open
kakkoyun wants to merge 1 commit into
mainfrom
ci/shell-quality
Open

kakkoyun wants to merge 1 commit into
mainfrom
ci/shell-quality

Conversation

@kakkoyun

Copy link
Copy Markdown
Member

Why

Standalone shell scripts have no repository-wide lint or formatting checks. Add the same checks for local development and CI.

Changes

  • Add make lint/shell and make format/shell, and include them in make lint and make format.
  • Check tracked .sh and .bats files, excluding downloaded or generated tools.
  • Add PR and merge-queue CI with shfmt v3.13.1.
  • Fix existing license-script findings: quote paths and cleanup expansion, use the computed script directory, and replace exit -1 with its existing Bash status, 255.

Verification

ShellCheck, shfmt, Bash syntax, Makefile/workflow lint, and go build ./... passed. All 14 regression cases from the coverage branch passed against the modified scripts, including temporary paths containing spaces. A failure-injection check confirmed the Makefile target propagates ShellCheck errors.

Independent base: main.

Apply consistent lint and formatting checks to tracked shell scripts and Bats suites, both locally and in CI. Resolve the existing license-script findings so the checks start clean while preserving their failure statuses.
@kakkoyun
kakkoyun requested a review from a team September 18, 2026 08:36
@linear-code
linear-code Bot marked this pull request as ready for review September 18, 2026 08:36
@kakkoyun
kakkoyun marked this pull request as draft September 18, 2026 08:38
@kakkoyun kakkoyun changed the title ci(shell): add ShellCheck and shfmt checks build(shell): add ShellCheck and shfmt checks Sep 18, 2026
@github-actions github-actions Bot added the conventional-commit/chore Maintenance work that does not show up in the release notes label Sep 18, 2026
@kakkoyun
kakkoyun marked this pull request as ready for review September 18, 2026 08:46
@kakkoyun

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-18T08:49:23.712803Z a7b1618 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: a7b161827f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@datadog-prod-us1-6

Copy link
Copy Markdown

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 76.07%

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: a7b1618 | Docs | Give us feedback!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conventional-commit/chore Maintenance work that does not show up in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant