Skip to content

[TRUNK-17578] Add Atlassian Bamboo CI provider documentation for Flaky Tests#436

Closed
samgutentag wants to merge 3 commits intomainfrom
sam/add-bamboo-ci-provider-docs
Closed

[TRUNK-17578] Add Atlassian Bamboo CI provider documentation for Flaky Tests#436
samgutentag wants to merge 3 commits intomainfrom
sam/add-bamboo-ci-provider-docs

Conversation

@samgutentag
Copy link
Copy Markdown
Member

@samgutentag samgutentag commented Feb 17, 2026

Summary

  • Adds new CI provider documentation page for Atlassian Bamboo at flaky-tests/get-started/ci-providers/atlassian-bamboo.md
  • Replaces the previous bamboo.md with a more complete page matching existing CI provider doc patterns
  • Includes Bamboo Plan Spec YAML examples with tabs for JUnit XML, Bazel BEP, and XCResult formats
  • Documents the PR number detection workaround using --pr-number flag / TRUNK_PR_NUMBER env var
  • Adds Bamboo environment variables reference table
  • Updates CI Providers card grid (README and shared include) and summary.md TOC

Context

Bamboo CI support was added in analytics-cli#1017 (merged 2026-02-03). The --pr-number / TRUNK_PR_NUMBER workaround was added in analytics-cli#1032 per TRUNK-17515, since Bamboo does not always expose PR numbers via env vars.

Linear ticket: TRUNK-17578

Review Checklist

  • Add bamboo.png logo asset at .gitbook/assets/bamboo.png
  • Verify ${bamboo.TRUNK_TOKEN} variable syntax matches actual Bamboo plan variable interpolation
  • Confirm TRUNK_PR_NUMBER section is accurate per TRUNK-17515 implementation
  • Verify card grid entry renders properly in GitBook

Test plan

  • Preview in GitBook Change Request to verify formatting
  • Confirm all tabs render correctly (JUnit XML, Bazel BEP, XCResult)
  • Check that Bamboo card appears in CI Providers card grid
  • Verify TOC entry links correctly in sidebar

Generated with Claude Code

New CI provider guide with Bamboo Plan Spec examples (XML, Bazel, XCode),
PR number detection workaround via TRUNK_PR_NUMBER, and integration into
summary sidebar, CI providers README card grid, and shared includes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@samgutentag samgutentag force-pushed the sam/add-bamboo-ci-provider-docs branch from ebd0af6 to ad94df5 Compare February 17, 2026 23:23
Replaces bamboo.md with atlassian-bamboo.md featuring:
- Complete Bamboo Plan Spec YAML examples with JUnit, Bazel, and XCResult tabs
- PR number detection workaround section (TRUNK_PR_NUMBER / --pr-number)
- Bamboo environment variables reference table
- final-tasks usage explanation for upload-on-failure
- Updated card grids in README and shared include
- Updated summary.md TOC entry

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@samgutentag samgutentag changed the title Add Atlassian Bamboo CI provider documentation for Flaky Tests [TRUNK-17578] Add Atlassian Bamboo CI provider documentation for Flaky Tests Feb 18, 2026
@samgutentag
Copy link
Copy Markdown
Member Author

Closing — generated by an earlier version of the docs pipeline. Will re-run with updated skill.

@samgutentag samgutentag deleted the sam/add-bamboo-ci-provider-docs branch March 12, 2026 07:48
samgutentag added a commit that referenced this pull request Mar 16, 2026
## Summary

Replaces the previous agent-based approach (6 separate agent files) with
a single consolidated `write-docs` skill that handles the full
notes-to-PR documentation workflow.

• **Skill:** `.claude/skills/write-docs/` — processes raw notes, Slack
threads, and engineer context into polished docs changes with full
project tracking
• **Pipeline:** Parse notes → duplicate check → research (Linear + Slite
+ Slack + docs + code) → sources audit trail → draft docs →
branch/PR/Linear → Slack post → HTML review report
• **Drafts template:** `.claude/drafts/TEMPLATE.md` for standardized
input format

### MCP integrations

The skill uses four MCP servers during Phase 2 research:
- **Slack** — searches `#team-merge-queue`, `#team-flaky-tests`, and
other channels for product discussion, changelogs, and context threads
- **Slite** — retrieves PRDs, specs, roadmap items, and knowledge base
articles for product intent and requirements
- **Linear** — fetches tickets, customer asks, and related engineering
issues
- **Trunk Docs (GitBook)** — searches existing published docs for gap
analysis

### Code-is-law principle

Planning docs (Slite specs, PRDs, Slack discussions) provide valuable
context but frequently diverge from what actually ships. The skill now
enforces:
- **Code is the authoritative source** — PR diffs and source on `main`
override planning docs when they conflict
- **Sources audit requires a "Differences: Code vs. Planning Docs"
table** — surfacing discrepancies before they become inaccurate docs
- **Unimplemented spec features are flagged as open questions**, not
documented as existing functionality

This was validated by running the prometheus-metrics-endpoint draft
through research, which found 6 discrepancies between the Slite spec and
actual code (missing metric, different queue depth definition,
unimplemented features).

### Key conventions
- Branch format: `<git-username>/<kebab-case-topic>`
- PR titles: `[TRUNK-XXXXX] Short descriptive title`
- One draft = one branch = one PR = one Linear ticket
- All staged outputs under `.claude/tmp/` (gitignored)

### Validated with 8 documentation PRs
| Draft | PR | Linear |
|---|---|---|
| google-cloud.md | #438 | TRUNK-17580 |
| atlassian-bamboo.md | #436 | TRUNK-17578 |
| flaky-tests-rules-engine.md | #434 | TRUNK-17576 |
| new-merge-graph-ui.md | #433 | TRUNK-17575 |
| merge-queue-api-endpoints.md | #439 | TRUNK-17581 |
| falky-test-cyprus.md | #435 | TRUNK-17577 |
| concurrency-settings.md | #437 | TRUNK-17579 |
| run-tests-private-fork.md | #445 | TRUNK-17582 |

## Test plan
- [ ] Verify skill invocation via `/write-docs <draft-file>`
- [ ] Confirm duplicate/overlap detection works (Phase 0)
- [ ] Confirm Slack/Slite MCP research surfaces relevant context during
Phase 2
- [ ] Verify sources audit file includes code-vs-planning-docs
comparison
- [ ] Review GitBook preview for any docs changes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant