Skip to content

build: update the 2.0.0 release prep - #191

Merged
uniqueg merged 2 commits into
devfrom
build/update-2.0.0-prep
Nov 16, 2026
Merged

uniqueg merged 2 commits into
devfrom
build/update-2.0.0-prep

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Summary

Updates the 2.0.0 release prep (#156, #155, merged as 9007fe8) for the new release commit: dev now also has #185 (Spring Boot 4), which goes into 2.0.0. #185 already added its own bullets to docs/releases/2.0.0.md and its items to docs/upgrading.md. This PR:

  • adds this update to the "Release preparation" bullet (#156, #155, #190, #191);
  • says when the deprecated /v2/api-docs alias goes away (the next minor or major release, build: remove the /v2/api-docs alias #188) in the release notes, the upgrade notes, docs/api.md and the Javadoc of ApiDocsAliasController;
  • adds a note on forwarded headers to the upgrade notes. springdoc takes the description's server URL from the request, while Springfox read X-Forwarded-Host itself. Outside Kubernetes, behind a reverse proxy, deployments set SERVER_FORWARD_HEADERS_STRATEGY (finding of the range review).

Unchanged and still correct for Prepare release: pom.xml 2.0.0, CITATION.cff version: "2.0.0" and date-released: "2026-11-16" (planned tag day), service-info.yaml 2.0.0.

Light lane: docs and one Javadoc comment only. The pre-release review of the new release range (9007fe8..dev) is reported below.

Closes #190

Verification

  • ./mvnw clean verify (JDK 21.0.13): BUILD SUCCESS, 18561 unit and 121 integration tests pass, "All coverage checks have been met".
  • ./mvnw spotless:check checkstyle:check on Java 8, as the CI job Lint: passes.
  • mkdocs build --strict: passes.
  • Curated notes checked with publish.py check docs/releases/2.0.0.md of elixir-cloud-aai/.github/actions/publish-release at the pinned SHA (the check that Prepare release runs): no findings.
  • CI on b9c96e8 and on 4b0a6a6 (head): all checks pass. Sourcery approved with no threads (Lint, Test, Docs, Smoke test, Scan image, CI passed, CodeQL, Codecov patch and project).

Pre-release review of 9007fe8..dev

The adversarial and quality reviewers looked at the release range, i.e. #185 only. Everything up to 9007fe8 was reviewed for #155. The adversarial reviewer also ran the built jar under auth, noauth and auth with the Swagger UI on, and sent about 40 probes to each. It found no release blocker:

  • Security: without a token, only the API description (/v3/api-docs, .yaml, the /v2/api-docs alias), the Swagger UI's static files when it is on, / and service info are reachable. A trailing slash is checked before it is stripped: /service-info/ and /v2/api-docs/ need a token. Tokens in the URL, Basic auth and empty Bearer tokens get 401. Path tricks (//, ;, %2e%2e) are rejected.
  • Swagger UI: it is off by default (404), and the old Springfox paths get 401 under auth, as the upgrade notes say.
  • JSON: stays the same with Jackson 3 and the Jackson 2 defaults.
  • TRS lookups: they keep their 10 s timeouts.
  • TESK chart: its probes and environment variables are unaffected.
  • Docs: they match the observed behaviour.

Fixed here:

The dead property server.use-forward-headers=true itself (a no-op since Spring Boot 2.2) is left for a follow-up issue (drafted). It is a configuration change that isn't needed for 2.0.0.

The image scan with the now empty .trivyignore.yaml passes in CI (Scan image).

Code scanning

Open alerts (2026-11-16): category image on the dev head f8eed81 has 25 medium findings and 1 note, and no critical or high ones. The release image scan (fixable critical and high only) would therefore pass. The 426 alerts in category release-image (commit d432100) come from the weekly scan of the old latest image (1.1, Alpine, OpenJDK 8). They don't affect the release build.

Declined review findings

  • (quality, medium) "TrailingSlashConfiguration has no behavioural test": it has two. AuthIT.serviceInfo_withTrailingSlash_needsToken expects 401 for /service-info/ with service info public. NoAuthIT.trailingSlash_isIgnored covers the noauth profile. The adversarial probes confirmed both against the running jar.
  • (quality, low) A Maintenance bullet for the CI smoke checks of the new paths: they are part of build: move to Spring Boot 4 #185's change and are covered by its bullets.
  • (quality, low) An IT for 401 on /swagger-resources under auth: the adversarial run confirmed the behaviour, and the paths are gone in any case.
  • (quality, low) Pinning the hand-edited generator output (requiredMode, WRITE_ONLY, schema names) by a test: NoAuthIT already checks writeOnly of docker_login/docker_pass. Anything more belongs with a regeneration, not the release.
  • (quality, low) JUnit 4 / SpringRunner deprecations: tracked in test: move the tests to JUnit 5 #167.

Open questions

None.

🤖 Generated with Claude Code

The release commit moves to the head of dev, which now includes the
move to Spring Boot 4 (#185). Its own changes to the release and upgrade
notes stay; this adds the update to the "Release preparation" bullet
and says when the deprecated /v2/api-docs alias goes away: in the next
minor or major release (#188), in the notes, the upgrade notes, the API
docs and the alias controller's Javadoc.

The version (2.0.0) and date-released (2026-11-16) in CITATION.cff, the
pom.xml version and service-info.yaml are unchanged.

Closes #190

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uniqueg uniqueg added this to the v2.0.0 milestone Nov 16, 2026
@uniqueg uniqueg added priority: high High priority type: delivery Related to packaging, deployment etc. workload: hours Likely takes hours to resolve labels Nov 16, 2026
@uniqueg uniqueg self-assigned this Nov 16, 2026
@sourcery-ai

sourcery-ai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

API

Document in the alias controller’s Javadoc that /v2/api-docs is deprecated and will be removed in the next minor or major release.

  • src/main/java/uk/ac/ebi/tsc/tesk/config/swagger/ApiDocsAliasController.java L10-11

Documentation

Update API and upgrade documentation to state when the deprecated /v2/api-docs alias will be removed and explain forwarded-header handling for the API description URL.

  • docs/api.md L19-22
  • docs/upgrading.md L32-43

Update the 2.0.0 release notes with the alias removal timeline and the latest release-preparation references.

  • docs/releases/2.0.0.md L12, L49

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (f8eed81) to head (4b0a6a6).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #191   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           53        53           
  Lines         2260      2260           
  Branches       255       255           
=========================================
  Hits          2260      2260           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

springdoc takes the server URL of the API description from the
request. Springfox read X-Forwarded-Host itself; now only Spring Boot's
forwarded-headers support does, which Spring Boot turns on by itself in
Kubernetes only. Tell deployments behind a reverse proxy elsewhere to
set SERVER_FORWARD_HEADERS_STRATEGY. Found in the pre-release review of
9007fe8..dev.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uniqueg
uniqueg marked this pull request as ready for review November 16, 2026 00:45

@sourcery-ai sourcery-ai 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.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@uniqueg
uniqueg merged commit 4949fd8 into dev Nov 16, 2026
52 checks passed
@uniqueg
uniqueg deleted the build/update-2.0.0-prep branch November 16, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: high High priority type: delivery Related to packaging, deployment etc. workload: hours Likely takes hours to resolve

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build: update the 2.0.0 release prep

1 participant