Skip to content

Stabilize Windows CI by removing environment-coupled Antigravity tests - #1

Merged
yava-code merged 2 commits into
mainfrom
copilot/fix-github-actions-build-test-windows-x64
Sep 25, 2026
Merged

yava-code merged 2 commits into
mainfrom
copilot/fix-github-actions-build-test-windows-x64

Conversation

Copilot AI commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Build & Test (Windows x64) was failing because AntigravityMultiAccountTests asserted developer-specific local accounts and a guaranteed live session, assumptions that do not hold on GitHub-hosted runners. This updates those tests to validate stable provider behavior instead of machine-specific state.

  • Root-cause correction: remove user-bound assertions

    • Replaced hardcoded email checks (yasenvarf@gmail.com, murderinerd@gmail.com) with invariant checks:
      • discovery returns at least one Antigravity account
      • each account has Provider.Antigravity
      • each account id is non-empty
  • Deterministic fetch behavior test for CI

    • Replaced “known personal account should be live” with:
      • fetch using a generated unknown account id
      • assert UsageState.Unavailable
      • assert no windows and a populated unavailability reason
  • Scope

    • Test-only change in Windows/Pulse.Tests/AntigravityMultiAccountTests.cs; no production logic altered.
var account = new AccountKey(Provider.Antigravity, $"antigravity#ci-{Guid.NewGuid():N}@invalid.example");
var usage = await service.FetchAsync(account);

Assert.Equal(UsageState.Unavailable, usage.State);
Assert.Empty(usage.Windows);
Assert.False(string.IsNullOrWhiteSpace(usage.UnavailabilityReason));

@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 8664a7e1-b414-49c5-a35d-90f9318a01d1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Co-authored-by: yava-code <185186582+yava-code@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job Build & Test (Windows x64) Stabilize Windows CI by removing environment-coupled Antigravity tests Sep 25, 2026
Copilot AI requested a review from yava-code September 25, 2026 12:32
@yava-code
yava-code marked this pull request as ready for review September 25, 2026 12:53
@yava-code
yava-code merged commit 164548e into main Sep 25, 2026
1 check passed
@yava-code
yava-code deleted the copilot/fix-github-actions-build-test-windows-x64 branch September 25, 2026 12:54
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