Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

test(release): derive reviewed notes from tag

haelyraa504b1941195
diff --git a/tests/ci/release-packed-artifact-workflow.test.js b/tests/ci/release-packed-artifact-workflow.test.js
index a1890e61d..59755f4fe 100644
--- a/tests/ci/release-packed-artifact-workflow.test.js
+++ b/tests/ci/release-packed-artifact-workflow.test.js
@@ -69,6 +69,23 @@ for (const workflowPath of workflowPaths) {
}
});
+ test(`${workflowPath} selects reviewed release notes from the validated release version`, () => {
+ const verify = jobBlock(source, 'verify', 'lifecycle');
+
+ assert.match(verify, /RELEASE_VERSION="\$\{RELEASE_TAG#v\}"/);
+ assert.match(
+ verify,
+ /RELEASE_NOTES="docs\/releases\/\$\{RELEASE_VERSION\}\/RELEASE_NOTES\.md"/
+ );
+ assert.match(verify, /if \[ ! -f "\$RELEASE_NOTES" \]/);
+ assert.match(verify, /cp "\$RELEASE_NOTES" release_body\.md/);
+ assert.doesNotMatch(
+ verify,
+ /cp docs\/releases\/2\.2\.0\/RELEASE_NOTES\.md/,
+ 'release workflows must not reuse 2.2.0 notes for later versions'
+ );
+ });
+
test(`${workflowPath} uploads the one packed tgz as the release artifact`, () => {
const verify = jobBlock(source, 'verify', 'lifecycle');
const packIndex = verify.indexOf('name: Pack npm artifact');