Skip to content

Conversation

@cderv
Copy link
Collaborator

@cderv cderv commented Dec 17, 2025

This PR follows up previous one #13787 by trying to group in a more scoped place.

@cderv cderv marked this pull request as draft December 17, 2025 13:34
@posit-snyk-bot
Copy link
Collaborator

posit-snyk-bot commented Dec 17, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@cderv
Copy link
Collaborator Author

cderv commented Dec 19, 2025

Here is the new state

Playwright tests logging

All test is grouped, but failure is shown outside the group

image

Then inside the group we get logging about each document render in pre-test step
image

Then the playwright logging itself is at its minimum (dot reporter) with error shown after
image

image

smoke test logging

Each test is grouped and error shows below the failing grouped test with summary at the end
image

Unfolding shows the details
image

Same for smoke-all document
image

Still small tweaks but this is better. #13808 will also help reduce the Deno logging about dependencies download.

Adds fallback behavior to src/tools/github.ts for local development:
- error/warning/notice functions now print to console when not in GHA
- withGroup/withGroupAsync print titles directly instead of using workflow commands
Adds automatic DEBUG level logging when RUNNER_DEBUG=1 is set in GitHub
Actions environment. Can be overridden by explicit --log-level or
QUARTO_LOG_LEVEL environment variable.
- Suppress webServer output (stderr: 'ignore' in playwright.config.ts)
- Add respectStreams: true to execProcess for clearer test output
- Add environment variables for test flexibility (SKIP_RENDER, SKIP_CLEANOUTPUT)
- Improve document rendering logging with relative paths
@cderv cderv force-pushed the gha/improve-logging branch from d8c8fc3 to d1fa9c1 Compare December 19, 2025 14:59
- Add ::group::/::endgroup:: around test file execution in test-smokes.yml
- Remove QUARTO_LOG_LEVEL: DEBUG from workflow
- Remove unnecessary echo statements from run-tests.sh

GitHub Actions doesn't support nested groups, so only workflow-level grouping is used.
Adds three intentionally failing tests to validate that grouping improvements
work correctly in CI logs:

- Playwright test (tests/integration/playwright/tests/)
- Unit test (tests/unit/)
- Smoke-all document (tests/docs/smoke-all/)

These tests should be removed after verifying CI log behavior.
@cderv cderv force-pushed the gha/improve-logging branch from d1fa9c1 to f664f1c Compare December 19, 2025 15:03
@cderv cderv marked this pull request as ready for review December 19, 2025 15:03
@cderv cderv merged commit ade5aba into main Dec 19, 2025
53 of 54 checks passed
@cderv cderv deleted the gha/improve-logging branch December 19, 2025 15:27
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.

3 participants