Skip to content

ci: adopt AtlassianPS.Standards v0.5.0 with shared alpha and beta releases - #278

Merged
lipkau merged 9 commits into
masterfrom
codex/standards-73
Nov 22, 2026
Merged

lipkau merged 9 commits into
masterfrom
codex/standards-73

Conversation

@lipkau

@lipkau lipkau commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Adopts AtlassianPS.Standards v0.5.0, which adds shared alpha and beta releases (Standards #78).
Every Standards workflow pin moves to 7efc986 (v0.5.0) and the build requirement to 0.5.0.
Tests/Tools/StandardsVersionConsistency.Unit.Tests.ps1 checks the single release SHA again.

Dispatch Continuous Release from master, choose alpha or beta, and optionally set prerelease_branch.
The shared workflow uses one resolved source commit for builds, tests, the artifact ledger, and the tag.
Stable releases reject branch overrides.
The CONFLUENCEPS_CD_ENABLED guard from #279 stays on the release job.

Adds the Prerelease = '' manifest entry that the shared alpha/beta build sets.

Standards 0.5.0 also changes the stable build:

  • Install-DependencyRequirement treats a requirement with only ModuleVersion as a minimum.
  • Test-ModulePackage requires the package to match the built module file for file.

Updates operator guidance, the changelog, and workflow contract checks.
Uses release:none so adoption ships with the next package.

Refs AtlassianPS/AtlassianPS.Standards#73.

Validation: Invoke-Build -Task Lint, Build, Test against Standards 0.5.0 → Tests Passed: 1013, Failed: 0, Skipped: 44 / Build succeeded. 9 tasks, 0 errors, 0 warnings.


Created by gpt-6 via codex on behalf of @lipkau


Created by claude-opus-5-5 via Claude Code on behalf of @lipkau

@lipkau lipkau added the release:none No release note or version impact label Oct 28, 2026
lipkau added a commit that referenced this pull request Nov 20, 2026
## Why

ConfluencePS publishes automatically after every successful CI run on
`master`.
The ConfluencePS 3 work will land on `master` over many pull requests,
so a merge must not release a half-finished major version.
JiraPS already guards its continuous release with `JIRAPS_CD_ENABLED`;
this does the same for ConfluencePS.

## What

- `continuous_release.yml`: the `release` job runs only on manual
dispatch or when the repository variable `CONFLUENCEPS_CD_ENABLED` is
`'true'`.
- `Tests/GitHubActions.Unit.Tests.ps1`: asserts the guard, as JiraPS
does.
- `.github/ai-context/releasing.md`: the rollout-guard section from
JiraPS `releasing.md`, adapted to ConfluencePS. The JiraPS paragraph
about the `release` environment and tag protection is left out:
ConfluencePS already has the `release` environment and the
`protect-release-tags` and `immutable-release-tags` rulesets.
- `AGENTS.md`: one line, so an agent does not expect a release after a
merge.

No changelog entry: nothing changes for module users.

## Effect

- `CONFLUENCEPS_CD_ENABLED` does not exist today, so after this merges a
push to `master` starts no release preparation.
- A 2.x patch is still possible: dispatch `Continuous Release`, then set
the variable to `true` and rerun CI for the prepared commit, as
`releasing.md` describes.
- ConfluencePS #278 (Standards repin) edits the `uses:` line next to the
new `if:`; whichever merges second needs a trivial rebase.

## Gate

`Invoke-Build -Task Build, Test`: `Tests Passed: 1013, Failed: 0,
Skipped: 44` — `Build succeeded. 8 tasks, 0 errors, 0 warnings`.
`Invoke-Build -Task Lint`: `Tests Passed: 92, Failed: 0`.

---
Created by _claude-opus-5-5 via Claude Code in T3 Code_ on behalf of
@lipkau
The shared candidate build sets PrivateData.PSData.Prerelease and
fails when the source manifest has no entry to set.

Agent-Attribution: claude-opus-5-5 via Claude Code on behalf of @lipkau
Standards #78 no longer provides Install-AtlassianPSModuleCandidate or
the installer's CandidateRequirement option; dependencies install from
stable releases only.

Agent-Attribution: claude-opus-5-5 via Claude Code on behalf of @lipkau
lipkau added a commit to AtlassianPS/AtlassianPS.Standards that referenced this pull request Nov 21, 2026
Adds shared alpha/beta releases for #73.

Dispatch `Continuous Release` from `master`, select `alpha` or `beta`,
and optionally set `prerelease_branch`.
The workflow resolves that branch once and uses the same commit for
builds, tests, the artifact ledger, and the tag.
Stable releases reject branch overrides.

Candidate CI writes numeric `ModuleVersion` and the exact
`PrivateData.PSData.Prerelease` into the generated `.psd1`, verifies
notes and archive contents, and supplies the artifact for publication.
The publisher promotes it without rebuilding and relies on the exact-run
artifact digest, as decided in #39.
Candidate numbering uses repository tags and Gallery versions.

Changes to stable behaviour:

- Planning stops a major release, stable or prerelease, unless a manual
dispatch supplies `major_authorization` as `owner/repository vMAJOR`.
- `Test-ModulePackage` compares the full version and requires the
package to match the built module file for file.
- `Install-DependencyRequirement` treats `ModuleVersion` as a minimum,
honors `MaximumVersion`, and ignores installed prereleases.
- The publisher converts a wildcard `MaximumVersion` such as `1.*`
before `Install-Module`, which rejects it.
Without this, the next Configuration release, stable or alpha, fails
after creating its tag.
- The publisher passes `-Force` to `Publish-Module`, so a stable fix
such as `0.2.11` can follow a published `0.3.0-alpha0002`.
PowerShellGet otherwise rejects any version below the newest Gallery
version, prereleases included.
- Planning stops when the planned version is not above the latest stable
version on PSGallery, and the publish job stops before tagging when a
newer stable version, or a later alpha or beta of the same base, is
already published.
JiraPS needs a `v2.16.0` tag first: its `v2.13` to `v2.16` tags have two
parts, so planning starts from `v2.12.2`.
  A new module's first version must now be published by hand.

Not in scope, decided in review: candidate dependency provisioning
(`-CandidateRequirement`) is dropped.
JiraPS moves to a stable Configuration instead and then removes its
candidate tooling.
`Install-ModuleCandidate` stays private, used only by the acquisition
checks.

Downstream callers: [Configuration
#59](AtlassianPS/AtlassianPS.Configuration#59),
[JiraPS #731](AtlassianPS/JiraPS#731),
[ConfluencePS
#278](AtlassianPS/ConfluencePS#278), and
[JiraAgilePS #60](AtlassianPS/JiraAgilePS#60).
They pin `160631f`; they move to the release SHA after this is released.

Validation: `Invoke-Build -Task Lint, Build, Test` → `Tests Passed: 142,
Failed: 0, Skipped: 0, Inconclusive: 0, NotRun: 37` / `Build succeeded.
7 tasks, 0 errors, 0 warnings` on `cf400cd`.
A no-publish alpha dry run of Configuration from a throwaway fork passed
every candidate job on all four platforms and stopped at the release app
token, as designed; see the dry-run comments.
Tag creation, `Publish-Module`, the GitHub release and the post-publish
Gallery check have not run; the first real alpha dispatch is their live
test.

---
Created by _gpt-6 via codex_ on behalf of @lipkau

---
Created by _claude-opus-5-5 via Claude Code_ on behalf of @lipkau
Keep the CONFLUENCEPS_CD_ENABLED guard from #279 on the release job
next to the shared release workflow pin.

Agent-Attribution: claude-opus-5-5 via Claude Code on behalf of @lipkau
Move every Standards workflow pin to the v0.5.0 release commit and the
build requirement to 0.5.0. The consistency test checks one release SHA
again, now that the release workflow no longer points at the unreleased
branch. The changelog keeps one heading per change type.

Agent-Attribution: claude-opus-5-5 via Claude Code on behalf of @lipkau
@lipkau lipkau changed the title ci: adopt shared alpha and beta release channels ci: adopt AtlassianPS.Standards v0.5.0 with shared alpha and beta releases Nov 22, 2026
@lipkau
lipkau marked this pull request as ready for review November 22, 2026 00:30
@lipkau
lipkau merged commit 69723ff into master Nov 22, 2026
10 checks passed
@lipkau
lipkau deleted the codex/standards-73 branch November 22, 2026 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:none No release note or version impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant