Repository navigation
Add jobs.m4 file - #7270
Add jobs.m4 file#7270
jobs.m4 file#7270Conversation
📝 WalkthroughWalkthroughMoves Azure canary job definitions into Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Dev as Developer
participant Repo as Git Repo
participant M4 as M4 Template Engine
participant CI as CircleCI
participant Jobs as Generated Jobs
Dev->>Repo: Push/PR with M4 templates
Repo->>M4: Expand .circleci/config.yml.m4 + .circleci/defs.m4 (includes ../.azure/jobs.m4)
M4-->>CI: Emit `.circleci/config.yml` (job matrix + workflows)
CI->>CI: Run canary_jobs gate
CI->>Jobs: Execute generated multi-JDK jobs (junit/misc/nonjunit/inference/typecheck/daikon/guava/plume_lib)
Jobs-->>CI: Report results
sequenceDiagram
autonumber
participant AzureM4 as .azure/azure-pipelines.yml.m4
participant JobsInc as .azure/jobs.m4
AzureM4->>JobsInc: include([jobs.m4])dnl
JobsInc-->>AzureM4: Emit canary job invocations (junit/misc/nonjunit/etc.)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
Comment |
There was a problem hiding this comment.
Actionable comments posted: 14
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.circleci/config.yml (1)
365-676: Fix malformed CircleCI workflows in .circleci/config.yml — YAML parse error, inverted gating, and undefined jobs
- yamllint reports a syntax error at line 403 plus widespread indentation/line-length failures; the workflows block fails to parse.
- The workflows block is malformed (stray tokens like
-jdk17:,-jdk25, inlined job definitions under workflows).- Gating is inverted: canary-jobs currently
requiresother jobs — invert so other jobsrequire: [canary-jobs].- References to undefined jobs must be resolved: quick-txt-diff-jdk25, nonquick-txt-diff-jdk25, non-txt-diff-jdk25, misc-jdk25, kvasir-jdk25, typecheck-bundled-jdk25 (and similar).
- Action: replace the workflows section with a valid structure (workflows: version: 2 -> build: -> jobs:), make canary-jobs run first and have all dependent jobs use
requires: [canary-jobs], chain split jobs viarequires(e.g., inference_part1 -> inference_part2). Validate with yamllint andcircleci config validate -c .circleci/config.yml.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (6)
.azure/azure-pipelines.yml.m4(1 hunks).azure/jobs.m4(1 hunks).circleci/Makefile(1 hunks).circleci/config.yml(1 hunks).circleci/config.yml.m4(1 hunks).circleci/defs.m4(1 hunks)
🧰 Additional context used
🪛 checkmake (0.2.2)
.circleci/Makefile
[warning] 1-1: Missing required phony target "all"
(minphony)
[warning] 1-1: Missing required phony target "clean"
(minphony)
[warning] 1-1: Missing required phony target "test"
(minphony)
🪛 CircleCI (0.1.32638)
.circleci/config.yml
[error] 3-3: Unable to parse YAML (while parsing a block mapping : version:)
🪛 YAMLlint (1.37.1)
.circleci/config.yml
[error] 2-2: too many blank lines (2 > 0)
(empty-lines)
[warning] 123-123: comment not indented like content
(comments-indentation)
[warning] 170-170: comment not indented like content
(comments-indentation)
[warning] 320-320: comment not indented like content
(comments-indentation)
[error] 379-379: too many spaces after hyphen
(hyphens)
[error] 402-402: too many spaces after hyphen
(hyphens)
[error] 403-403: syntax error: expected , but found ''
(syntax)
[error] 675-675: too many blank lines (1 > 0)
(empty-lines)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
- GitHub Check: typetools.checker-framework (typecheck_part2_jdk25)
- GitHub Check: typetools.checker-framework (typecheck_part1_jdk25)
- GitHub Check: typetools.checker-framework (misc_jdk25)
- GitHub Check: typetools.checker-framework (nonjunit_jdk25)
- GitHub Check: typetools.checker-framework (inference_part2_jdk25)
- GitHub Check: typetools.checker-framework (junit_jdk25)
- GitHub Check: typetools.checker-framework (inference_part1_jdk25)
🔇 Additional comments (4)
.circleci/defs.m4 (1)
111-120: Verify macro precedence and Docker image selection logicThis
typecheck_jobmacro has conditional logic that skips generation when$1equalscanary_version, and uses a different Docker image (cf-ubuntu-jdk$1-plus[]docker_testing:latest) than other macros. This creates inconsistency with the duplicate definition above.Please clarify the intended behavior:
- Should there be both split and non-split versions of typecheck jobs?
- Which Docker image strategy is correct for typecheck jobs?
- Why does this macro skip generation for canary_version when it's invoked with that value in jobs.m4?
.circleci/Makefile (1)
4-5: Consider adding dependency tracking for included M4 filesThe pattern rule correctly depends on local and parent M4 files. Consider whether the generated files should also be marked as .INTERMEDIATE or .PRECIOUS to control their lifecycle.
The dependency chain is well-structured, ensuring regeneration when any of the M4 source files change.
.azure/jobs.m4 (1)
1-28: Well-documented job configuration with clear version matrixThe job definitions are well-organized with a clear matrix of JDK versions (11, 17, 21, 25) and appropriate use of
canary_versionfor newer test suites. The comments explaining timeout and fetchDepth requirements are particularly helpful..azure/azure-pipelines.yml.m4 (1)
40-40: Clean centralization of job definitionsExcellent refactoring to extract job definitions to a separate file. This improves maintainability and enables reuse across different CI systems.
| ## I'm not sure why the guava_jdk11 job is failing (it's due to Error Prone). | ||
| guava_job(canary_version) |
There was a problem hiding this comment.
🧹 Nitpick
Track the Error Prone issue with guava_jdk11
The comment indicates a known issue with guava_jdk11 failing due to Error Prone. Consider creating a tracking issue if one doesn't exist.
Would you like me to help create a GitHub issue to track the investigation and resolution of the guava_jdk11 Error Prone failure?
🤖 Prompt for AI Agents
In .azure/jobs.m4 around lines 24-25, add a tracking GitHub issue for the known
guava_jdk11 Error Prone failure and reference it from the CI config: create a
new issue in the repo titled "Investigate Error Prone failure for guava_jdk11",
include the failing job name, Error Prone error message and a minimal
reproduction (job invocation / logs), mark it with labels like bug/ci and
priority/medium, assign or request triage, then add the created issue number as
a comment or TODO near the guava_job(canary_version) line (e.g., “// TODO: see
issue #NNN”) so the CI config documents the tracking issue and future changes
can reference it.
|
|
||
|
|
||
| version: 2.1 | ||
|
|
||
| jobs: |
There was a problem hiding this comment.
Fix YAML header: leading blank lines break parsing.
CircleCI fails to parse because of blank lines before version: 2.1. Remove them so version is the first line.
-
-
version: 2.1📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| version: 2.1 | |
| jobs: | |
| version: 2.1 | |
| jobs: |
🧰 Tools
🪛 CircleCI (0.1.32638)
[error] 3-3: Unable to parse YAML (while parsing a block mapping : version:)
🪛 YAMLlint (1.37.1)
[error] 2-2: too many blank lines (2 > 0)
(empty-lines)
🤖 Prompt for AI Agents
.circleci/config.yml around lines 1 to 5: the file contains leading blank lines
before the YAML header which breaks CircleCI parsing; remove any blank lines so
the first line begins with "version: 2.1" (no preceding whitespace), save the
file, and re-run the pipeline (optionally validate with a YAML linter to confirm
proper parsing).
| - image: 'mdernst/checkerframework-ubuntu-jdk11' | ||
| resource_class: large | ||
| environment: | ||
| CIRCLE_COMPARE_URL: << pipeline.project.git_url >>/compare/<< pipeline.git.base_revision >>..<<pipeline.git.revision>> |
There was a problem hiding this comment.
🧹 Nitpick
Pin Docker images to digests for supply-chain integrity.
Custom images use floating tags (latest, unpinned minors). Pin to immutable digests to prevent surprise changes.
If you can share the registries/digests, I can produce a patch.
Also applies to: 39-43, 60-64, 81-85, 101-107, 128-134, 148-154, 171-177, 192-198, 213-219, 234-240, 256-262, 279-284, 299-304, 321-327, 344-349
🤖 Prompt for AI Agents
In .circleci/config.yml around lines 18-21 the job uses a floating image
reference (mdernst/checkerframework-ubuntu-jdk11) which must be pinned to an
immutable digest; replace the image: value with the corresponding
registry@sha256:<digest> form for that image to ensure supply-chain integrity,
and do the same for the other occurrences listed (lines 39-43, 60-64, 81-85,
101-107, 128-134, 148-154, 171-177, 192-198, 213-219, 234-240, 256-262, 279-284,
299-304, 321-327, 344-349), obtaining digests by pulling the image or querying
the registry (docker pull + docker inspect --format='{{index .RepoDigests 0}}'
or registry API) and replacing the tag with the returned @sha256 digest string
in each image: entry.
| - restore_cache: | ||
| keys: | ||
| - &source-cache source-v1-{{ .Branch }}-{{ .Revision }} | ||
| - 'source-v1-{{ .Branch }}-' | ||
| - source-v1- | ||
| - checkout | ||
| - save_cache: | ||
| key: *source-cache | ||
| paths: | ||
| - .git | ||
| - run: |
There was a problem hiding this comment.
🧹 Nitpick
Optional: cache Gradle to speed builds.
Only .git is cached. Consider caching ~/.gradle/caches keyed by gradle-wrapper.properties and build.gradle*.
- restore_cache:
keys:
- &source-cache source-v1-{{ .Branch }}-{{ .Revision }}
- 'source-v1-{{ .Branch }}-'
- source-v1-
+ - restore_cache:
+ keys:
+ - gradle-v1-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "build.gradle" }}
+ - gradle-v1-
@@
- save_cache:
key: *source-cache
paths:
- .git
+ - save_cache:
+ key: gradle-v1-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "build.gradle" }}
+ paths:
+ - ~/.gradle/cachesAlso applies to: 44-54, 65-75, 86-96, 108-118, 135-145, 155-165, 178-188, 199-209, 220-230, 241-251, 263-273, 285-295, 305-315, 328-338, 350-360
🤖 Prompt for AI Agents
In .circleci/config.yml around lines 23 to 33 (and similarly for the other
ranges listed), the job only caches .git; add caching of the Gradle cache
directory to speed builds by restoring and saving ~/.gradle/caches (and
optionally ~/.gradle/wrapper) using a cache key that includes
gradle-wrapper.properties and build.gradle* (e.g., include file hashes or
branch+revision plus gradle-wrapper.properties/build.gradle* fingerprint),
update the restore_cache and save_cache steps to include these paths and keys,
and ensure the cache key changes when gradle files change so the cache is
invalidated appropriately.
| all default: config.yml | ||
| # TODO: all default: config.yml config-daily.yml | ||
|
|
||
| %: %.m4 defs.m4 ../.azure/jobs.m4 | ||
| m4 $< > $@ | ||
|
|
||
| validate: config.yml | ||
| cd .. && circleci config validate | ||
|
|
||
| clean: | ||
| rm -f config.yml |
There was a problem hiding this comment.
🧹 Nitpick
Add .PHONY targets for better Make hygiene
The Makefile should declare phony targets to prevent conflicts with files of the same name and to follow standard Makefile conventions.
Add this at the beginning of the Makefile:
+.PHONY: all default validate clean
+
all default: config.yml📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| all default: config.yml | |
| # TODO: all default: config.yml config-daily.yml | |
| %: %.m4 defs.m4 ../.azure/jobs.m4 | |
| m4 $< > $@ | |
| validate: config.yml | |
| cd .. && circleci config validate | |
| clean: | |
| rm -f config.yml | |
| .PHONY: all default validate clean | |
| all default: config.yml | |
| # TODO: all default: config.yml config-daily.yml | |
| %: %.m4 defs.m4 ../.azure/jobs.m4 | |
| m4 $< > $@ | |
| validate: config.yml | |
| cd .. && circleci config validate | |
| clean: | |
| rm -f config.yml |
🧰 Tools
🪛 checkmake (0.2.2)
[warning] 1-1: Missing required phony target "all"
(minphony)
[warning] 1-1: Missing required phony target "clean"
(minphony)
[warning] 1-1: Missing required phony target "test"
(minphony)
🤖 Prompt for AI Agents
In .circleci/Makefile around lines 1 to 11, add a .PHONY declaration at the top
listing the non-file targets (e.g. all default validate clean) to avoid
conflicts with same-named files and follow Makefile conventions; insert a line
like “.PHONY: all default validate clean” (or include any other phony targets
you use) before the existing rules.
There was a problem hiding this comment.
Actionable comments posted: 8
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (12)
.azure/azure-pipelines.yml (4)
33-34: Duplicate dependency entry for misc_jdk25
misc_jdk25appears twice in canary_jobs.dependsOn. Remove one.Apply this diff:
- misc_jdk25 - - misc_jdk25
189-192: Missing JDK version export in typecheck_part2Part2 omits
ORG_GRADLE_PROJECT_jdkTestVersion=25; part1 sets it. Align to avoid inconsistent gradle behavior.Apply this diff:
- - bash: ./checker/bin-devel/test-typecheck-part2.sh + - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=25 && ./checker/bin-devel/test-typecheck-part2.sh
204-206: Display name mismatch for daikon_part1Command runs
test-daikon-part1.shbut display name saystest-daikon.sh.Apply this diff:
- - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=25 && ./checker/bin-devel/test-daikon-part1.sh - displayName: test-daikon.sh + - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=25 && ./checker/bin-devel/test-daikon-part1.sh + displayName: test-daikon-part1.sh
216-217: Wrong script invoked for daikon_part2Display name says part2 but command runs the unsplit script.
Apply this diff:
- - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=25 && ./checker/bin-devel/test-daikon.sh + - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=25 && ./checker/bin-devel/test-daikon-part2.sh.azure/azure-pipelines-daily.yml (4)
215-216: Missing JDK version export in typecheck_part2Align with part1 to avoid environment drift.
- - bash: ./checker/bin-devel/test-typecheck-part2.sh + - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=25 && ./checker/bin-devel/test-typecheck-part2.sh
268-270: Display name mismatch for daikon_part1Name should reflect
test-daikon-part1.sh.- - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=25 && ./checker/bin-devel/test-daikon-part1.sh - displayName: test-daikon.sh + - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=25 && ./checker/bin-devel/test-daikon-part1.sh + displayName: test-daikon-part1.sh
280-281: Wrong script invoked for daikon_part2Run
test-daikon-part2.sh.- - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=25 && ./checker/bin-devel/test-daikon.sh + - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=25 && ./checker/bin-devel/test-daikon-part2.sh
339-343: Stale comment about guava_jdk11The 11 job isn’t present here; update or remove this note to avoid confusion.
.azure/defs-common.m4 (1)
1-11: LGTM: centralized canary and docker_testing knobsConsolidation looks good. canary_test is defined but never referenced — .azure/defs-common.m4:7 (define([canary_test], [canary_os[]canary_version])dnl); remove it or wire it up to avoid drift.
.azure/defs.m4 (3)
60-76: Syntax bug: extra closing bracket “])dnl” after inference_job define.There’s an unmatched “])dnl” that will confuse m4/output.
Apply:
define([inference_job], [dnl ifelse($1,canary_version,,[- job: inference_jdk$1 @@ - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=$1 && ./checker/bin-devel/test-cftests-inference.sh displayName: test-cftests-inference.sh ])dnl -])dnl
136-152: Daikon part job name/command mismatch (swap names to match scripts).Part1 runs part1 script but is named “test-daikon.sh”; part2 runs full script but is named part2. Swap display names/commands.
Apply:
- job: daikon_part1_jdk$1 @@ - - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=$1 && ./checker/bin-devel/test-daikon-part1.sh - displayName: test-daikon.sh + - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=$1 && ./checker/bin-devel/test-daikon-part1.sh + displayName: test-daikon-part1.sh @@ - job: daikon_part2_jdk$1 @@ - - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=$1 && ./checker/bin-devel/test-daikon.sh - displayName: test-daikon-part2.sh + - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=$1 && ./checker/bin-devel/test-daikon-part2.sh + displayName: test-daikon-part2.sh
13-19: Pin container images (avoid floating tags).Use immutable digests to prevent supply-chain drift (e.g., :latest).
If you can share registries, I can generate a digest pin patch.
Also applies to: 29-34, 41-47, 51-57, 86-91, 97-104, 106-111, 134-141, 146-152, 162-168, 179-185, 196-201
♻️ Duplicate comments (9)
.circleci/defs.m4 (3)
111-111: M4 concatenation with []docker_testing is intentionalThe
[]disambiguates thedocker_testingmacro during token pasting; do not replace with a literal hyphen.Also applies to: 121-121, 128-128, 138-138, 148-148, 158-158
119-133: Daikon split: part2 runs wrong script
daikon_part2_jdk$1invokestest-daikon.shinstead oftest-daikon-part2.sh.Apply this diff:
daikon_part2_jdk$1: docker: - image: 'mdernst/cf-ubuntu-jdk$1[]docker_testing:latest' circleci_boilerplate - run: name: test-daikon-part2.sh - command: export ORG_GRADLE_PROJECT_jdkTestVersion=$1 && ./checker/bin-devel/test-daikon.sh + command: export ORG_GRADLE_PROJECT_jdkTestVersion=$1 && ./checker/bin-devel/test-daikon-part2.sh
97-116: Remove duplicate typecheck_job; keep the gated canary-aware definitionSecond definition overrides the first; the first (.circleci/defs.m4 lines 97–105) references ./checker/bin-devel/test-cftests-typecheck.sh which is missing. Apply this diff to drop the first definition and keep the gated one:
-define([typecheck_job], [dnl - typecheck_jdk$1: - docker: - - image: 'mdernst/checkerframework-ubuntu-jdk$1' -circleci_boilerplate - - run: - name: test-cftests-typecheck.sh - command: export ORG_GRADLE_PROJECT_jdkTestVersion=$1 && ./checker/bin-devel/test-cftests-typecheck.sh -])dnl.circleci/config.yml.m4 (1)
37-55: Correct macro usage for job_dependences — looks right now.Using base names (junit, misc, etc.) matches expected macro signatures.
.circleci/config.yml (5)
1-5: Fix leading blank lines; CircleCI fails to parse.version: must be the first line.
Apply:
- - - - version: 2.1Also fix at source (.circleci/config.yml.m4) by adding dnl to changequote lines.
319-341: Daikon part name/command mismatch.Align step names with scripts; part1 should be named part1 and part2 should run the part2 script.
Apply:
- name: test-daikon.sh + name: test-daikon-part1.sh @@ - command: export ORG_GRADLE_PROJECT_jdkTestVersion=25 && ./checker/bin-devel/test-daikon.sh + command: export ORG_GRADLE_PROJECT_jdkTestVersion=25 && ./checker/bin-devel/test-daikon-part2.sh
172-172: Comment says “Unlimited fetchDepth (0)” but checkout is shallow by default.Explicitly unshallow to ensure contributors.tex generation has full history.
Apply:
- checkout + - run: + name: Ensure full git history for contributors.tex + command: git fetch --unshallow || trueReplicate in all misc_jdk* jobs.
20-21: Pin Docker images to digests.Floating tags lead to non-reproducible builds.
Also applies to: 41-42, 62-64, 83-85, 105-106, 132-134, 152-154, 175-177, 196-198, 217-219, 238-240, 261-263, 281-283, 303-305, 346-348, 368-370
25-35: Optional: cache Gradle to speed builds.Restore/save ~/.gradle/caches with keys based on gradle-wrapper.properties and build files.
Also applies to: 47-55, 68-76, 89-97, 111-119, 138-146, 159-167, 181-189, 202-210, 224-232, 245-253, 267-275, 288-296, 310-317, 353-360, 375-383
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (9)
.azure/azure-pipelines-daily.yml(1 hunks).azure/azure-pipelines-daily.yml.m4(1 hunks).azure/azure-pipelines.yml(1 hunks).azure/azure-pipelines.yml.m4(2 hunks).azure/defs-common.m4(1 hunks).azure/defs.m4(1 hunks).circleci/config.yml(1 hunks).circleci/config.yml.m4(1 hunks).circleci/defs.m4(1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.azure/azure-pipelines-daily.yml
[error] 5-5: too many blank lines (4 > 2)
(empty-lines)
.azure/azure-pipelines.yml
[error] 5-5: too many blank lines (4 > 2)
(empty-lines)
.circleci/config.yml
[error] 4-4: too many blank lines (4 > 0)
(empty-lines)
[warning] 125-125: comment not indented like content
(comments-indentation)
[warning] 172-172: comment not indented like content
(comments-indentation)
[warning] 258-258: comment not indented like content
(comments-indentation)
[warning] 343-343: comment not indented like content
(comments-indentation)
[error] 447-447: too many blank lines (1 > 0)
(empty-lines)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
- GitHub Check: typetools.checker-framework (misc_jdk25)
- GitHub Check: typetools.checker-framework (typecheck_part2_jdk25)
- GitHub Check: typetools.checker-framework (typecheck_part1_jdk25)
- GitHub Check: typetools.checker-framework (inference_part2_jdk25)
- GitHub Check: typetools.checker-framework (inference_part1_jdk25)
- GitHub Check: typetools.checker-framework (junit_jdk25)
- GitHub Check: typetools.checker-framework (nonjunit_jdk25)
🔇 Additional comments (5)
.azure/azure-pipelines-daily.yml.m4 (1)
4-4: LGTM: include defs-common before defsCorrect include order; ensures canary macros (e.g., canary_version, docker_testing) are defined.
Please confirm
.circleci/config.yml.m4likewise includesdefs-common.m4before usingdocker_testing..circleci/defs.m4 (1)
165-175: Validate job_dependences colon trick after renderingSandbox couldn't render the config (error: "make: command not found"). Manually render .circleci/config.yml and confirm the generated YAML keeps the colon on the same line as the job key and that CircleCI validation passes.
Location: .circleci/defs.m4 (lines 165–175)
Run locally:
make -C .circleci
rg -nA4 -e 'workflows:|requires:' .circleci/config.yml
circleci config validate -c .circleci/config.yml.azure/azure-pipelines.yml.m4 (2)
41-41: Externalizing job invocations is a win; verify path and idempotent inclusion.The include([jobs.m4]) centralizes canary job invocations. Ensure .azure/jobs.m4 contains only invocations (no top-level YAML keys) so the insertion point remains valid.
4-5: Load order confirmed — defs-common.m4 provides canary_version.Including defs-common.m4 before defs.m4 is correct: .azure/defs-common.m4 contains define([canary_version], [25]) and latest_version plus junit_job entries; no changes needed.
.azure/defs.m4 (1)
94-111: Inconsistent env for typecheck part2.Part1 exports ORG_GRADLE_PROJECT_jdkTestVersion, part2 does not. If scripts rely on it, part2 may use the wrong JDK.
Apply:
- job: typecheck_part2_jdk$1 @@ - - bash: ./checker/bin-devel/test-typecheck-part2.sh + - bash: export ORG_GRADLE_PROJECT_jdkTestVersion=$1 && ./checker/bin-devel/test-typecheck-part2.sh displayName: test-typecheck-part2.sh
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.azure/azure-pipelines.yml (1)
33-34: Remove duplicate dependency entry
misc_jdk25is listed twice under canary_jobs.dependsOn.Apply:
- typecheck_part2_jdk25 - misc_jdk25 - - misc_jdk25
♻️ Duplicate comments (3)
.azure/azure-pipelines.yml (1)
4-5: Fix YAML lint: remove extra blank linesYamllint flags 4 consecutive blank lines near the top. Keep ≤2.
Apply:
- -.azure/azure-pipelines-daily.yml (1)
4-5: Fix YAML lint: remove extra blank linesSame empty-lines warning as the main Azure YAML. Trim to ≤2 consecutive blanks.
Apply:
- -.azure/defs.m4 (1)
3-3: Stray ifelse emits text; convert to an m4 commentThis outputs literal text into generated YAML; use
dnlinstead.Apply:
-ifelse([The built-in "dnl" m4 macro means "discard to next line",])dnl +dnl The built-in "dnl" m4 macro means "discard to next line".
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (3)
.azure/azure-pipelines-daily.yml(4 hunks).azure/azure-pipelines.yml(4 hunks).azure/defs.m4(4 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.azure/azure-pipelines.yml
[error] 5-5: too many blank lines (4 > 2)
(empty-lines)
.azure/azure-pipelines-daily.yml
[error] 5-5: too many blank lines (4 > 2)
(empty-lines)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
- GitHub Check: typetools.checker-framework (misc_jdk25)
- GitHub Check: typetools.checker-framework (typecheck_part2_jdk25)
- GitHub Check: typetools.checker-framework (typecheck_part1_jdk25)
- GitHub Check: typetools.checker-framework (junit_jdk25)
- GitHub Check: typetools.checker-framework (inference_part2_jdk25)
- GitHub Check: typetools.checker-framework (inference_part1_jdk25)
- GitHub Check: typetools.checker-framework (nonjunit_jdk25)
🔇 Additional comments (9)
.azure/azure-pipelines.yml (3)
191-191: LGTM: pass JDK version explicitly for typecheck part2Using
export ORG_GRADLE_PROJECT_jdkTestVersion=25 && ...is consistent with other jobs.
205-205: LGTM: displayName matches split scriptDisplay name updated to
test-daikon-part1.sh.
216-216: LGTM: invoke split Daikon part2 script with JDK envCommand aligns with naming and env conventions.
.azure/azure-pipelines-daily.yml (3)
215-215: LGTM: pass JDK version explicitly for daily typecheck part2Matches part1 and other jobs’ convention.
269-269: LGTM: Daikon part1 daily job name/display align with scriptDisplay name now reflects
test-daikon-part1.sh.
280-280: LGTM: Daikon part2 daily command uses split script with JDK envConsistent with part1 and other jobs.
.azure/defs.m4 (3)
110-110: LGTM: ensure JDK env is set for typecheck part2 macroKeeps split jobs consistent.
140-140: LGTM: Daikon part1 macro displayName matches scriptGood alignment with
test-daikon-part1.sh.
151-151: LGTM: Daikon part2 macro calls split script with JDK envConsistent with part1 and daily configs.
Summary by CodeRabbit