Skip to content

Treat upstream fetch failure as drift and refresh sync tooling - #155

Merged
simbo1905 merged 2 commits into
mainfrom
issue-153-tracker-upstream-error-blindspot
Aug 30, 2026
Merged

Treat upstream fetch failure as drift and refresh sync tooling#155
simbo1905 merged 2 commits into
mainfrom
issue-153-tracker-upstream-error-blindspot

Conversation

@simbo1905

Copy link
Copy Markdown
Owner

Closes #153
Closes #154

What

  1. API tracker treats upstream fetch failure as no drift #153 — tracker blindspot fix: ApiTracker.hasDifferences now treats upstream fetch/parse failures as drift (missingUpstream > 0), the fingerprint includes UPSTREAM_ERROR classes (stable + distinct per class set for issue dedup), and the summary renders a "Missing Upstream" section listing each affected class and error. This closes the failure mode that silently blinded the daily tracker Feb–Apr 2026.
  2. Tidy Up: refresh sync tooling for the incubator module layout #154 — sync tooling refresh: RefreshFromUpstream.java and transform_upstream.py retargeted from the retired java.base layout to the src/jdk.incubator.json module (fetch paths, snapshot dir, package mappings, skip-list cleanup). Transform regexes dry-run verified against fetched upstream sources (5/5 mapping checks).

Tests

  • 3 new tracker tests (DriftDetectionGateTests): drift gate, fingerprint stability/distinctness, Missing Upstream rendering
  • Full reactor clean verify: 1679 tests, 0 failures, 0 errors, 0 skipped; ci.yml exp_tests 1676 → 1679

No release: no version bump, no tag.

hasDifferences now returns true when missingUpstream > 0, the
fingerprint includes UPSTREAM_ERROR classes so issue dedup works for
fetch-failure drift, and the summary renders a Missing Upstream section
listing each affected class and error. Previously a dead upstream
fetch path reported all-clear, which is what blinded the daily tracker
after the upstream incubator move (see #145).

Verify: mvnd -pl json-java21-api-tracker -am clean test (14 tracker
tests green, 3 new); full reactor clean verify = 1679 tests 0 skipped;
ci.yml exp_tests 1676 -> 1679.
RefreshFromUpstream.java now fetches the impl package from
src/jdk.incubator.json/.../jdk/incubator/json/impl/, snapshots it under
upstream/jdk.incubator.json.impl and skips the local-only LazyConstant
polyfill. transform_upstream.py maps the upstream incubator packages to
our jdk.incubator.* packages, drops the obsolete StableValue skip and
reminds the operator to re-append the Utils.powExact polyfill.
Transform regexes dry-run verified against fetched upstream sources.

Verify: python3 dry-run of transform() on JsonStringImpl.java (5/5
mapping checks pass); no source-tree changes made by the dry run.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 30, 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-08-30T09:44:47.403072Z 1d31a91 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.

@simbo1905
simbo1905 merged commit 4c05919 into main Aug 30, 2026
7 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1d31a918dd

ℹ️ 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".

SRC = 'updates/2025-09-04/upstream/jdk.internal.util.json'
# Refreshed 2026-08-30 for the upstream jdk.incubator.json module layout (issue #154).
# Scope: impl files fetched into the snapshot dir (see RefreshFromUpstream.java).
# Public API files follow the manual process in json-java21/AGENTS.md.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update the referenced public API sync instructions

When an operator follows this new pointer for the public API half of a sync, json-java21/AGENTS.md still directs them to the retired src/java.base/share/classes paths and the old java.util.json/jdk.internal.util.json packages, so the refreshed implementation tooling cannot lead to a complete upstream sync. Update those agent instructions to the incubator module layout as part of this change.

AGENTS.md reference: AGENTS.md:L23-L29

Useful? React with 👍 / 👎.


@Nested
@DisplayName("Drift Detection Gates")
class DriftDetectionGateTests {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Extend the new test group from a logging helper

This newly added JUnit test container does not extend a logging-configuration helper and instead repeats ad hoc global logging setup inside each method. Put the group under a shared logging-config base so Maven-selected JUL levels remain centralized and consistent with the repository's non-negotiable test harness convention.

AGENTS.md reference: AGENTS.md:L47-L48

Useful? React with 👍 / 👎.

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.

Tidy Up: refresh sync tooling for the incubator module layout API tracker treats upstream fetch failure as no drift

1 participant