Conversation
|
|
1 similar comment
|
|
|
@claude what do you suggest? Would "let the agent create the branch fresh" be better working solution? |
|
Claude finished @mshabarov's task in 1m 35s —— View job Recommendation on the zero-match fetch fixI read the source and the generated lock file. Short version: I'd go with the tolerant fetch ( Why the fetch exists (it's not just decoration)
That branch is what powers the Why "create the branch fresh" is the weaker option
The safe-output job fetches (Also worth noting: because that step is in both jobs, the zero-match crash isn't specific to updates — even a first-time The catch with
|
…din#25701) Fixes vaadin#25698 Related to vaadin#25699 **build failure** · `.github/workflows` · the Documentation Bot on every merge into `main` **Background — agentic workflows.** The Documentation Bot is written as a GitHub Agentic Workflow: a Markdown file holds its configuration and its prompt, and the `gh aw compile` command turns that file into the `.lock.yml` workflow GitHub runs. The lock file is generated, so a fix belongs in the Markdown source and the lock file is regenerated from it. Every Documentation Bot run since 3 September has failed: the run stops in the step that fetches extra branches from the documentation repository, before the agent starts, and prints nothing that explains why. No documentation pull request is opened for a merged change, and a re-run fails the same way. **Risks:** - ✅ Nothing to flag — no API, behavior, security, serialization, threading, memory or migration impact. The change adds one matching refspec to a fetch that already runs, in a workflow file. **Context.** The fetch list held only `doc-bot/*`, the branch of an already open documentation pull request, which the bot commits onto so that a re-run updates that pull request instead of opening a second one. The list compiles into a single `git fetch --depth=1`, and a shallow fetch whose refspecs all match nothing exits 1 in silence — which is what happens whenever no documentation pull request is open, so almost always. - Added `main` next to `doc-bot/*` in the `fetch:` list of the `vaadin/docs` checkout, so one refspec always matches and the step succeeds whether or not a documentation pull request is open. - The step is generated into both the agent job and the safe-output job, so the failure hit the first documentation pull request for a change as well as an update to an existing one. - `main` costs nothing to fetch: it is the ref the checkout already pulls. - Kept `doc-bot/*` in the list, so a re-run still updates an open documentation pull request instead of opening a second one. - Explained in the comment above the checkout why `main` is listed, so it is not dropped later as redundant. - Regenerated `doc-bot.lock.yml` with `gh aw compile` v0.86.2, the version that generated the current lock file.
Investigation only — no code changes. The Documentation Bot run on PR #25681 failed and did not open a PR in
vaadin/docs.Findings
agent, step 6Fetch additional refs for vaadin/docs— exits 1 in ~300 ms, before the Claude agent starts. All subsequent steps skipped.git fetch origin --depth=1 '+refs/heads/doc-bot/*:refs/remotes/origin/doc-bot/*'againstvaadin/docs.vaadin/docshas nodoc-bot/*branches — verified across all ~200 branches). git 2.55 on the runner treats a zero-match wildcard fetch as an error. Stderr is scrubbed becauseVAADIN_BOT_TOKENis passed viahttp.extraheader, which is why the log looks empty.vaadin/docs: none. No PR referencesvaadin/flow#25681; nodoc-bot/*branch was pushed.Why no fix in this branch
.github/workflows/doc-bot.md:100(fetch: ['doc-bot/*']), compiled bygh-awintodoc-bot.lock.yml. The lock file is generated; hand-editing it would be overwritten on the next compile.bbf4fb4). Bundling a workflow change here would violate minimal-scope conventions and needs sign-off from the doc-bot workflow owners.Suggested follow-up (separate PR against
doc-bot.md)Make the fetch tolerate a zero-match wildcard, e.g.:
or drop the pre-fetch entirely and let the agent create the branch fresh — the prior
actions/checkoutofmainis sufficient for the doc-bot to branch from.