You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b10d39a
Browse filesBrowse the repository at this point in the historyBrowse files
## Summary
- Select `Preferred,GitHub,NodeTool` network isolation policy for
checkout and Node installation while preserving enforced isolation and
required restrictions.
- Reuse the existing authenticated Azure Artifacts npm setup in build
and publish jobs. No new secrets or GitHub API tokens are introduced.
- Remove GitHub release lookups and source-provenance validation
entirely, including the Azure provenance step, HTTP
retry/tag-resolution/source-comparison helpers, and their obsolete
tests.
- Keep local exact stable minimum-version validation, generated runtime
floors, packed manifest/ESM/CommonJS consistency checks, and package
consumer tests. The selected minimum need not equal the newest stable
extension.
- Defer any new release-PR gate or publication branch-policy changes to
a separate PR. For now, release authors must confirm that the selected
minimum has shipped the required APIs.
- Update documentation and changelog. Preserve publication conditions,
approvals, and the `no-merge` hold.
## Validation
- Node 22.21.1: API compilation, local release validation, all 4
remaining release-validator tests, and packed modern/legacy TypeScript
plus ESM/CommonJS consumer checks passed.
- Default, `--artifact`, and `--artifact-directory` CLI modes pass with
fetch blocked, including an older 1.40.0 artifact; compiled-floor
mismatches are still rejected.
- Repository lint, TypeScript compilation, and 3,511 unit tests passed
(9 pending).
- Code/YAML formatting, YAML parsing, and `git diff --check` passed.
Verified that the PR workflow and Azure publication condition are
unchanged by this follow-up and no provenance callers remain.
- **A fresh official build-only run at commit `a271744b` or the current
PR HEAD is still required.** Use `quality=stable` and
`publishPackage=false`. Preserve `no-merge` until this run succeeds.
## Release follow-up
This includes an `api/package.json` script change, so merging can
trigger an official build, but the npm version is unchanged and will not
automatically trigger publication. After validation, review, and merge,
queue a **new** official run at the fixed main commit with
`quality=stable` and `publishPackage=true`. Do not retry an old run
using its original YAML/code. The failed dry run did not publish npm
1.8.0, so no additional package version bump is needed.
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7992926e-a6ef-49ad-b6c9-120b52c0de51
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+19-22Lines changed: 19 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,23 +125,23 @@ Its generated `api/src` sources are **not committed** (see [`api/.gitignore`](./
125
125
constant. Install dependencies with `npm --prefix api ci` first.
126
126
- Run `npm --prefix api test` after compilation. This tests the release validator
127
127
and packs/installs the package for modern/legacy TypeScript and ESM/CommonJS
128
-
runtime checks. `npm --prefix api run check:release`checks the live baseline;
129
-
add `-- --provenance` to verify original and staged sources against that release.
128
+
runtime checks. `npm --prefix api run check:release`validates the declared
129
+
minimum locally without network requests.
130
130
- Shared API sources are also checked by the extension's lint and TypeScript
131
131
compile. The PR's **API package compatibility** job builds/tests npm release
132
-
inputs and validates their minimum against the latest stable release.
133
-
Documentation-only and unrelated PRs do not perform the external lookup.
132
+
inputs and validates their declared minimum without a GitHub lookup.
134
133
Configure that job as a required check in branch protection.
135
134
136
135
### API versioning and publication
137
136
138
137
The npm version in [`api/package.json`](./api/package.json) is independent of the
139
138
extension version in [`package.json`](./package.json). Each new npm release must
140
-
declare `minimumExtensionVersion` as an exact stable SemVer matching GitHub's
141
-
designated latest stable extension release tag (without its leading `v`). Ranges,
142
-
prerelease floors, and build metadata are rejected. The helper checks installed
143
-
extension versions before activation using normal SemVer precedence, including
144
-
already-active extensions. Published npm releases keep their original minimum.
139
+
declare `minimumExtensionVersion` as an exact stable SemVer identifying the
140
+
chosen supported extension release (without its leading `v`). It need not be the
141
+
latest release. Ranges, prerelease floors, and build metadata are rejected.
142
+
The helper checks installed extension versions before activation using normal
143
+
SemVer precedence, including already-active extensions. Published npm releases
144
+
keep their original minimum.
145
145
146
146
Defer npm version bumps to release PRs by applying `skip api version` to API
147
147
implementation PRs. Any PR editing a shared public API source or
@@ -154,21 +154,18 @@ Release in this order: merge API changes without an npm version bump, ship the
154
154
stable extension, then merge an npm release PR updating
155
155
`minimumExtensionVersion`, the npm version, and the changelog. The stable npm
156
156
version bump starts the publication pipeline automatically. Development can merge
157
-
before the extension ships: source provenance is checked at packaging, not on PRs.
158
-
The npm pipeline resolves the stable release tag to an immutable commit and
159
-
requires all five shared source files, including their staged copies, to match.
160
-
Only line-ending differences are ignored; even comment-only differences block
161
-
publication. This conservative provenance check is not a semantic API analyzer.
162
-
The npm-only wrapper can evolve without changing those shared extension sources.
157
+
before the extension ships. Release authors must confirm that the declared
158
+
minimum contains the APIs required by the npm package. Automated GitHub release
159
+
and source-provenance checks are deferred to a separate PR; neither PR checks
160
+
nor the publication pipeline currently performs those lookups.
163
161
164
162
The packed manifest and both compiled runtime floors must agree. The publish
165
-
stage checks the actual tarball against the latest stable release again. If a
166
-
new stable release appeared during review or between packaging and publishing,
167
-
explicitly update the minimum, rebuild, retest, and rerun the pipeline; do not
168
-
restamp the existing artifact. Both `latest` and `next` npm tags currently use
169
-
this stable baseline: preview-only API publishing needs a separate policy.
170
-
Public GitHub lookups use bounded retries and fail closed. Local runs can set
171
-
`GITHUB_TOKEN` to avoid anonymous rate limits; PRs use their read-only token.
163
+
stage checks this metadata in the actual tarball locally, without a GitHub
164
+
lookup. A newer stable extension does not invalidate the selected baseline or
165
+
require repacking. To change the minimum, update the manifest, rebuild, retest,
166
+
and rerun the pipeline; do not restamp the existing artifact. Both `latest` and
167
+
`next` npm tags currently use a stable baseline: preview-only API publishing
168
+
needs a separate policy.
172
169
173
170
-**Releasing:** merging a stable version change in `api/package.json` into `main` automatically starts the [npm pipeline](./build/azure-pipeline.npm.yml), including its existing build, package tests, and MicroBuild approval process. Other manifest edits build and validate the package without publishing. The version check compares the merged commit with its parent, relying on the repository's squash-only merge policy; direct pushes to `main` also trigger it. Preview releases remain manual: queue the pipeline with `quality: preview` and `publishPackage: true`. Manual runs otherwise remain build-only unless `publishPackage` is explicitly enabled.
Copy file name to clipboardExpand all lines: api/CHANGELOG.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
12
12
-`minimumExtensionVersion` metadata recording the independently versioned extension baseline required by this npm release.
13
13
- An npm-only compatibility guard that rejects older or invalid extension versions before activation or access to the API, with localized update guidance.
14
-
-PR validation against the latest stable extension release, packed-metadata checks, and publish-time verification that shared API sources have shipped in that stable release.
14
+
-Local validation of the declared extension minimum and packed-metadata consistency checks.
15
15
16
16
### Changed
17
17
18
-
- New npm releases require the latest stable extension baseline. Existing npm releases keep their original minimum; consumers targeting older extensions may need to pin an older npm package.
18
+
- New npm releases select a supported stable extension baseline rather than requiring the latest release. Existing npm releases keep their original minimum.
`minimumExtensionVersion is ${minimum}; latest stable is ${release.version} (${release.url}). Update api/package.json, rebuild, and rerun validation.`,
91
-
);
92
-
}
93
-
}
94
-
95
-
/** Rejects unreleased shared API sources, including stale staged copies, at packaging time. */
`${local} differs from ${release.tag} (${object.sha}). Publish the stable extension containing these API sources, then update the npm baseline and rebuild.`,
115
-
);
116
-
}
117
-
}
118
-
}
119
-
}
120
-
121
28
/** Checks the packed manifest and both compiled metadata modules without executing package code. */
122
29
functionvalidatePackedArtifact(artifact){
123
30
constread=(entry)=>
@@ -138,10 +45,9 @@ function validatePackedArtifact(artifact) {
0 commit comments