@codyswann/lisa 4.109.1 → 4.109.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all/copy-overwrite/scripts/lib/completion-proof-github.mjs +58 -3
- package/all/copy-overwrite/scripts/lib/completion-proof-publisher.mjs +58 -141
- package/all/copy-overwrite/scripts/lib/evidence-prune-records.mjs +57 -11
- package/all/copy-overwrite/scripts/lib/evidence-release-capacity.mjs +228 -0
- package/all/copy-overwrite/scripts/lib/npm-update-helper-inventory.mjs +1 -0
- package/all/copy-overwrite/scripts/lisa-work-item.mjs +16 -15
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +14 -4
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +38 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +28 -21
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-github-evidence/SKILL.md +7 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +10 -7
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-evidence/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
- package/plugins/lisa/skills/lisa-github-evidence/SKILL.md +7 -3
- package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +10 -7
- package/plugins/lisa/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa/skills/lisa-jira-journey/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa/skills/lisa-linear-evidence/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-github-evidence/SKILL.md +7 -3
- package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +10 -7
- package/plugins/lisa-agy/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-agy/skills/lisa-jira-journey/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-agy/skills/lisa-linear-evidence/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/skills/lisa-github-evidence/SKILL.md +7 -3
- package/plugins/lisa-copilot/skills/lisa-jira-evidence/SKILL.md +10 -7
- package/plugins/lisa-copilot/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-copilot/skills/lisa-jira-journey/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-copilot/skills/lisa-linear-evidence/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-github-evidence/SKILL.md +7 -3
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +10 -7
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-cursor/skills/lisa-jira-journey/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-cursor/skills/lisa-linear-evidence/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/skills/lisa-github-evidence/SKILL.md +7 -3
- package/plugins/lisa-devin/skills/lisa-jira-evidence/SKILL.md +10 -7
- package/plugins/lisa-devin/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-devin/skills/lisa-jira-journey/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-devin/skills/lisa-linear-evidence/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/SKILL.md +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-expo/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-expo/skills/jira-journey/SKILL.md +1 -1
- package/plugins/lisa-expo/skills/jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-expo-agy/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-expo-agy/skills/jira-journey/SKILL.md +1 -1
- package/plugins/lisa-expo-agy/skills/jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-expo-copilot/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-expo-copilot/skills/jira-journey/SKILL.md +1 -1
- package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-expo-cursor/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-expo-cursor/skills/jira-journey/SKILL.md +1 -1
- package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-expo-devin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-expo-devin/skills/jira-journey/SKILL.md +1 -1
- package/plugins/lisa-expo-devin/skills/jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-rails/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-rails-agy/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-rails-copilot/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-rails-cursor/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-rails-devin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/skills/lisa-github-evidence/SKILL.md +7 -3
- package/plugins/src/base/skills/lisa-jira-evidence/SKILL.md +10 -7
- package/plugins/src/base/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/src/base/skills/lisa-jira-journey/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/src/base/skills/lisa-linear-evidence/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
- package/plugins/src/expo/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/src/expo/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/src/expo/skills/jira-journey/SKILL.md +1 -1
- package/plugins/src/expo/skills/jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/src/rails/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/src/rails/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/scripts/two-channel-couplings.json +1 -1
- package/typescript/copy-overwrite/.prettierignore +1 -0
|
@@ -35,7 +35,7 @@ Upload captured evidence and generated templates to GitHub PR description and JI
|
|
|
35
35
|
|
|
36
36
|
## Usage
|
|
37
37
|
|
|
38
|
-
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example,
|
|
38
|
+
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example, a pinned release is full, every overflow release is full, the release name is too long to roll over, or the publisher cannot create releases), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
|
|
39
39
|
|
|
40
40
|
If you came here from jira-journey, `generate-templates.py` already wrote the links: skip the block below and reuse the release name jira-journey printed in its Step 4, because resolving again can pick a different month's release.
|
|
41
41
|
|
|
@@ -56,7 +56,7 @@ LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evid
|
|
|
56
56
|
LISA_EVIDENCE_RELEASE=pr-assets bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full.
|
|
59
|
+
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full. A pinned release is an exact choice and never rolls over; without a pin, a nearly full release rolls over to its next overflow release (`<release>-2`, `-3`, …).
|
|
60
60
|
|
|
61
61
|
## What It Does
|
|
62
62
|
|
|
@@ -84,9 +84,15 @@ check it is not at GitHub's 1000-file limit, with:
|
|
|
84
84
|
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
A nearly full release rolls over to the next overflow release (`<release>-2`,
|
|
88
|
+
`-3`, …), which it prints. It refuses only when a pinned `LISA_EVIDENCE_RELEASE`
|
|
89
|
+
is full (unset it, or pin a release with room), every overflow release of the
|
|
90
|
+
period is full (prune old evidence with
|
|
91
|
+
`node scripts/lisa-evidence-prune.mjs --release <release>`, or, if the release
|
|
92
|
+
does not rotate yet, set `verification.completion.evidenceRelease` in
|
|
93
|
+
`.lisa.config.json` to a rotating name such as `pr-assets-{YYYY-MM}`), or the
|
|
94
|
+
release name is too long to take an overflow suffix (shorten it); older evidence
|
|
95
|
+
keeps validating.
|
|
90
96
|
|
|
91
97
|
### JIRA comment shows `!filename.png!` as text (not image)
|
|
92
98
|
|
|
@@ -121,8 +121,13 @@ GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
|
121
121
|
# `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
|
|
122
122
|
# assets; a hardcoded `pr-assets` filled up and every upload then failed with a
|
|
123
123
|
# raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
|
|
124
|
-
# is absent and
|
|
125
|
-
#
|
|
124
|
+
# is absent and, when it is nearly full, rolls over to the next overflow
|
|
125
|
+
# release (`<release>-2`, `-3`, …) and prints that one (CodySwannGT/lisa#4838).
|
|
126
|
+
# It refuses, in plain words, only when a pinned release is full, every
|
|
127
|
+
# overflow release is full, the release name is too long to take an overflow
|
|
128
|
+
# suffix, or the release cannot be created. generate-templates.py asks the same `--ensure`, so its links
|
|
129
|
+
# name the release uploaded here. A host whose Lisa predates the resolver keeps
|
|
130
|
+
# the legacy release.
|
|
126
131
|
#
|
|
127
132
|
# LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
|
|
128
133
|
# generate-templates.py wrote match these uploads. The resolver still checks
|
|
@@ -234,7 +239,21 @@ echo " ✓ GitHub release assets uploaded"
|
|
|
234
239
|
# release URL as plain text, and that must not fail the run.
|
|
235
240
|
THIS_RUN_ASSETS=$(printf '%s\n' "${UPLOADED_ASSETS[@]}")
|
|
236
241
|
BAD_LINKS=0
|
|
242
|
+
RELEASE_PREFIX="github.com/${GH_REPO}/releases/download/"
|
|
237
243
|
while IFS= read -r LINK; do
|
|
244
|
+
# A link into a different release of this repository means the templates
|
|
245
|
+
# were generated against one release and this run uploaded to another (a
|
|
246
|
+
# roll-over to `<release>-2` in between, CodySwannGT/lisa#4838): the link
|
|
247
|
+
# would 404, so refuse it instead of posting it.
|
|
248
|
+
if [[ "$LINK" == *"$RELEASE_PREFIX"* ]]; then
|
|
249
|
+
LINK_TAG="${LINK#*"$RELEASE_PREFIX"}"
|
|
250
|
+
LINK_TAG="${LINK_TAG%%/*}"
|
|
251
|
+
if [[ "$LINK_TAG" != "$RELEASE_TAG" ]]; then
|
|
252
|
+
echo "ERROR: $COMMENT_MD links $LINK in release '$LINK_TAG', but this run uploaded to release '$RELEASE_TAG'. Regenerate the templates with LISA_EVIDENCE_RELEASE=$RELEASE_TAG and re-run this script with the same LISA_EVIDENCE_RELEASE=$RELEASE_TAG." >&2
|
|
253
|
+
BAD_LINKS=1
|
|
254
|
+
continue
|
|
255
|
+
fi
|
|
256
|
+
fi
|
|
238
257
|
[[ "$LINK" == *"releases/download/${RELEASE_TAG}/"* ]] || continue
|
|
239
258
|
LINK_NAME="${LINK##*/}"
|
|
240
259
|
if [[ "$LINK_NAME" != "pr-${PR_NUMBER}-"* ]]; then
|
|
@@ -33,7 +33,7 @@ Upload captured evidence and generated templates to GitHub PR description and JI
|
|
|
33
33
|
|
|
34
34
|
## Usage
|
|
35
35
|
|
|
36
|
-
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example,
|
|
36
|
+
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example, a pinned release is full, every overflow release is full, the release name is too long to roll over, or the publisher cannot create releases), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
|
|
37
37
|
|
|
38
38
|
If you came here from jira-journey, `generate-templates.py` already wrote the links: skip the block below and reuse the release name jira-journey printed in its Step 4, because resolving again can pick a different month's release.
|
|
39
39
|
|
|
@@ -54,7 +54,7 @@ LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evid
|
|
|
54
54
|
LISA_EVIDENCE_RELEASE=pr-assets bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full.
|
|
57
|
+
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full. A pinned release is an exact choice and never rolls over; without a pin, a nearly full release rolls over to its next overflow release (`<release>-2`, `-3`, …).
|
|
58
58
|
|
|
59
59
|
## What It Does
|
|
60
60
|
|
|
@@ -82,9 +82,15 @@ check it is not at GitHub's 1000-file limit, with:
|
|
|
82
82
|
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
A nearly full release rolls over to the next overflow release (`<release>-2`,
|
|
86
|
+
`-3`, …), which it prints. It refuses only when a pinned `LISA_EVIDENCE_RELEASE`
|
|
87
|
+
is full (unset it, or pin a release with room), every overflow release of the
|
|
88
|
+
period is full (prune old evidence with
|
|
89
|
+
`node scripts/lisa-evidence-prune.mjs --release <release>`, or, if the release
|
|
90
|
+
does not rotate yet, set `verification.completion.evidenceRelease` in
|
|
91
|
+
`.lisa.config.json` to a rotating name such as `pr-assets-{YYYY-MM}`), or the
|
|
92
|
+
release name is too long to take an overflow suffix (shorten it); older evidence
|
|
93
|
+
keeps validating.
|
|
88
94
|
|
|
89
95
|
### JIRA comment shows `!filename.png!` as text (not image)
|
|
90
96
|
|
|
@@ -121,8 +121,13 @@ GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
|
121
121
|
# `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
|
|
122
122
|
# assets; a hardcoded `pr-assets` filled up and every upload then failed with a
|
|
123
123
|
# raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
|
|
124
|
-
# is absent and
|
|
125
|
-
#
|
|
124
|
+
# is absent and, when it is nearly full, rolls over to the next overflow
|
|
125
|
+
# release (`<release>-2`, `-3`, …) and prints that one (CodySwannGT/lisa#4838).
|
|
126
|
+
# It refuses, in plain words, only when a pinned release is full, every
|
|
127
|
+
# overflow release is full, the release name is too long to take an overflow
|
|
128
|
+
# suffix, or the release cannot be created. generate-templates.py asks the same `--ensure`, so its links
|
|
129
|
+
# name the release uploaded here. A host whose Lisa predates the resolver keeps
|
|
130
|
+
# the legacy release.
|
|
126
131
|
#
|
|
127
132
|
# LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
|
|
128
133
|
# generate-templates.py wrote match these uploads. The resolver still checks
|
|
@@ -234,7 +239,21 @@ echo " ✓ GitHub release assets uploaded"
|
|
|
234
239
|
# release URL as plain text, and that must not fail the run.
|
|
235
240
|
THIS_RUN_ASSETS=$(printf '%s\n' "${UPLOADED_ASSETS[@]}")
|
|
236
241
|
BAD_LINKS=0
|
|
242
|
+
RELEASE_PREFIX="github.com/${GH_REPO}/releases/download/"
|
|
237
243
|
while IFS= read -r LINK; do
|
|
244
|
+
# A link into a different release of this repository means the templates
|
|
245
|
+
# were generated against one release and this run uploaded to another (a
|
|
246
|
+
# roll-over to `<release>-2` in between, CodySwannGT/lisa#4838): the link
|
|
247
|
+
# would 404, so refuse it instead of posting it.
|
|
248
|
+
if [[ "$LINK" == *"$RELEASE_PREFIX"* ]]; then
|
|
249
|
+
LINK_TAG="${LINK#*"$RELEASE_PREFIX"}"
|
|
250
|
+
LINK_TAG="${LINK_TAG%%/*}"
|
|
251
|
+
if [[ "$LINK_TAG" != "$RELEASE_TAG" ]]; then
|
|
252
|
+
echo "ERROR: $COMMENT_MD links $LINK in release '$LINK_TAG', but this run uploaded to release '$RELEASE_TAG'. Regenerate the templates with LISA_EVIDENCE_RELEASE=$RELEASE_TAG and re-run this script with the same LISA_EVIDENCE_RELEASE=$RELEASE_TAG." >&2
|
|
253
|
+
BAD_LINKS=1
|
|
254
|
+
continue
|
|
255
|
+
fi
|
|
256
|
+
fi
|
|
238
257
|
[[ "$LINK" == *"releases/download/${RELEASE_TAG}/"* ]] || continue
|
|
239
258
|
LINK_NAME="${LINK##*/}"
|
|
240
259
|
if [[ "$LINK_NAME" != "pr-${PR_NUMBER}-"* ]]; then
|
|
@@ -33,7 +33,7 @@ Upload captured evidence and generated templates to GitHub PR description and JI
|
|
|
33
33
|
|
|
34
34
|
## Usage
|
|
35
35
|
|
|
36
|
-
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example,
|
|
36
|
+
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example, a pinned release is full, every overflow release is full, the release name is too long to roll over, or the publisher cannot create releases), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
|
|
37
37
|
|
|
38
38
|
If you came here from jira-journey, `generate-templates.py` already wrote the links: skip the block below and reuse the release name jira-journey printed in its Step 4, because resolving again can pick a different month's release.
|
|
39
39
|
|
|
@@ -54,7 +54,7 @@ LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evid
|
|
|
54
54
|
LISA_EVIDENCE_RELEASE=pr-assets bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full.
|
|
57
|
+
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full. A pinned release is an exact choice and never rolls over; without a pin, a nearly full release rolls over to its next overflow release (`<release>-2`, `-3`, …).
|
|
58
58
|
|
|
59
59
|
## What It Does
|
|
60
60
|
|
|
@@ -82,9 +82,15 @@ check it is not at GitHub's 1000-file limit, with:
|
|
|
82
82
|
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
A nearly full release rolls over to the next overflow release (`<release>-2`,
|
|
86
|
+
`-3`, …), which it prints. It refuses only when a pinned `LISA_EVIDENCE_RELEASE`
|
|
87
|
+
is full (unset it, or pin a release with room), every overflow release of the
|
|
88
|
+
period is full (prune old evidence with
|
|
89
|
+
`node scripts/lisa-evidence-prune.mjs --release <release>`, or, if the release
|
|
90
|
+
does not rotate yet, set `verification.completion.evidenceRelease` in
|
|
91
|
+
`.lisa.config.json` to a rotating name such as `pr-assets-{YYYY-MM}`), or the
|
|
92
|
+
release name is too long to take an overflow suffix (shorten it); older evidence
|
|
93
|
+
keeps validating.
|
|
88
94
|
|
|
89
95
|
### JIRA comment shows `!filename.png!` as text (not image)
|
|
90
96
|
|
|
@@ -121,8 +121,13 @@ GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
|
121
121
|
# `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
|
|
122
122
|
# assets; a hardcoded `pr-assets` filled up and every upload then failed with a
|
|
123
123
|
# raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
|
|
124
|
-
# is absent and
|
|
125
|
-
#
|
|
124
|
+
# is absent and, when it is nearly full, rolls over to the next overflow
|
|
125
|
+
# release (`<release>-2`, `-3`, …) and prints that one (CodySwannGT/lisa#4838).
|
|
126
|
+
# It refuses, in plain words, only when a pinned release is full, every
|
|
127
|
+
# overflow release is full, the release name is too long to take an overflow
|
|
128
|
+
# suffix, or the release cannot be created. generate-templates.py asks the same `--ensure`, so its links
|
|
129
|
+
# name the release uploaded here. A host whose Lisa predates the resolver keeps
|
|
130
|
+
# the legacy release.
|
|
126
131
|
#
|
|
127
132
|
# LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
|
|
128
133
|
# generate-templates.py wrote match these uploads. The resolver still checks
|
|
@@ -234,7 +239,21 @@ echo " ✓ GitHub release assets uploaded"
|
|
|
234
239
|
# release URL as plain text, and that must not fail the run.
|
|
235
240
|
THIS_RUN_ASSETS=$(printf '%s\n' "${UPLOADED_ASSETS[@]}")
|
|
236
241
|
BAD_LINKS=0
|
|
242
|
+
RELEASE_PREFIX="github.com/${GH_REPO}/releases/download/"
|
|
237
243
|
while IFS= read -r LINK; do
|
|
244
|
+
# A link into a different release of this repository means the templates
|
|
245
|
+
# were generated against one release and this run uploaded to another (a
|
|
246
|
+
# roll-over to `<release>-2` in between, CodySwannGT/lisa#4838): the link
|
|
247
|
+
# would 404, so refuse it instead of posting it.
|
|
248
|
+
if [[ "$LINK" == *"$RELEASE_PREFIX"* ]]; then
|
|
249
|
+
LINK_TAG="${LINK#*"$RELEASE_PREFIX"}"
|
|
250
|
+
LINK_TAG="${LINK_TAG%%/*}"
|
|
251
|
+
if [[ "$LINK_TAG" != "$RELEASE_TAG" ]]; then
|
|
252
|
+
echo "ERROR: $COMMENT_MD links $LINK in release '$LINK_TAG', but this run uploaded to release '$RELEASE_TAG'. Regenerate the templates with LISA_EVIDENCE_RELEASE=$RELEASE_TAG and re-run this script with the same LISA_EVIDENCE_RELEASE=$RELEASE_TAG." >&2
|
|
253
|
+
BAD_LINKS=1
|
|
254
|
+
continue
|
|
255
|
+
fi
|
|
256
|
+
fi
|
|
238
257
|
[[ "$LINK" == *"releases/download/${RELEASE_TAG}/"* ]] || continue
|
|
239
258
|
LINK_NAME="${LINK##*/}"
|
|
240
259
|
if [[ "$LINK_NAME" != "pr-${PR_NUMBER}-"* ]]; then
|
|
@@ -33,7 +33,7 @@ Upload captured evidence and generated templates to GitHub PR description and JI
|
|
|
33
33
|
|
|
34
34
|
## Usage
|
|
35
35
|
|
|
36
|
-
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example,
|
|
36
|
+
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example, a pinned release is full, every overflow release is full, the release name is too long to roll over, or the publisher cannot create releases), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
|
|
37
37
|
|
|
38
38
|
If you came here from jira-journey, `generate-templates.py` already wrote the links: skip the block below and reuse the release name jira-journey printed in its Step 4, because resolving again can pick a different month's release.
|
|
39
39
|
|
|
@@ -54,7 +54,7 @@ LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evid
|
|
|
54
54
|
LISA_EVIDENCE_RELEASE=pr-assets bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full.
|
|
57
|
+
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full. A pinned release is an exact choice and never rolls over; without a pin, a nearly full release rolls over to its next overflow release (`<release>-2`, `-3`, …).
|
|
58
58
|
|
|
59
59
|
## What It Does
|
|
60
60
|
|
|
@@ -82,9 +82,15 @@ check it is not at GitHub's 1000-file limit, with:
|
|
|
82
82
|
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
A nearly full release rolls over to the next overflow release (`<release>-2`,
|
|
86
|
+
`-3`, …), which it prints. It refuses only when a pinned `LISA_EVIDENCE_RELEASE`
|
|
87
|
+
is full (unset it, or pin a release with room), every overflow release of the
|
|
88
|
+
period is full (prune old evidence with
|
|
89
|
+
`node scripts/lisa-evidence-prune.mjs --release <release>`, or, if the release
|
|
90
|
+
does not rotate yet, set `verification.completion.evidenceRelease` in
|
|
91
|
+
`.lisa.config.json` to a rotating name such as `pr-assets-{YYYY-MM}`), or the
|
|
92
|
+
release name is too long to take an overflow suffix (shorten it); older evidence
|
|
93
|
+
keeps validating.
|
|
88
94
|
|
|
89
95
|
### JIRA comment shows `!filename.png!` as text (not image)
|
|
90
96
|
|
|
@@ -121,8 +121,13 @@ GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
|
121
121
|
# `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
|
|
122
122
|
# assets; a hardcoded `pr-assets` filled up and every upload then failed with a
|
|
123
123
|
# raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
|
|
124
|
-
# is absent and
|
|
125
|
-
#
|
|
124
|
+
# is absent and, when it is nearly full, rolls over to the next overflow
|
|
125
|
+
# release (`<release>-2`, `-3`, …) and prints that one (CodySwannGT/lisa#4838).
|
|
126
|
+
# It refuses, in plain words, only when a pinned release is full, every
|
|
127
|
+
# overflow release is full, the release name is too long to take an overflow
|
|
128
|
+
# suffix, or the release cannot be created. generate-templates.py asks the same `--ensure`, so its links
|
|
129
|
+
# name the release uploaded here. A host whose Lisa predates the resolver keeps
|
|
130
|
+
# the legacy release.
|
|
126
131
|
#
|
|
127
132
|
# LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
|
|
128
133
|
# generate-templates.py wrote match these uploads. The resolver still checks
|
|
@@ -234,7 +239,21 @@ echo " ✓ GitHub release assets uploaded"
|
|
|
234
239
|
# release URL as plain text, and that must not fail the run.
|
|
235
240
|
THIS_RUN_ASSETS=$(printf '%s\n' "${UPLOADED_ASSETS[@]}")
|
|
236
241
|
BAD_LINKS=0
|
|
242
|
+
RELEASE_PREFIX="github.com/${GH_REPO}/releases/download/"
|
|
237
243
|
while IFS= read -r LINK; do
|
|
244
|
+
# A link into a different release of this repository means the templates
|
|
245
|
+
# were generated against one release and this run uploaded to another (a
|
|
246
|
+
# roll-over to `<release>-2` in between, CodySwannGT/lisa#4838): the link
|
|
247
|
+
# would 404, so refuse it instead of posting it.
|
|
248
|
+
if [[ "$LINK" == *"$RELEASE_PREFIX"* ]]; then
|
|
249
|
+
LINK_TAG="${LINK#*"$RELEASE_PREFIX"}"
|
|
250
|
+
LINK_TAG="${LINK_TAG%%/*}"
|
|
251
|
+
if [[ "$LINK_TAG" != "$RELEASE_TAG" ]]; then
|
|
252
|
+
echo "ERROR: $COMMENT_MD links $LINK in release '$LINK_TAG', but this run uploaded to release '$RELEASE_TAG'. Regenerate the templates with LISA_EVIDENCE_RELEASE=$RELEASE_TAG and re-run this script with the same LISA_EVIDENCE_RELEASE=$RELEASE_TAG." >&2
|
|
253
|
+
BAD_LINKS=1
|
|
254
|
+
continue
|
|
255
|
+
fi
|
|
256
|
+
fi
|
|
238
257
|
[[ "$LINK" == *"releases/download/${RELEASE_TAG}/"* ]] || continue
|
|
239
258
|
LINK_NAME="${LINK##*/}"
|
|
240
259
|
if [[ "$LINK_NAME" != "pr-${PR_NUMBER}-"* ]]; then
|
|
@@ -33,7 +33,7 @@ Upload captured evidence and generated templates to GitHub PR description and JI
|
|
|
33
33
|
|
|
34
34
|
## Usage
|
|
35
35
|
|
|
36
|
-
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example,
|
|
36
|
+
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example, a pinned release is full, every overflow release is full, the release name is too long to roll over, or the publisher cannot create releases), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
|
|
37
37
|
|
|
38
38
|
If you came here from jira-journey, `generate-templates.py` already wrote the links: skip the block below and reuse the release name jira-journey printed in its Step 4, because resolving again can pick a different month's release.
|
|
39
39
|
|
|
@@ -54,7 +54,7 @@ LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evid
|
|
|
54
54
|
LISA_EVIDENCE_RELEASE=pr-assets bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full.
|
|
57
|
+
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full. A pinned release is an exact choice and never rolls over; without a pin, a nearly full release rolls over to its next overflow release (`<release>-2`, `-3`, …).
|
|
58
58
|
|
|
59
59
|
## What It Does
|
|
60
60
|
|
|
@@ -82,9 +82,15 @@ check it is not at GitHub's 1000-file limit, with:
|
|
|
82
82
|
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
A nearly full release rolls over to the next overflow release (`<release>-2`,
|
|
86
|
+
`-3`, …), which it prints. It refuses only when a pinned `LISA_EVIDENCE_RELEASE`
|
|
87
|
+
is full (unset it, or pin a release with room), every overflow release of the
|
|
88
|
+
period is full (prune old evidence with
|
|
89
|
+
`node scripts/lisa-evidence-prune.mjs --release <release>`, or, if the release
|
|
90
|
+
does not rotate yet, set `verification.completion.evidenceRelease` in
|
|
91
|
+
`.lisa.config.json` to a rotating name such as `pr-assets-{YYYY-MM}`), or the
|
|
92
|
+
release name is too long to take an overflow suffix (shorten it); older evidence
|
|
93
|
+
keeps validating.
|
|
88
94
|
|
|
89
95
|
### JIRA comment shows `!filename.png!` as text (not image)
|
|
90
96
|
|
|
@@ -121,8 +121,13 @@ GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
|
121
121
|
# `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
|
|
122
122
|
# assets; a hardcoded `pr-assets` filled up and every upload then failed with a
|
|
123
123
|
# raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
|
|
124
|
-
# is absent and
|
|
125
|
-
#
|
|
124
|
+
# is absent and, when it is nearly full, rolls over to the next overflow
|
|
125
|
+
# release (`<release>-2`, `-3`, …) and prints that one (CodySwannGT/lisa#4838).
|
|
126
|
+
# It refuses, in plain words, only when a pinned release is full, every
|
|
127
|
+
# overflow release is full, the release name is too long to take an overflow
|
|
128
|
+
# suffix, or the release cannot be created. generate-templates.py asks the same `--ensure`, so its links
|
|
129
|
+
# name the release uploaded here. A host whose Lisa predates the resolver keeps
|
|
130
|
+
# the legacy release.
|
|
126
131
|
#
|
|
127
132
|
# LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
|
|
128
133
|
# generate-templates.py wrote match these uploads. The resolver still checks
|
|
@@ -234,7 +239,21 @@ echo " ✓ GitHub release assets uploaded"
|
|
|
234
239
|
# release URL as plain text, and that must not fail the run.
|
|
235
240
|
THIS_RUN_ASSETS=$(printf '%s\n' "${UPLOADED_ASSETS[@]}")
|
|
236
241
|
BAD_LINKS=0
|
|
242
|
+
RELEASE_PREFIX="github.com/${GH_REPO}/releases/download/"
|
|
237
243
|
while IFS= read -r LINK; do
|
|
244
|
+
# A link into a different release of this repository means the templates
|
|
245
|
+
# were generated against one release and this run uploaded to another (a
|
|
246
|
+
# roll-over to `<release>-2` in between, CodySwannGT/lisa#4838): the link
|
|
247
|
+
# would 404, so refuse it instead of posting it.
|
|
248
|
+
if [[ "$LINK" == *"$RELEASE_PREFIX"* ]]; then
|
|
249
|
+
LINK_TAG="${LINK#*"$RELEASE_PREFIX"}"
|
|
250
|
+
LINK_TAG="${LINK_TAG%%/*}"
|
|
251
|
+
if [[ "$LINK_TAG" != "$RELEASE_TAG" ]]; then
|
|
252
|
+
echo "ERROR: $COMMENT_MD links $LINK in release '$LINK_TAG', but this run uploaded to release '$RELEASE_TAG'. Regenerate the templates with LISA_EVIDENCE_RELEASE=$RELEASE_TAG and re-run this script with the same LISA_EVIDENCE_RELEASE=$RELEASE_TAG." >&2
|
|
253
|
+
BAD_LINKS=1
|
|
254
|
+
continue
|
|
255
|
+
fi
|
|
256
|
+
fi
|
|
238
257
|
[[ "$LINK" == *"releases/download/${RELEASE_TAG}/"* ]] || continue
|
|
239
258
|
LINK_NAME="${LINK##*/}"
|
|
240
259
|
if [[ "$LINK_NAME" != "pr-${PR_NUMBER}-"* ]]; then
|
|
@@ -33,7 +33,7 @@ Upload captured evidence and generated templates to GitHub PR description and JI
|
|
|
33
33
|
|
|
34
34
|
## Usage
|
|
35
35
|
|
|
36
|
-
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example,
|
|
36
|
+
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example, a pinned release is full, every overflow release is full, the release name is too long to roll over, or the publisher cannot create releases), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
|
|
37
37
|
|
|
38
38
|
If you came here from jira-journey, `generate-templates.py` already wrote the links: skip the block below and reuse the release name jira-journey printed in its Step 4, because resolving again can pick a different month's release.
|
|
39
39
|
|
|
@@ -54,7 +54,7 @@ LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evid
|
|
|
54
54
|
LISA_EVIDENCE_RELEASE=pr-assets bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full.
|
|
57
|
+
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full. A pinned release is an exact choice and never rolls over; without a pin, a nearly full release rolls over to its next overflow release (`<release>-2`, `-3`, …).
|
|
58
58
|
|
|
59
59
|
## What It Does
|
|
60
60
|
|
|
@@ -82,9 +82,15 @@ check it is not at GitHub's 1000-file limit, with:
|
|
|
82
82
|
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
A nearly full release rolls over to the next overflow release (`<release>-2`,
|
|
86
|
+
`-3`, …), which it prints. It refuses only when a pinned `LISA_EVIDENCE_RELEASE`
|
|
87
|
+
is full (unset it, or pin a release with room), every overflow release of the
|
|
88
|
+
period is full (prune old evidence with
|
|
89
|
+
`node scripts/lisa-evidence-prune.mjs --release <release>`, or, if the release
|
|
90
|
+
does not rotate yet, set `verification.completion.evidenceRelease` in
|
|
91
|
+
`.lisa.config.json` to a rotating name such as `pr-assets-{YYYY-MM}`), or the
|
|
92
|
+
release name is too long to take an overflow suffix (shorten it); older evidence
|
|
93
|
+
keeps validating.
|
|
88
94
|
|
|
89
95
|
### JIRA comment shows `!filename.png!` as text (not image)
|
|
90
96
|
|
|
@@ -121,8 +121,13 @@ GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
|
121
121
|
# `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
|
|
122
122
|
# assets; a hardcoded `pr-assets` filled up and every upload then failed with a
|
|
123
123
|
# raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
|
|
124
|
-
# is absent and
|
|
125
|
-
#
|
|
124
|
+
# is absent and, when it is nearly full, rolls over to the next overflow
|
|
125
|
+
# release (`<release>-2`, `-3`, …) and prints that one (CodySwannGT/lisa#4838).
|
|
126
|
+
# It refuses, in plain words, only when a pinned release is full, every
|
|
127
|
+
# overflow release is full, the release name is too long to take an overflow
|
|
128
|
+
# suffix, or the release cannot be created. generate-templates.py asks the same `--ensure`, so its links
|
|
129
|
+
# name the release uploaded here. A host whose Lisa predates the resolver keeps
|
|
130
|
+
# the legacy release.
|
|
126
131
|
#
|
|
127
132
|
# LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
|
|
128
133
|
# generate-templates.py wrote match these uploads. The resolver still checks
|
|
@@ -234,7 +239,21 @@ echo " ✓ GitHub release assets uploaded"
|
|
|
234
239
|
# release URL as plain text, and that must not fail the run.
|
|
235
240
|
THIS_RUN_ASSETS=$(printf '%s\n' "${UPLOADED_ASSETS[@]}")
|
|
236
241
|
BAD_LINKS=0
|
|
242
|
+
RELEASE_PREFIX="github.com/${GH_REPO}/releases/download/"
|
|
237
243
|
while IFS= read -r LINK; do
|
|
244
|
+
# A link into a different release of this repository means the templates
|
|
245
|
+
# were generated against one release and this run uploaded to another (a
|
|
246
|
+
# roll-over to `<release>-2` in between, CodySwannGT/lisa#4838): the link
|
|
247
|
+
# would 404, so refuse it instead of posting it.
|
|
248
|
+
if [[ "$LINK" == *"$RELEASE_PREFIX"* ]]; then
|
|
249
|
+
LINK_TAG="${LINK#*"$RELEASE_PREFIX"}"
|
|
250
|
+
LINK_TAG="${LINK_TAG%%/*}"
|
|
251
|
+
if [[ "$LINK_TAG" != "$RELEASE_TAG" ]]; then
|
|
252
|
+
echo "ERROR: $COMMENT_MD links $LINK in release '$LINK_TAG', but this run uploaded to release '$RELEASE_TAG'. Regenerate the templates with LISA_EVIDENCE_RELEASE=$RELEASE_TAG and re-run this script with the same LISA_EVIDENCE_RELEASE=$RELEASE_TAG." >&2
|
|
253
|
+
BAD_LINKS=1
|
|
254
|
+
continue
|
|
255
|
+
fi
|
|
256
|
+
fi
|
|
238
257
|
[[ "$LINK" == *"releases/download/${RELEASE_TAG}/"* ]] || continue
|
|
239
258
|
LINK_NAME="${LINK##*/}"
|
|
240
259
|
if [[ "$LINK_NAME" != "pr-${PR_NUMBER}-"* ]]; then
|