Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

ci(release): polish monitor-publish issue creation and pin alignment (#3679)

LearningCircuitee394a24f633
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 2b3f08cc07..a2b3b665f0 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -477,7 +477,7 @@ jobs:
steps:
- name: Harden the runner (Audit all outbound calls)
- uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
+ uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0
with:
egress-policy: audit
@@ -558,14 +558,45 @@ jobs:
RELEASE_TAG: ${{ needs.build.outputs.tag }}
with:
script: |
+ const { owner, repo } = context.repo;
const tag = process.env.RELEASE_TAG;
const docker = process.env.docker_result || 'unknown';
const pypi = process.env.pypi_result || 'unknown';
-
- await github.rest.issues.create({
- owner: context.repo.owner,
- repo: context.repo.repo,
- title: `Partial publish failure for ${tag}`,
- body: `## Publish Status for ${tag}\n\n| Target | Result |\n|--------|--------|\n| Docker | ${docker} |\n| PyPI | ${pypi} |\n\nPlease investigate and re-trigger the failed publish workflow(s).`,
- labels: ['ci-cd']
+ const title = `Partial publish failure for ${tag}`;
+
+ const failed = [
+ { name: 'Docker', result: docker },
+ { name: 'PyPI', result: pypi },
+ ].filter(t => t.result !== 'success');
+ const hasTimeout = failed.some(t => t.result === 'timed_out');
+ const hasFailure = failed.some(t => t.result === 'failure');
+
+ let action;
+ if (hasTimeout && !hasFailure) {
+ action = '**Suggested action:** One or more workflows did not complete within 40 minutes. Check the [Actions tab](https://github.com/' + owner + '/' + repo + '/actions) — if a run never appeared, this likely indicates an infrastructure or dispatch issue and the publish can be re-triggered. If still running, no action may be needed.';
+ } else if (hasFailure && !hasTimeout) {
+ action = '**Suggested action:** Inspect the failed workflow logs in the [Actions tab](https://github.com/' + owner + '/' + repo + '/actions), fix the underlying cause, then re-trigger the publish via `repository_dispatch`.';
+ } else {
+ action = '**Suggested action:** Mixed results — investigate each non-success target individually in the [Actions tab](https://github.com/' + owner + '/' + repo + '/actions).';
+ }
+
+ const body = `## Publish Status for ${tag}\n\n| Target | Result |\n|--------|--------|\n| Docker | ${docker} |\n| PyPI | ${pypi} |\n\n${action}`;
+
+ // De-dup: if an open issue with the same title already exists
+ // (e.g. from a re-run of this workflow on the same tag), comment
+ // on it instead of opening a duplicate.
+ const existing = await github.paginate(github.rest.issues.listForRepo, {
+ owner, repo, state: 'open', labels: 'ci-cd', per_page: 100,
});
+ const match = existing.find(i => i.title === title && !i.pull_request);
+
+ if (match) {
+ await github.rest.issues.createComment({
+ owner, repo, issue_number: match.number,
+ body: `Re-detected on workflow run [${context.runId}](https://github.com/${owner}/${repo}/actions/runs/${context.runId}):\n\n${body}`,
+ });
+ } else {
+ await github.rest.issues.create({
+ owner, repo, title, body, labels: ['ci-cd'],
+ });
+ }