Skip to content

ci: pin shared SwiftLint downloads - #118

Merged
steipete merged 1 commit into
mainfrom
ci/pin-swift-linters-s24
Nov 14, 2026
Merged

steipete merged 1 commit into
mainfrom
ci/pin-swift-linters-s24

Conversation

@steipete

Copy link
Copy Markdown
Collaborator

Pin SwiftLint 0.65.1 with a checksum-verified upstream archive and share the installer between CI and documented local development. Keep shellcheck/actionlint installed through Homebrew and preserve Apple's swift format from the selected Xcode toolchain; this repository does not use Nick Lockwood's SwiftFormat.

Validation:

  • Last green CI used SwiftLint 0.65.1, which is also today's Homebrew version.
  • SwiftLint passes strict lint across all 77 files with zero violations. The existing swift format lint --recursive Sources Tests command exits successfully; its existing nonfatal formatting warnings remain unchanged.
  • The installer succeeds with a destination containing spaces and rejects corrupted archives before installing binaries. make lint passes with the installed SwiftLint, including shell and workflow lint.
  • Independent Codex review: no actionable P0–P2 findings.

CI is left for the orchestrator to watch at this PR's exact head. No source, formatting-rule, release, or version changes.

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T12:06:16.173743Z f11bc52 PR opened
ℹ️ 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

Pin SwiftLint 0.65.1 through a checksum-verified installer shared by CI and documented local development.

Example: A developer and CI install SwiftLint for this repository.

  • Before: CI installs Homebrew's current SwiftLint version, and local development has no shared installer.
  • After: Both can install SwiftLint 0.65.1 using the same pinned archive and SHA-256 checksum.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused, useful tooling maintenance supported by successful exact-head CI and a matching published archive digest.
Proof confidence 🐚 platinum hermit (4/6) This CI and development-tooling change needs no application-entry-point proof; exact-head workflow metadata confirms successful installation and subsequent lint execution, although raw logs were inaccessible.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Developers and CI can otherwise run different SwiftLint releases and receive inconsistent lint results.
Reason: The maintainer-authored direction provides reproducibility with a focused change and preserves existing checks.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR provides reproducible lint tooling absent from main, with no actionable correctness or security findings.

Priority: P3
Reviewed head: f11bc523c8cb61c5e919aad5156e56de6511ad52

Before merge

None.

Findings

None.

Agent review details

How this fits together

The development tooling downloads SwiftLint, verifies and extracts its executable, and exposes it to existing lint commands; Apple’s swift format remains supplied by Xcode.

flowchart LR
  A[CI workflow] --> C[Shared installer]
  B[Local developer] --> C
  D[SwiftLint release archive] --> C
  C --> E[SHA256 verification]
  E --> F[Installed SwiftLint]
  F --> G[Existing strict lint checks]
Loading

Technical review

Best possible solution:

Land the shared checksum-pinned installer while retaining Xcode formatting and the existing shell/workflow lint checks.

Do we have a high-confidence way to reproduce the issue?

This is tooling maintenance rather than a reported application bug; source inspection confirms main's SwiftLint installation is unpinned.

Is this the best way to solve the issue?

The small shared installer centralizes the version and checksum without duplicating lint configuration or replacing the existing formatter.

AGENTS.md: not found in the target repository.

Codex review notes: model internal, reasoning medium; reviewed against b74c3618c304.

Provenance checked

  • CI linter installation keeps the original intent (ac09a1c: The earlier release-hardening work expanded linting to cover shell scripts and workflows alongside SwiftLint.)
  • Selected Xcode formatter and runner keeps the original intent (f4ef24b: Move normal validation to Xcode 27 while preserving the deployment target and architecture checks.)

Security

None.

Evidence

What I checked:

  • Introduced change and current-main boundary: The pinned diff replaces only Homebrew's SwiftLint installation, adds the shared installer and documentation, and preserves the existing formatting and lint commands; main still installs unpinned SwiftLint through Homebrew. (.github/workflows/ci.yml:37, f11bc523c8cb)
  • Published archive checksum: The upstream 0.65.1 release reports portable_swiftlint.zip with SHA-256 c1e429b0599cf1b516f369a2d9ec04eaf0e436f3c12b637df8851fa52ff694d0, matching the installer; this archive supplies the executable the patch installs.
  • Exact-head workflow validation: CI job https://github.com/openclaw/remindctl/actions/runs/43593092792/job/132441785446 passed on the reviewed head, including installer, SwiftLint, formatting, and shell/workflow lint steps on xcode-27; Swift CodeQL remained in progress. (.github/workflows/ci.yml:36, f11bc523c8cb)
  • Maintainer direction and discussion: The author is a COLLABORATOR and describes retaining Homebrew shellcheck/actionlint and Apple's formatter; the complete body, discussion comments, and review activity contain no unresolved owner objection. (f11bc523c8cb)
  • Feature history: History identifies Peter Steinberger across lint-gate work, the shell/workflow lint expansion in fix: preserve alarms and harden v0.3.3 release #63, tooling pinning in ci: pin tooling and streamline verified builds #86, and the Xcode migration in ci: move macOS validation to Xcode 27 #107; none already supplies this SwiftLint installer. (.github/workflows/ci.yml:37, b74c3618c304)
  • Inspection limits: Some older blobs were unavailable locally, and downloading CI logs was blocked at GitHub's storage redirect; current source, relevant historical diffs, upstream release metadata, and exact-head job-step results remained readable.

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This improves development and CI reproducibility without changing application behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This improves development and CI reproducibility without changing application behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 14, 2026, 7:17 AM ET / 12:17 UTC.

@steipete
steipete merged commit 765715e into main Nov 14, 2026
11 checks passed
@steipete
steipete deleted the ci/pin-swift-linters-s24 branch November 14, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant