Repository navigation
chore!: modernize for 3.0.0 (.NET 10/11, Amazon.CDK.Lib 2.278.0, Compono tests, devops-templates v11.2) - #113
Merged
Merged
Conversation
LambdaFunctionConstruct passed FunctionUrlProps to Alias.AddFunctionUrl and StaticSiteConstruct passed BehaviorOptions to Distribution.AddBehavior. The jsii runtime in Amazon.CDK.Lib 2.278.0 validates required struct members on conversion, so both now throw (missing 'function' / 'origin'). Use FunctionUrlOptions and AddBehaviorOptions, the declared parameter types. Synthesized templates are unchanged (golden templates byte-identical). Refs #109 (cdkc-2lh.2.1) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- TargetFrameworks net8.0;net9.0;net10.0;net11.0 -> net10.0;net11.0 - global.json pins SDK 11.0.100 (latestFeature, no prerelease); MTP runner kept - Amazon.CDK.Lib 2.274.0 -> 2.278.0, Microsoft.SourceLink.GitHub 10.0.402 -> 11.0.100, xunit.v3.mtp-v2 3.2.2 -> 4.0.3, Microsoft.NET.Test.Sdk 18.11.0 -> 18.12.0, xunit.runner.visualstudio 3.1.5 -> 4.0.1; Compono/Compono.XunitV3 1.4.0 added centrally for the test migration - VersionPrefix 2.4.0 -> 3.0.0 (local builds; CI versions come from Release Drafter) - Amazon.CDK.Lib 2.278.0 adds same-named Web Function types to Amazon.CDK.AWS.Lambda; file-local using aliases keep this library's public types unambiguous. Public API unchanged. BREAKING CHANGE: .NET 8 and .NET 9 targets are removed; the Amazon.CDK.Lib floor rises to 2.278.0. Refs #109 (cdkc-2lh.2.1) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bump all five devops-templates callers (pr-build, publish-preview, publish-release, release-drafter, pr-title-check) plus both nuget-push uses from v10.8 to v11.2. Adapt pr-build to the v11 inputs: drop the deprecated runCdk and secrets: inherit, replace write-all with contents: read, add globalJsonFile, and target 10.0.x/11.0.x only. Bump docs.yml pins (setup-python v7.1.0, setup-uv v10.4.0) and the dependabot-auto-merge pins (create-github-app-token v3.4.0, fetch-metadata comment v3.1.0), keeping SHA pinning and guards.
Update the framework, SDK and CDK-floor statements in the README, CLAUDE.md and the docs site: target .NET 10 and .NET 11, require Amazon.CDK.Lib 2.278.0 or later, and note the SDK is pinned by global.json (11.0.100, rollForward: latestFeature). Update the `--framework net8.0` test examples to net10.0.
Replace the stale "e.g. net9, net11" / "release/net9" comment examples with net11, matching the edit already applied in publish-preview.yaml.
State that the Web Function constructs are built directly on the CloudFormation L1 resources, and that Amazon.CDK.Lib 2.278.0 also ships its own L2 Web Function constructs (relationship deferred to the 3.0.0 design), replacing the now-false "L1-only" claims in web-function.md and CLAUDE.md. Add a consumer disambiguation note for the type names shared with Amazon.CDK.AWS.Lambda. Restore the unverified F3006 bullet to CDK 2.274.0. Move the pinned-SDK requirement out of the consumer Requirements lists into the README development section.
- docs/designs/v3-modernization.md: framework, SDK and dependency policy, upgrade-induced changes from Amazon.CDK.Lib 2.278.0, Release Drafter preview strategy, Compono test stack, U1-U4/U7 and U6 designs, and the decision record comparing WebFunctionConstruct with the new AWS CDK L2 (synthesis spike evidence; recommendation and proposed follow-up need owner approval) - README and Web Function page: IWebFunctionEndpoint also collides Refs #109 (cdkc-2lh.2.4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s; document the Compono test stack - Directory.Packages.props: drop AutoFixture, AutoFixture.AutoNSubstitute, AutoFixture.Xunit3, NSubstitute (no longer referenced), Microsoft.NET.Test.Sdk and xunit.runner.visualstudio - Test project runs MTP-only (xunit.v3.mtp-v2, global.json test runner), as Jedi Duel already does; dotnet test --solution: 595 passed per TFM - CLAUDE.md: Compono profiles and test-data strategy replace the AutoFixture text Refs #109 (cdkc-2lh.2.5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
@codex review Focus areas:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #109 · epic #108 · Beads
cdkc-2lh.2· supersedes #101Modernizes the repository for 3.0.0 without changing any construct's synthesized output. Golden templates are byte-identical. It also adds the 3.0.0 design document, which is for owner review: approving it is a #109 acceptance item, and it does not authorize #110, #111 or #112.
Breaking changes
Intentional
net10.0;net11.0. Consumers still on .NET 8 or 9 stay on 2.x.Upgrade-induced (
Amazon.CDK.Lib2.274.0 → 2.278.0)Amazon.CDK.AWS.Lambda, and eight of them share names with ours:IWebFunctionEndpoint,IWebFunctionEndpointOptions,WebFunctionCode,WebFunctionRuntime,WebFunctionAuthType,WebFunctionEndpointType,WebFunctionEndpointOptionsandWebFunctionEndpointAttributes.CS0104and needs ausingalias.ab2a58b; no output change:Alias.AddFunctionUrl(FunctionUrlProps)→FunctionUrlOptions;Distribution.AddBehavior(…, BehaviorOptions)→AddBehaviorOptions.Changes
global.jsonpins 11.0.100 (latestFeature, no prerelease) and keeps the MTP runner.Amazon.CDK.Lib2.278.0,Microsoft.SourceLink.GitHub11.0.100,xunit.v3.mtp-v24.0.3;Compono/Compono.XunitV31.4.0 added;AutoFixture,AutoFixture.AutoNSubstitute,AutoFixture.Xunit3,NSubstitute,Microsoft.NET.Test.Sdk,xunit.runner.visualstudio;Microsoft.Testing.Extensions.CodeCoverage18.12.0 andAwesomeAssertions9.6.0 are already current;VersionPrefix3.0.0 (affects local builds only).*AutoDataAttribute/BaseFixtureFactory/customizations are replaced by five composition profiles used through[Compose<TProfile, TConfig>];pr-buildis now credential-free (contents: read, nosecrets: inherit,runCdkremoved,globalJsonFile);setup-pythonv7.1.0 andsetup-uvv10.4.0;create-github-app-tokenv3.4.0 (SHA-pinned; thepull_request_targetactor/repository guard is unchanged).docs/designs/v3-modernization.md..beads/issues.jsonlconvention.Design document: decisions for the owner
docs/designs/v3-modernization.mdcovers the framework and dependency policy, the Release Drafter preview strategy, U1–U4/U7 (#110) and U6 (#111). §9 is the WebFunctionConstruct decision record:prodvs ourdefault) and logical IDs would otherwise replace the endpoint and change its URL.Versioning check (before merge)
publish-preview(v11.2) publishes<Release Drafter resolved>-preview.<run>.type: chore) has merged. This PR carriesbreaking-change, so the major resolver gives 3.0.0 and the first preview after merge is3.0.0-preview.N. The draft v2.6.1 does not drive resolution.Validation
Run locally on the final tree, after
git clean -fdx:dotnet build LayeredCraft.Cdk.Constructs.slnx -c Releasedotnet test --solution LayeredCraft.Cdk.Constructs.slnx -c Release -- --coverageGoldenTemplates/)CdkUpgradeGuard_*(part of the suite, required for any CDK bump)actionlint .github/workflows/*git grep AutoFixture|NSubstitute|net8.0|net9.0over src, test, .github, propsTDD:
Not run: CI itself (it runs on this PR); IDE test discovery without the VSTest adapter (relying on the Jedi Duel MTP-only precedent).
How the work was done
openrouter/deepseek/deepseek-v4.1-flash, OpenCode 1.19.3) worked in isolated worktrees:🤖 Generated with Claude Code