docs: qualify every ceremony source record
This commit is contained in:
parent
ed16f824ef
commit
21fcb1fdb1
2 changed files with 8 additions and 12 deletions
|
|
@ -6,8 +6,9 @@ byte-identical copies of
|
||||||
stoke does not run `docs-sync` or re-diff the mirror in CI. Change doctrine
|
stoke does not run `docs-sync` or re-diff the mirror in CI. Change doctrine
|
||||||
upstream through its own flow, then re-vendor it here when the pin moves.
|
upstream through its own flow, then re-vendor it here when the pin moves.
|
||||||
|
|
||||||
The labels doctrine is vendored manually from heavy-duty/ceremony at 0.6.3
|
The labels doctrine is vendored manually from
|
||||||
because stoke keeps its own tag-driven `.forgejo/workflows/release.yml`.
|
[heavy-duty/ceremony](https://forgejo.heavyduty.builders/heavy-duty/ceremony) at 0.6.3 because
|
||||||
|
stoke keeps its own tag-driven `.forgejo/workflows/release.yml`.
|
||||||
`docs-sync --fix` cannot run until or unless a future issue adopts the
|
`docs-sync --fix` cannot run until or unless a future issue adopts the
|
||||||
ceremony release-workflow pin; until then, doctrine updates must re-vendor
|
ceremony release-workflow pin; until then, doctrine updates must re-vendor
|
||||||
the pinned manifest manually.
|
the pinned manifest manually.
|
||||||
|
|
|
||||||
|
|
@ -140,17 +140,12 @@ test('repository carries the complete Forgejo 0.6.3 doctrine mirror and root rou
|
||||||
assert.ok(fs.statSync(path.join(REPOSITORY_MIRROR, filename)).isFile(), `${filename} is missing`);
|
assert.ok(fs.statSync(path.join(REPOSITORY_MIRROR, filename)).isFile(), `${filename} is missing`);
|
||||||
}
|
}
|
||||||
const mirrorReadme = fs.readFileSync(path.join(REPOSITORY_MIRROR, 'README.md'), 'utf8');
|
const mirrorReadme = fs.readFileSync(path.join(REPOSITORY_MIRROR, 'README.md'), 'utf8');
|
||||||
assert.ok(
|
const sourceVersionRecord = `[heavy-duty/ceremony](${CEREMONY_REPOSITORY}) at ${CEREMONY_VERSION}`;
|
||||||
mirrorReadme.includes(`[heavy-duty/ceremony](${CEREMONY_REPOSITORY}) at ${CEREMONY_VERSION}`),
|
assert.equal(
|
||||||
'mirror README does not identify the exact Forgejo ceremony source and version',
|
mirrorReadme.split(sourceVersionRecord).length - 1,
|
||||||
|
2,
|
||||||
|
'mirror README does not identify the exact Forgejo ceremony source and version in both records',
|
||||||
);
|
);
|
||||||
for (const workflow of CEREMONY_WORKFLOWS) {
|
|
||||||
const contents = fs.readFileSync(path.join(__dirname, '..', '.forgejo', 'workflows', workflow), 'utf8');
|
|
||||||
assert.ok(
|
|
||||||
contents.includes(`uses: heavy-duty/ceremony/.github/workflows/${workflow}@${CEREMONY_VERSION}`),
|
|
||||||
`${workflow} does not pin ceremony ${CEREMONY_VERSION}`,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
assert.match(mirrorReadme, /labels doctrine is vendored manually/);
|
assert.match(mirrorReadme, /labels doctrine is vendored manually/);
|
||||||
assert.doesNotMatch(mirrorReadme, /The pin lives in `.github\/workflows\/release\.yml`/);
|
assert.doesNotMatch(mirrorReadme, /The pin lives in `.github\/workflows\/release\.yml`/);
|
||||||
assert.doesNotMatch(mirrorReadme, /Machine-managed by|CI re-diffs them/);
|
assert.doesNotMatch(mirrorReadme, /Machine-managed by|CI re-diffs them/);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue