Skip to content

Add jobs.m4 file - #7270

Merged
mernst merged 4 commits into
typetools:masterfrom
mernst:circleci
Sep 19, 2025
Merged

mernst merged 4 commits into
typetools:masterfrom
mernst:circleci

Conversation

@mernst

@mernst mernst commented Sep 18, 2025 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Chores
    • Centralized and templatized CI configuration; added automated CircleCI config generation and validation.
    • Introduced canary gating to control and gate downstream pipeline stages and harmonized pipeline definitions across providers.
  • Tests
    • Expanded the multi‑JDK test matrix (11, 17, 21, 25) with many per‑JDK jobs.
    • Split long‑running suites to reduce timeouts and improve reliability.
    • Added caching to speed test runs and reduce redundant work.

@coderabbitai

coderabbitai Bot commented Sep 18, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Moves Azure canary job definitions into .azure/jobs.m4, adds shared Azure defs in .azure/defs-common.m4, updates Azure M4 macros, and introduces templated CircleCI config generation (.circleci/defs.m4, .circleci/config.yml.m4), a generated .circleci/config.yml, and a Makefile to build/validate CircleCI config.

Changes

Cohort / File(s) Summary
Azure pipeline include extraction
.azure/azure-pipelines.yml.m4
Replaces inline canary job invocations with include([jobs.m4])dnl, delegating job listings to .azure/jobs.m4.
Azure job listings
.azure/jobs.m4
Adds explicit job macro invocations: junit_job(11/17/21/25), nonjunit_job(canary_version), inference_job_split(canary_version), misc_job(11/17/21/25), typecheck_job_split(canary_version), daikon_job_split(canary_version), guava_job(canary_version), plume_lib_job(canary_version) with explanatory comments (timeouts, fetchDepth).
Azure common defs
.azure/defs-common.m4
Adds canary/Docker testing macros: canary_os, canary_version, latest_version, canary_test, and docker_testing (default empty), plus guidance to enable docker-testing.
Azure defs adjustments
.azure/defs.m4
Removes fixed canary_version/latest_version/docker_testing; adds junit_job and nonjunit_job macros which conditionally emit dependsOn based on canary_version; updates daikon/typecheck steps to use part scripts and export JDK env var where applicable.
Azure daily pipeline minor edit
.azure/azure-pipelines-daily.yml
.azure/azure-pipelines-daily.yml.m4
Removes a commented docker_testing define from the rendered file and inserts include([defs-common.m4])dnl into the M4 template.
CircleCI templating macros
.circleci/defs.m4
Adds circleci_boilerplate and many job macros to generate per-JDK CircleCI jobs (junit/nonjunit/inference split, misc, typecheck split, daikon split, guava, plume_lib) and job_dependences macro.
CircleCI template
.circleci/config.yml.m4
Adds M4 template for CircleCI config: defines canary_jobs, includes ../.azure/jobs.m4, wires workflows and per-job JDK env vars, and expresses job dependencies via macros.
Generated CircleCI config
.circleci/config.yml
Adds generated CircleCI v2.1 config: multi-JDK job matrix with cache steps, split long-running jobs, canary gating workflow, and per-job JDK env settings.
CircleCI Makefile
.circleci/Makefile
Adds Makefile to generate config from M4 templates (m4), validate with circleci config validate, and clean generated config (config.yml).

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
Loading
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.)
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

Suggested reviewers

  • smillst

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title "Add jobs.m4 file" correctly identifies a real change in the diff (the new .azure/jobs.m4) but is narrower than the full changeset, which also moves CI job definitions into that file and updates multiple CircleCI and Azure pipeline templates and defs.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

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.

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 requires other jobs — invert so other jobs require: [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 via requires (e.g., inference_part1 -> inference_part2). Validate with yamllint and circleci config validate -c .circleci/config.yml.
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d9ec532 and cf945b4.

📒 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 logic

This typecheck_job macro has conditional logic that skips generation when $1 equals canary_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:

  1. Should there be both split and non-split versions of typecheck jobs?
  2. Which Docker image strategy is correct for typecheck jobs?
  3. 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 files

The 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 matrix

The job definitions are well-organized with a clear matrix of JDK versions (11, 17, 21, 25) and appropriate use of canary_version for 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 definitions

Excellent refactoring to extract job definitions to a separate file. This improves maintainability and enables reuse across different CI systems.

Comment thread .azure/jobs.m4 Resolved
Comment thread .azure/jobs.m4
Comment on lines +24 to +25
## I'm not sure why the guava_jdk11 job is failing (it's due to Error Prone).
guava_job(canary_version)

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.

🧹 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.

Comment thread .circleci/config.yml
Comment on lines +1 to +5


version: 2.1

jobs:

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.

⚠️ Potential issue

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.

Suggested change
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).

Comment thread .circleci/config.yml
Comment on lines +18 to +21
- image: 'mdernst/checkerframework-ubuntu-jdk11'
resource_class: large
environment:
CIRCLE_COMPARE_URL: << pipeline.project.git_url >>/compare/<< pipeline.git.base_revision >>..<<pipeline.git.revision>>

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.

🧹 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.

Comment thread .circleci/config.yml
Comment on lines +23 to +33
- restore_cache:
keys:
- &source-cache source-v1-{{ .Branch }}-{{ .Revision }}
- 'source-v1-{{ .Branch }}-'
- source-v1-
- checkout
- save_cache:
key: *source-cache
paths:
- .git
- run:

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.

🧹 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/caches

Also 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.

Comment thread .circleci/defs.m4 Resolved
Comment thread .circleci/defs.m4 Resolved
Comment thread .circleci/defs.m4 Resolved
Comment thread .circleci/defs.m4 Resolved
Comment thread .circleci/Makefile
Comment on lines +1 to +11
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

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.

🧹 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.

Suggested change
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.

@coderabbitai coderabbitai Bot left a comment

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.

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_jdk25 appears twice in canary_jobs.dependsOn. Remove one.

Apply this diff:

    - misc_jdk25
-   - misc_jdk25

189-192: Missing JDK version export in typecheck_part2

Part2 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_part1

Command runs test-daikon-part1.sh but display name says test-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_part2

Display 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_part2

Align 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_part1

Name 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_part2

Run 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_jdk11

The 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 knobs

Consolidation 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 intentional

The [] disambiguates the docker_testing macro 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$1 invokes test-daikon.sh instead of test-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 definition

Second 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.1

Also 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 || true

Replicate 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

📥 Commits

Reviewing files that changed from the base of the PR and between cf945b4 and 9e7e691.

📒 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 defs

Correct include order; ensures canary macros (e.g., canary_version, docker_testing) are defined.

Please confirm .circleci/config.yml.m4 likewise includes defs-common.m4 before using docker_testing.

.circleci/defs.m4 (1)

165-175: Validate job_dependences colon trick after rendering

Sandbox 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

Comment thread .azure/azure-pipelines-daily.yml Resolved
Comment thread .azure/azure-pipelines.yml Resolved
Comment thread .azure/defs.m4 Resolved
Comment thread .circleci/config.yml Resolved
Comment thread .circleci/config.yml Resolved
Comment thread .circleci/config.yml.m4 Resolved
Comment thread .circleci/config.yml.m4 Resolved
Comment thread .circleci/defs.m4 Resolved

@coderabbitai coderabbitai Bot left a comment

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.

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_jdk25 is 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 lines

Yamllint 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 lines

Same 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 comment

This outputs literal text into generated YAML; use dnl instead.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 9e7e691 and cb5f047.

📒 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 part2

Using export ORG_GRADLE_PROJECT_jdkTestVersion=25 && ... is consistent with other jobs.


205-205: LGTM: displayName matches split script

Display name updated to test-daikon-part1.sh.


216-216: LGTM: invoke split Daikon part2 script with JDK env

Command aligns with naming and env conventions.

.azure/azure-pipelines-daily.yml (3)

215-215: LGTM: pass JDK version explicitly for daily typecheck part2

Matches part1 and other jobs’ convention.


269-269: LGTM: Daikon part1 daily job name/display align with script

Display name now reflects test-daikon-part1.sh.


280-280: LGTM: Daikon part2 daily command uses split script with JDK env

Consistent with part1 and other jobs.

.azure/defs.m4 (3)

110-110: LGTM: ensure JDK env is set for typecheck part2 macro

Keeps split jobs consistent.


140-140: LGTM: Daikon part1 macro displayName matches script

Good alignment with test-daikon-part1.sh.


151-151: LGTM: Daikon part2 macro calls split script with JDK env

Consistent with part1 and daily configs.

Comment thread .azure/azure-pipelines.yml Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant