Skip to content

test(update): Avoid network access in integration test#3381

Open
roian6 wants to merge 1 commit into
getsentry:masterfrom
roian6:test/update-offline-integration
Open

test(update): Avoid network access in integration test#3381
roian6 wants to merge 1 commit into
getsentry:masterfrom
roian6:test/update-offline-integration

Conversation

@roian6

@roian6 roian6 commented Jul 23, 2026

Copy link
Copy Markdown

Description

Prevent the sentry-cli update integration test from contacting the public release registry.

The command already skips executable replacement when SENTRY_INTEGRATION_TEST is set. This moves that existing guard before the latest-release lookup, so integration tests return before external I/O while normal update behavior remains unchanged.

Issues

Testing

  • cargo fmt --all -- --check
  • cargo clippy --workspace --tests
  • Forced-offline focused test with external traffic routed to an unused loopback proxy:
    • cargo test --test mod integration::update::command_update -- --exact --nocapture
  • Forced-offline full suite:
    • cargo test --workspace
    • 194 unit tests and 183 integration tests passed

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@roian6
roian6 requested review from a team and szokeasaurusrex as code owners July 23, 2026 10: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.

Test depends on network access

1 participant