Skip to content

bug(forge test): --offline flag not respected, also at non-trace verbosity #11322

@emo-eth

Description

@emo-eth

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge Version: 1.3.1-nightly Commit SHA: fccc807 Build Timestamp: 2025-08-17T06:04:51.933629000Z (1755410691) Build Profile: maxperf

What version of Foundryup are you on?

foundryup: 1.3.0

What command(s) is the bug in?

forge test

Operating System

macOS (Apple Silicon)

Describe the bug

Regression for the --offline flag - forge test is still making network requests somewhere - but seems unrelated to verbosity, as it was in a previous case: #6793

I can't find the GH issue now, but in the past, it was sort of unclear what --offline actually did - there was some debate if --offline meant "make 0 network requests" or "make 0 RPC requests" (iirc). Will link if I can find it.

IMO, --offline should mean "make 0 network requests"

I am currently on an airplane. No fork tests, all local, without compiling anything, getting ~10-20 sec for a test suite:

forge test -vvvv --offline
[⠊] Compiling...
No files changed, compilation skipped
[...]
Suite result: ok. 89 passed; 0 failed; 0 skipped; finished in 9.74s (14.85s CPU time)

Ran 1 test suite in 13.01s (9.74s CPU time): 89 tests passed, 0 failed, 0 skipped (89 total tests)

with no verbosity, not really different

FOUNDRY_VERBOSITY=0 forge test --offline
[⠊] Compiling...
No files changed, compilation skipped
[...]
Suite result: ok. 89 passed; 0 failed; 0 skipped; finished in 15.80s (23.00s CPU time)

Ran 1 test suite in 19.56s (15.80s CPU time): 89 tests passed, 0 failed, 0 skipped (89 total tests)

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions