Repository navigation
Conversation
|
|
|
|
A skipped Lint Libraries job is no longer created, so it doesn't wait for an agent just to exit. `shared-pipeline-vars` runs the `library-lint` check and exports `SKIP_LIBRARY_LINT` for the step's `skip:`; `lint.sh` is back to its trunk version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The uploader is on toolkit 8.1.0 now, which checks both paths of renames. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AliSoftware
left a comment
There was a problem hiding this comment.
The move to upload-time skips and the new library-lint skip look right to me. My comments are mostly about the kept path rules, which matter more now that skipped required checks report success.
Generated by Claude Code
| PATTERNS=( | ||
| '*.md' '*.po' '*.pot' '*.txt' '.gitignore' 'config/**' | ||
| 'fastlane/**' 'Gemfile' 'Gemfile.lock' 'version.properties' | ||
| ) |
There was a problem hiding this comment.
Two of the kept rules hide real changes
These rules predate this PR, but skips now happen before a job starts and required checks still report success, so a wrong skip becomes invisible:
config/**holdscheckstyle.xml,detekt/detekt.ymland its baseline,lint/lint.xmland its baseline, and Gradle scripts thatsettings.gradleandbuild.gradleload (included_builds.gradle,code_coverage.gradle,gradle_build_scan.gradle). A PR that only changes the detekt or lint config skips detekt or lint and still goes green.*.txtmatches at any depth, so it coverslibs/fluxc-processor/src/main/resources/*-endpoints.txt. Those are annotation processor inputs that generate code, so a PR that adds an endpoint skips builds and unit tests.
I'd drop config/**, and limit the .txt rule to text-only places such as fastlane/*, WordPress/metadata/* and WordPress/jetpack_metadata/* (or at least exclude libs/fluxc-processor/*).
Generated by Claude Code
There was a problem hiding this comment.
Also, since pr_changed_files uses bash for the =~ string matching, ** has no special meaning. so fastlane/** can just be fastlane/* as in bash a * would also match / in a path-like string
| - "**/build/reports/detekt/detekt.html" | ||
|
|
||
| - label: "🌐 Locale Consistency" | ||
| skip: "$SKIP_VALIDATION" |
There was a problem hiding this comment.
Locale Consistency should use $SKIP_LINT, not $SKIP_VALIDATION
The validation rules also skip PRs that only change strings.xml, so the frequent "Update translations" PRs skip check_declared_locales_consistency. That's when it matters most, e.g. when a translations PR adds a new values-xx/ folder. The lint type exists for exactly this case: it doesn't skip translation-only changes.
Generated by Claude Code
| SKIP_BUILD=$(.buildkite/commands/should-skip-job.sh build || true) | ||
| SKIP_VALIDATION=$(.buildkite/commands/should-skip-job.sh validation || true) | ||
| SKIP_LINT=$(.buildkite/commands/should-skip-job.sh lint || true) | ||
| SKIP_LIBRARY_LINT=$(.buildkite/commands/should-skip-job.sh library-lint || true) | ||
| export SKIP_BUILD SKIP_VALIDATION SKIP_LINT SKIP_LIBRARY_LINT |
There was a problem hiding this comment.
nit: upload-claude-analysis.sh also sources this file, so every build runs these four checks once more at the end, each with its own git fetch. That step has no $CI_TOOLKIT plugin, so it logs pr_changed_files: command not found four times. It falls back to running the jobs, so it's harmless but noisy. Running these checks only for the main upload would avoid both.
Generated by Claude Code
There was a problem hiding this comment.
Follow-up: woocommerce-ios (woocommerce/woocommerce-ios#18342) already has a one-line fix for this. Its shared-pipeline-vars only computes the SKIP_* values if command -v pr_changed_files >/dev/null 2>&1, so steps that source the file without the toolkit plugin, like the Claude analysis step here, skip the checks entirely.
Generated by Claude Code


Part of AINFRA-3622
TL;DR
Using "even-if-skipped" setup to skip jobs on unrelated changes without using an agent
Description
Move the existing build, validation and lint skips into pipeline upload, using the upload-time approach from bloom/DayOne-Apple#30814. Unrelated jobs no longer take an agent just to exit early, and skipped required checks still report through the uploader.
App-only changes also skip standalone library lint. Library source, module build files and CI changes keep it enabled. Gradle configuration and FluxC endpoint definitions run the relevant checks. Locale Consistency runs when its Fastlane or Gradle declarations change. Errors and non-PR builds run the jobs.
Testing instructions