Skip to content

fix(ci): fix broken docs link and memoize az CLI calls - #2

Merged
tamirdresher merged 2 commits into
devfrom
fix/ci-broken-docs-link
Apr 1, 2026
Merged

fix(ci): fix broken docs link and memoize az CLI calls#2
tamirdresher merged 2 commits into
devfrom
fix/ci-broken-docs-link

Conversation

@tamirdresher

Copy link
Copy Markdown
Owner

Problem

Two CI failures on the \ eat/directive-capture-skill\ PR (run #23584240240):

1. Broken link in cli.md (line 608)

\docs/src/content/docs/reference/cli.md:608\ had a link to ../getting-started/index.md\ which doesn't exist. The correct directory is \get-started/\ (not \getting-started/).

2. Test timeout: \�alidateWorkItemType > is case-insensitive\

\ est/platform-adapter.test.ts:807\ timed out at 5000ms. Root cause: \getAvailableWorkItemTypes()\ calls \�xecFileSync('az', ...)\ with a 3s timeout. If \�z\ CLI is installed on the GitHub Actions runner, this could be slow enough that the 5th test in the describe block occasionally tips past the 5000ms vitest default timeout.

Fix

  • cli.md: Change ../getting-started/index.md\ → ../get-started/installation.md\
  • azure-devops.ts: Memoize \getAvailableWorkItemTypes()\ results per org/project. After the first call (which may invoke \�z), subsequent calls return instantly from cache — eliminating repeated 3s delays in tests.

Fixes CI failure on \ eat/directive-capture-skill\ PR.

tamirdresher and others added 2 commits March 26, 2026 20:51
- docs/src/content/docs/reference/cli.md: fix broken link on line 608
  that pointed to non-existent '../getting-started/index.md'; correct
  path is '../get-started/installation.md'
- packages/squad-sdk/src/platform/azure-devops.ts: memoize
  getAvailableWorkItemTypes() per org/project to prevent repeated az
  CLI calls (each taking up to 3 s) from causing test timeouts

Fixes CI failure on feat/directive-capture-skill PR

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fixes docs-quality CI failure: cspell flagged TELMU (squad persona name)
and Automator (word used in docs) as unknown words.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tamirdresher
tamirdresher merged commit 12fb4e3 into dev Apr 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant