Skip to content

Add Basic CI Tests - #3

Merged
adalton merged 1 commit into
flightctl:masterfrom
adalton:add-ci
Oct 22, 2025
Merged

adalton merged 1 commit into
flightctl:masterfrom
adalton:add-ci

Conversation

@adalton

@adalton adalton commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

This change introduces some basic PR-time CI tests. Specifically, this will run:

  • format check
  • go vet
  • go test -race
  • go build

This change introduces some basic PR-time CI tests. Specifically, this
will run:

* format check
* `go vet`
* `go test -race`
* `go build`
@adalton
adalton requested a review from asafbennatan October 21, 2025 15:15
@adalton adalton self-assigned this Oct 21, 2025
@adalton
adalton merged commit 9db2145 into flightctl:master Oct 22, 2025
@adalton
adalton deleted the add-ci branch October 22, 2025 14:03
adalton added a commit that referenced this pull request Jul 8, 2026
…on data (#44)

## Summary

- Fix feedback loop that caused 14 AI sessions ($34) on a single PR due
to silent reply failures resetting the retry counter and stale
`comment-responses.json` from prior sessions causing false success
- Clean AI output files between feedback sessions to prevent stale data
from being read as current
- Reply functions now return posted count; critical paths
(final-attempt, AI-responses) fail when zero replies land
- `handleNoChanges` now handles final-attempt scenario with "unable to
address" replies
- Cost labels use round-based numbering with retries and outcome
suffixes (e.g., "Feedback (2) retry 1 (no changes)") instead of
sequential "Feedback #3", and parenthesized numbers to avoid GitHub
autolinks

## Test plan

- [x] `TestExecuteFeedback_StaleCommentResponsesCleaned` — stale file
from prior session doesn't cause false success
- [x] `TestExecuteFeedback_NoChanges_WithCommentResponses` — AI writing
responses during session (not pre-written) works correctly
- [x] `TestExecuteFeedback_CleanupPreservesSessionContext` —
session-context.md survives cleanup
- [x] `TestFeedbackCostLabel` — all four branches (no-changes,
infrastructure error, final attempt, success)
- [x] `TestCountFeedbackRounds` — error and retry entries excluded from
round count
- [x] `TestFeedbackLabel` — round-based labeling with retries and
suffixes
- [x] All 37 feedback tests pass with `-race`
- [x] Full test suite passes
- [x] Lint clean (no new issues)

Assisted-by: Claude <noreply@anthropic.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.

2 participants