Skip to content

fix: use dynamic blog discovery in docs-build test (#282)#283

Merged
bradygaster merged 2 commits intobradygaster:mainfrom
tamirdresher:fix/dynamic-blog-discovery
Mar 8, 2026
Merged

fix: use dynamic blog discovery in docs-build test (#282)#283
bradygaster merged 2 commits intobradygaster:mainfrom
tamirdresher:fix/dynamic-blog-discovery

Conversation

@tamirdresher
Copy link
Contributor

Summary

Replace hardcoded blog slug array in docs-build.test.ts with dynamic filesystem discovery. Adding, removing, or renaming blog posts no longer requires updating the test.

Problem

docs-build.test.ts hardcoded every blog post slug in an EXPECTED_BLOG array. Any blog change (add, remove, rename) required a manual test update, and forgetting to do so broke CI on all branches.

This caused failures when:

Fix

// Before (fragile):
const EXPECTED_BLOG = ['026-whats-new-...', '025-squad-goes-...', ...];

// After (resilient):
const EXPECTED_BLOG = readdirSync(BLOG_DIR)
  .filter(f => f.endsWith('.md'))
  .map(f => f.replace('.md', ''))
  .sort().reverse();

Testing

  • 26/26 docs-build tests pass
  • Blog discovery produces identical results to the old hardcoded list

Related

tamirdresher and others added 2 commits March 8, 2026 20:56
Replace hardcoded EXPECTED_BLOG array with filesystem discovery from
docs/blog/. Adding, removing, or renaming blog posts no longer requires
updating the test — it discovers posts automatically.

This prevents the recurring pattern where blog changes break CI
(seen with PR bradygaster#278 deleting duplicate blog 023).

Fixes bradygaster#282

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bradygaster bradygaster merged commit dfc9105 into bradygaster:main Mar 8, 2026
1 check passed
bradygaster added a commit that referenced this pull request Mar 9, 2026
…roster

- Add PR #298 (active nav highlighting, favicon fixes) to blog 028
- Update Squad roster from Usual Suspects to Apollo 13 / Mission Control names
- Credit @tamirdresher PRs #272, #278-280, #283
- Credit @IEvangelist PR #298
- Credit @dkirby-ms PR #243

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
bradygaster added a commit that referenced this pull request Mar 9, 2026
…roster (#300)

- Add PR #298 (active nav highlighting, favicon fixes) to blog 028
- Update Squad roster from Usual Suspects to Apollo 13 / Mission Control names
- Credit @tamirdresher PRs #272, #278-280, #283
- Credit @IEvangelist PR #298
- Credit @dkirby-ms PR #243

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
bradygaster added a commit that referenced this pull request Mar 9, 2026
- Add David Pine (@IEvangelist) to Code Contributors — PRs #293, #298
- Add Dina Berry (@diberry) to Code Contributors — PRs #286, #288, #290, #292
- Update Tamir Dresher with recent PRs #278-280, #283
- Add Dale Kirby to Code Contributors — PR #243

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
bradygaster added a commit that referenced this pull request Mar 9, 2026
* docs(ai-team): session log and orchestration records

Session: 2026-03-09-docs-push-contributors
Requested by: Brady

Changes:
- Logged PAO orchestration: blog 028 update, CONTRIBUTORS.md refresh
- Logged FIDO orchestration: test baseline verification (22 passing)
- Logged session summary: docs push workflow with PR #300 merge
- No decisions inbox entries to merge

* docs: credit Pine, Dina, Tamir, Kirby on docs contributor page

- Add David Pine (@IEvangelist) to Code Contributors — PRs #293, #298
- Add Dina Berry (@diberry) to Code Contributors — PRs #286, #288, #290, #292
- Update Tamir Dresher with recent PRs #278-280, #283
- Add Dale Kirby to Code Contributors — PR #243

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
diberry pushed a commit to diberry/squad that referenced this pull request Mar 10, 2026
…ntributors roster (bradygaster#300)

- Add PR bradygaster#298 (active nav highlighting, favicon fixes) to blog 028
- Update Squad roster from Usual Suspects to Apollo 13 / Mission Control names
- Credit @tamirdresher PRs bradygaster#272, bradygaster#278-280, bradygaster#283
- Credit @IEvangelist PR bradygaster#298
- Credit @dkirby-ms PR bradygaster#243

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
diberry pushed a commit to diberry/squad that referenced this pull request Mar 10, 2026
…gaster#307)

* docs(ai-team): session log and orchestration records

Session: 2026-03-09-docs-push-contributors
Requested by: Brady

Changes:
- Logged PAO orchestration: blog 028 update, CONTRIBUTORS.md refresh
- Logged FIDO orchestration: test baseline verification (22 passing)
- Logged session summary: docs push workflow with PR bradygaster#300 merge
- No decisions inbox entries to merge

* docs: credit Pine, Dina, Tamir, Kirby on docs contributor page

- Add David Pine (@IEvangelist) to Code Contributors — PRs bradygaster#293, bradygaster#298
- Add Dina Berry (@diberry) to Code Contributors — PRs bradygaster#286, bradygaster#288, bradygaster#290, bradygaster#292
- Update Tamir Dresher with recent PRs bradygaster#278-280, bradygaster#283
- Add Dale Kirby to Code Contributors — PR bradygaster#243

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

docs-build and ralph-triage tests break on team rebirths and blog changes

2 participants