Skip to content

Commit 7f4c1ce

Browse files
romanettclaude
andauthored
Set up master20 for 2.0 servicing: 2.0.4-preview, CI, release process (#5263)
Sets up `master20` as the development branch for the 2.0 line. The branch was cut from `master` at 8cf3241, the commit that #5260 merges into `release/2.0` for 2.0.3. - **Version**: `2.0.4-preview.{height}`, the next 2.0 patch after 2.0.3. - **CI**: `buildandtest.yml`, `docker-image.yml` and `nuget-publish.yml` treat `master20` as a protected line, like `master378`. Pushes run the full CI, including the macOS test shards, and are never cancelled. Packages are still built unsigned and are not published: the signing environment only allows `master` and `release/*`, so the 2.0 line keeps publishing only from `release/2.0`. - **Release process**: `docs/ReleaseProcess.md` now says that 2.0 fixes land on `master20` by PR, and that a 2.0 patch release merges `master20` (not `master`) into `release/2.0`. - **Gds.Fdo preview-only**: cherry-picked from #5260, so later `master20` → `release/2.0` merges carry no release-only delta for it. The same CI and release-process commits go to `master` in the PR that moves master to `2.1.0-preview`. Admin follow-up (needs repository admin rights): add `refs/heads/master20` to a branch ruleset (deletion, non-fast-forward, pull request, required status checks), like the `1.5.378` ruleset does for `master378`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 8cf3241 commit 7f4c1ce

18 files changed

Lines changed: 101 additions & 57 deletions

File tree

‎.azurepipelines/package-version-policy.ps1‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function Test-PreviewPackageId {
1515
'OPCFoundation.NetStandard.Opc.Ua.Mcp.Positioning',
1616
'OPCFoundation.NetStandard.Opc.Ua.Mcp.WotCon',
1717
'OPCFoundation.NetStandard.Opc.Ua.Mcp.XRegistry',
18+
'OPCFoundation.NetStandard.Opc.Ua.Gds.Fdo',
1819
'OPCFoundation.NetStandard.Opc.Ua.OpenUsd.Connector',
1920
'OPCFoundation.NetStandard.Opc.Ua.OpenUsd.Connector.Viewer')
2021
}

‎.github/workflows/buildandtest.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [ master, main, master378, develop/*, release/* ]
5+
branches: [ master, main, master378, master20, develop/*, release/* ]
66
pull_request:
7-
branches: [ master, main, master378, develop/*, release/* ]
7+
branches: [ master, main, master378, master20, develop/*, release/* ]
88
# NOTE: deliberately no `paths:` filter. A workflow that is filtered out by
99
# `paths` never reports its checks at all, and a required status check that
1010
# never reports leaves a pull request permanently "Expected — waiting for
@@ -64,14 +64,14 @@ env:
6464

6565
# Pull requests and feature branches cancel a superseded run: only the newest
6666
# commit's result matters there. A push to a protected line (master, main,
67-
# master378, release/*) never cancels, and each commit gets its own group,
67+
# master378, master20, release/*) never cancels, and each commit gets its own group,
6868
# because a queued run in a shared group is replaced as well as a running one
6969
# being cancelled. Every protected commit therefore finishes its required
7070
# checks ('build-and-test summary', 'images summary'), which the Release
7171
# ruleset demands before a release/<major>.<minor> branch can be cut from it.
7272
concurrency:
73-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || ((github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master378' || startsWith(github.ref, 'refs/heads/release/')) && github.sha) || github.ref }}
74-
cancel-in-progress: ${{ github.event_name == 'pull_request' || !(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master378' || startsWith(github.ref, 'refs/heads/release/')) }}
73+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || ((github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master378' || github.ref == 'refs/heads/master20' || startsWith(github.ref, 'refs/heads/release/')) && github.sha) || github.ref }}
74+
cancel-in-progress: ${{ github.event_name == 'pull_request' || !(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master378' || github.ref == 'refs/heads/master20' || startsWith(github.ref, 'refs/heads/release/')) }}
7575

7676
jobs:
7777
discover:
@@ -114,12 +114,12 @@ jobs:
114114
}
115115
116116
# The macOS test shards are the slowest and scarcest runners, so they
117-
# only run for the protected lines (master, main, master378, release/*).
117+
# only run for the protected lines (master, main, master378, master20, release/*).
118118
# Pull requests and every other branch keep the macOS NativeAOT legs as
119119
# their macOS coverage and skip the macOS test shards; the nightly
120120
# full-scope workflow still runs every macOS profile.
121121
$protectedRef = $env:EVENT_NAME -ne 'pull_request' -and (
122-
$env:REF -in @('refs/heads/master', 'refs/heads/main', 'refs/heads/master378') -or
122+
$env:REF -in @('refs/heads/master', 'refs/heads/main', 'refs/heads/master378', 'refs/heads/master20') -or
123123
$env:REF -like 'refs/heads/release/*')
124124
$includeMacTests = $includeMac -and $protectedRef
125125

‎.github/workflows/docker-image.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ name: Images CI
22

33
on:
44
push:
5-
branches: [ master, release/*, docker* ]
6-
# No paths-ignore here either: every push to master or release/* must
5+
branches: [ master, master20, release/*, docker* ]
6+
# No paths-ignore here either: every push to master, master20 or release/* must
77
# report `images summary`, which the Release ruleset requires before a
88
# release branch can be cut from that commit. The discover job skips the
99
# image builds for documentation- or test-only pushes instead.
1010
pull_request:
11-
branches: [ master, main, master378, develop/*, release/* ]
11+
branches: [ master, main, master378, master20, develop/*, release/* ]
1212
# NOTE: deliberately no `paths-ignore` filter, and the same branch list as
1313
# the `CI` workflow so both gates report on exactly the same pull requests.
1414
# A workflow that is filtered out by `paths`/`paths-ignore` never reports
@@ -24,14 +24,14 @@ on:
2424

2525
# Pull requests and feature branches cancel a superseded run: only the newest
2626
# commit's result matters there. A push to a protected line (master, main,
27-
# master378, release/*) never cancels, and each commit gets its own group,
27+
# master378, master20, release/*) never cancels, and each commit gets its own group,
2828
# because a queued run in a shared group is replaced as well as a running one
2929
# being cancelled. Every protected commit therefore finishes its required
3030
# checks ('build-and-test summary', 'images summary'), which the Release
3131
# ruleset demands before a release/<major>.<minor> branch can be cut from it.
3232
concurrency:
33-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || ((github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master378' || startsWith(github.ref, 'refs/heads/release/')) && github.sha) || github.ref }}
34-
cancel-in-progress: ${{ github.event_name == 'pull_request' || !(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master378' || startsWith(github.ref, 'refs/heads/release/')) }}
33+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || ((github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master378' || github.ref == 'refs/heads/master20' || startsWith(github.ref, 'refs/heads/release/')) && github.sha) || github.ref }}
34+
cancel-in-progress: ${{ github.event_name == 'pull_request' || !(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master378' || github.ref == 'refs/heads/master20' || startsWith(github.ref, 'refs/heads/release/')) }}
3535

3636
env:
3737
REGISTRY: ghcr.io

‎.github/workflows/nuget-publish.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ permissions:
4343
# tags are never cancelled: their runs publish previews, and release.yml
4444
# promotes a release branch's run by ID, so every such commit has to finish.
4545
# A manual run gets a group of its own, so a later push to the same branch
46-
# cannot cancel a package build someone asked for.
46+
# cannot cancel a package build someone asked for. Each master20 push also
47+
# gets its own group: a queued run in a shared group is replaced by the next
48+
# one even without cancel-in-progress, and every master20 commit must finish.
4749
concurrency:
48-
group: nuget-publish-${{ github.ref }}${{ github.event_name == 'workflow_dispatch' && format('-dispatch-{0}', github.run_id) || '' }}
49-
cancel-in-progress: ${{ !(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master378' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/develop/') || startsWith(github.ref, 'refs/tags/')) }}
50+
group: nuget-publish-${{ github.ref }}${{ github.event_name == 'workflow_dispatch' && format('-dispatch-{0}', github.run_id) || '' }}${{ github.event_name == 'push' && github.ref == 'refs/heads/master20' && format('-{0}', github.sha) || '' }}
51+
cancel-in-progress: ${{ !(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master378' || github.ref == 'refs/heads/master20' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/develop/') || startsWith(github.ref, 'refs/tags/')) }}
5052

5153
jobs:
5254
# Skips the two signed Windows builds for a feature branch that, as a whole,
@@ -92,7 +94,7 @@ jobs:
9294
shell: pwsh
9395
env:
9496
EVENT_NAME: ${{ github.event_name }}
95-
PROTECTED_REF: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master378' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/develop/') || startsWith(github.ref, 'refs/tags/') }}
97+
PROTECTED_REF: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master378' || github.ref == 'refs/heads/master20' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/develop/') || startsWith(github.ref, 'refs/tags/') }}
9698
run: |
9799
$relevant = $true
98100
if ($env:EVENT_NAME -eq 'push' -and $env:PROTECTED_REF -ne 'true') {

‎docs/BaseNetworkModel.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ acquisitions carry the matrix dimensions and identifier bytes again.
266266
## Run the simulated server/client scenario
267267

268268
```powershell
269-
dotnet run --project samples\Network\NetworkModelSample -- 62588
269+
dotnet run --project samples\Network\NetworkModelSample --framework net10.0 -- 62588
270270
```
271271

272272
The sample starts a local server, connects a separate client over a secured

‎docs/Onboarding.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,8 @@ issuer, URI and approval checks.
14351435

14361436
[Part 21 §7.4.2](https://reference.opcfoundation.org/specs/OPC-10000-21/v1.05.04/7.4.2)
14371437
describes an FDO Owner supplying the DCA credential through `fdo.csr`.
1438-
The opt-in `OPCFoundation.NetStandard.Opc.Ua.Gds.Fdo` package connects the
1438+
The opt-in, preview-only `OPCFoundation.NetStandard.Opc.Ua.Gds.Fdo` package
1439+
(it stays on a `-preview` version while `Fdo` itself is a prerelease) connects the
14391440
FDO Owner and Device enrollment callbacks to OPC UA onboarding on .NET 10 and
14401441
.NET 11. The base GDS packages do not depend on FDO. The `Fdo` library handles
14411442
TO0/TO1/TO2, ownership vouchers, service-info negotiation, protocol

‎docs/ReleaseProcess.md‎

Lines changed: 49 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ without any other context.
4040
shares the same root version except the **preview-only families**.
4141
- **Preview-only families** - the XRegistry, WoT Connectivity,
4242
Robotics, CranesHoists, Redundancy, Positioning, OpenUSD, and AI package
43-
families, the Vision.OpenUsd renderer, the Robotics, CranesHoists, Positioning, WotCon and XRegistry MCP extensions, and the OpenUSD connector
43+
families, the Vision.OpenUsd renderer, the Robotics, CranesHoists, Positioning, WotCon and XRegistry MCP extensions, the GDS FDO adapter (`Gds.Fdo`, which depends on the prerelease `Fdo` package), and the OpenUSD connector
4444
tools. `version.targets` keeps these on a `-preview.N` suffix even when the
4545
root version is an exact stable release. The full, single source of truth
4646
for which package IDs this covers is `_IsPreviewPackage` in
@@ -107,7 +107,8 @@ Every procedure below starts here.
107107
dotnet --version
108108
gh auth status
109109
```
110-
*Completion evidence*: a .NET 10 SDK version, and `gh` reports an
110+
*Completion evidence*: a .NET 11 SDK version (`global.json` pins
111+
`11.0.100` with `latestFeature` roll-forward), and `gh` reports an
111112
authenticated account with access to `OPCFoundation/UA-.NETStandard`.
112113
Promotion (`release.yml`) additionally requires the `release` GitHub
113114
Environment's approval; you cannot grant that to yourself; a repository
@@ -161,6 +162,15 @@ Every procedure below starts here.
161162

162163
## Branch and channel model
163164

165+
- `master20` is the development branch for the 2.0 line. It was cut from
166+
`master` at `8cf324148` (the commit merged into `release/2.0` for `2.0.3`)
167+
when `master` moved to `2.1.0-preview.{height}`, and carries the next 2.0
168+
patch's `-preview.{height}` version. 2.0 fixes land on `master20` by PR;
169+
`master` is no longer merged into `release/2.0`. A 2.0 patch release
170+
merges `master20` into `release/2.0` instead (see
171+
[Patch release](#patch-release)). `master20` pushes run the full CI like
172+
`master`, but are built unsigned and never publish packages; the 2.0 line
173+
publishes only from `release/2.0`.
164174
- `master` always carries a `-preview.{height}` root version for the next
165175
minor release under development (e.g. `2.0.0-preview.{height}` while `2.0`
166176
is being prepared, `2.1.0-preview.{height}` once `2.0` has shipped).
@@ -316,6 +326,10 @@ run of this same procedure).
316326

317327
2. Collect and backport the fixes intended for this patch (see
318328
[Routine backport](#routine-backport) for each one) before continuing.
329+
For `release/2.0`, the fixes are already collected on `master20`: branch
330+
from `origin/release/2.0`, merge `origin/master20` into it, and make that
331+
merge the release PR together with step 3 (merge it with "Create a merge
332+
commit", not squash, so later merges stay small).
319333

320334
3. Open a PR against `release/<major>.<minor>` that sets `version.json`'s
321335
`"version"` to the exact next patch (e.g. `"2.0.1"`, no prerelease label),
@@ -329,6 +343,8 @@ run of this same procedure).
329343
5. After promotion, open a PR against the same release branch advancing
330344
`version.json` to the *following* patch's preview version (e.g.
331345
`"2.0.2-preview.{height}"`) before accepting further servicing work.
346+
For the 2.0 line, advance `master20` to the same preview version in a
347+
second PR.
332348

333349
## Minor release
334350

@@ -355,17 +371,28 @@ out of an older line.
355371
Ports an already-merged, already-tested fix from `master` onto a release
356372
branch for an upcoming patch.
357373

374+
The **backport target** below is the branch that collects fixes for the
375+
line's next patch:
376+
377+
- For the 2.0 line it is `master20`, never `release/2.0` directly. The fix
378+
reaches `release/2.0` with the next patch's `master20` merge (see
379+
[Patch release](#patch-release) step 2). A fix that is written on
380+
`master20` first must also be ported forward to `master`.
381+
- For every other line it is the release branch itself,
382+
`release/<major>.<minor>`.
383+
358384
**Owner**: any contributor.
359385

360386
**Preconditions**: the fix already has a merged commit on `master`; the
361-
[common preflight](#common-preflight) is complete; you know the target
362-
`release/<major>.<minor>` branch and the commit SHA to port.
387+
[common preflight](#common-preflight) is complete; you know the
388+
backport target and the commit SHA to port.
363389

364-
1. Branch from the release line, not from `master`:
390+
1. Branch from the backport target, not from `master`. For the 2.0 line:
365391
```powershell
366-
git fetch origin release/2.0
367-
git switch -c backport-<short-description> origin/release/2.0
392+
git fetch origin master20
393+
git switch -c backport-<short-description> origin/master20
368394
```
395+
For another line, use `release/<major>.<minor>` in place of `master20`.
369396

370397
2. Cherry-pick the fix with traceability to its source commit. Never
371398
cherry-pick a version-only or release-preparation commit (that would
@@ -377,11 +404,11 @@ branch for an upcoming patch.
377404
unrelated `master`-only changes, and do not alter `version.json` or
378405
`preview-version.props` in this PR.
379406

380-
3. Push and open a PR **against the release branch**
381-
(`release/<major>.<minor>`, not `master`). Reference the original `master`
382-
PR/commit in the description.
383-
*Completion evidence*: required checks pass on the release branch build;
384-
the PR is reviewed and merged.
407+
3. Push and open a PR **against the backport target** (`master20` for the
408+
2.0 line, otherwise `release/<major>.<minor>`; never `master`). Reference
409+
the original `master` PR/commit in the description.
410+
*Completion evidence*: required checks pass on the backport target's
411+
build; the PR is reviewed and merged.
385412

386413
4. Confirm the fix is included in the next
387414
[Patch release](#patch-release) for that line.
@@ -400,19 +427,24 @@ have identified every maintained release line the defect affects (there may
400427
be more than one) and the current state of `master`.
401428

402429
1. Start on the **oldest** affected maintained release branch. Branch, fix,
403-
and open a PR against that release branch exactly as in
404-
[Routine backport](#routine-backport) steps 1-3, except the fix itself is
405-
authored fresh here rather than cherry-picked from an existing commit.
430+
and open a PR against that release branch as in
431+
[Routine backport](#routine-backport) steps 1-3, except that the fix itself
432+
is authored fresh here rather than cherry-picked from an existing commit,
433+
and that the target is always the release branch itself: for the 2.0 line
434+
the hotfix goes straight to `release/2.0`, not through `master20`.
406435

407436
2. Once merged there, forward-port the same fix (cherry-pick with `-x` from
408437
the release-branch commit this time) into every newer affected maintained
409438
release line, in ascending order, each through its own PR against that
410-
line.
439+
line. A fix merged into `release/2.0` is also forward-ported into
440+
`master20` through its own PR, so 2.0 servicing work on `master20` has it
441+
too.
411442

412443
3. Forward-port the same fix into `master` last, through an ordinary PR.
413444

414445
4. Track the forward-port chain to completion explicitly (for example in the
415-
original issue or PR description): list every affected line, and do not
446+
original issue or PR description): list every affected line (and
447+
`master20` for a 2.0 hotfix), and do not
416448
consider the hotfix done until each one has a merged PR. A hotfix that
417449
never reaches `master` will keep reappearing on every future release of
418450
the older line.

‎samples/MinimalApi/MinimalClient/README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,25 @@ The minimal console client demonstrates the fluent OPC UA API and dependency inj
2828
To connect to the default MinimalBoilerServer:
2929

3030
```bash
31-
dotnet run
31+
dotnet run --framework net10.0
3232
```
3333

3434
The server certificate must already be trusted. For local development only, explicitly opt into automatic trust:
3535

3636
```bash
37-
dotnet run -- --auto-accept
37+
dotnet run --framework net10.0 -- --auto-accept
3838
```
3939

4040
To explicitly select an endpoint without message security:
4141

4242
```bash
43-
dotnet run -- --insecure
43+
dotnet run --framework net10.0 -- --insecure
4444
```
4545

4646
To connect to a different server:
4747

4848
```bash
49-
dotnet run -- "opc.tcp://localhost:62542/MinimalCalcServer"
49+
dotnet run --framework net10.0 -- "opc.tcp://localhost:62542/MinimalCalcServer"
5050
```
5151

5252
## Example Usage

‎samples/Network/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ reserve bandwidth.
99
Run from the repository root with the .NET 10 SDK:
1010

1111
```powershell
12-
dotnet run --project samples\Network\NetworkModelSample -- 62588
12+
dotnet run --project samples\Network\NetworkModelSample --framework net10.0 -- 62588
1313
```
1414

1515
The optional argument selects the local endpoint port. The scenario rejects a

‎samples/Robotics/BinPickingCell/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ appears in the cell's address space.
4444
Prerequisites: .NET 10 SDK.
4545

4646
```powershell
47-
dotnet run --project samples\Robotics\BinPickingCell\BinPickingCell.csproj -- --insecure
47+
dotnet run --project samples\Robotics\BinPickingCell\BinPickingCell.csproj --framework net10.0 -- --insecure
4848
```
4949

5050
The server listens on `opc.tcp://localhost:62855/BinPickingCell` by

0 commit comments

Comments
 (0)