Skip to content

Write console output through the filesystem abstraction - #6445

Open
aamoghS wants to merge 1 commit into
grafana:masterfrom
aamoghS:fix-console-output-afero
Open

aamoghS wants to merge 1 commit into
grafana:masterfrom
aamoghS:fix-console-output-afero

Conversation

@aamoghS

@aamoghS aamoghS commented Sep 19, 2026

Copy link
Copy Markdown

Summary

Write --console-output through the filesystem abstraction instead of os.OpenFile, so tests that use an in-memory FS work.

Fixes #2565

Test plan

  • go test ./internal/js/ -count=1 -run Console
  • k6 run --console-output=out.log writes console.log to that file

newFileConsole opened the --console-output file with os.OpenFile, which
broke tests that use an in-memory FS. Open the file via fsext instead.

Fixes grafana#2565
@aamoghS
aamoghS requested a review from a team as a code owner September 19, 2026 13:18
@aamoghS
aamoghS requested review from AgnesToulet and janHildebrandt98 and removed request for a team September 19, 2026 13:18
@github-actions

Copy link
Copy Markdown

Signed commits report

1 of 1 commit between master and fix-console-output-afero could not be fully verified:

Commit Author Reason Message
16eda97f aamoghS unsigned fix: write console output through the filesystem abstraction

This repository requires all commits to be signed. See GitHub docs on commit signature verification.

This branch has not been deployed

No deployments
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.

console shouldn't use os package directly

1 participant