Add quiet input to suppress info-level log output#898
Merged
Conversation
When quiet: true, only warnings and errors are logged. All info calls are routed through a new logging module that reads the quiet input via core.getInput on first use. - Add src/utils/logging.ts with lazy-initialized quiet flag - Add quiet boolean input to action.yml and action-types.yml - Add quiet to SetupInputs interface and loadInputs() - Replace core.info/core.warning with log.info/log.warning across all source files - Keep ##[add-matcher] workflow command on core.info directly to avoid suppressing it in quiet mode - Update README with new input
Route all core.info and core.warning calls through the new log.info/log.warning wrappers so quiet:true suppresses them. The ##[add-matcher] directive in setup-uv.ts uses core.info directly since it is a workflow command, not user-facing output. Update action.yml, action-types.yml, and README.md with the new quiet input (default: false).
There was a problem hiding this comment.
Pull request overview
Adds a new quiet input for the setup action to suppress info-level logging while preserving warnings and errors.
Changes:
- Introduces a shared logging wrapper that conditionally suppresses
infomessages. - Replaces many direct
core.infocalls with the new logging utility. - Documents and types the new
quietinput across action metadata and README.
Reviewed changes
Copilot reviewed 15 out of 18 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
action.yml |
Adds the quiet action input. |
action-types.yml |
Adds the typed boolean definition for quiet. |
README.md |
Documents the new input in the full configuration example. |
src/utils/logging.ts |
Adds the quiet-aware logging wrapper. |
src/utils/inputs.ts |
Loads the new input and routes logs through the wrapper. |
src/setup-uv.ts |
Routes setup info/warning logs through the wrapper. |
src/save-cache.ts |
Routes post-action cache logs through the wrapper. |
src/cache/restore-cache.ts |
Routes cache restore logs through the wrapper. |
src/download/download-version.ts |
Routes download logs through the wrapper. |
src/download/manifest.ts |
Routes manifest logs through the wrapper. |
src/hash/hash-files.ts |
Uses quiet-aware info logging for verbose hash output. |
src/update-known-checksums.ts |
Routes checksum update logs through the wrapper. |
src/version/file-parser.ts |
Routes version file parsing logs through the wrapper. |
src/version/resolve.ts |
Routes resolver info logs through the wrapper. |
src/version/version-request-resolver.ts |
Routes fallback version log through the wrapper. |
dist/setup/index.cjs |
Bundled setup action update. |
dist/save-cache/index.cjs |
Bundled save-cache action update. |
dist/update-known-checksums/index.cjs |
Bundled checksum update script update. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+13
to
+16
| export function info(msg: string): void { | ||
| if (!isQuiet()) { | ||
| core.info(msg); | ||
| } |
luketainton
pushed a commit
to luketainton/repos_pypilot
that referenced
this pull request
Jun 4, 2026
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | action | minor | `v8.1.0` → `v8.2.0` | --- ### Release Notes <details> <summary>astral-sh/setup-uv (astral-sh/setup-uv)</summary> ### [`v8.2.0`](https://github.com/astral-sh/setup-uv/releases/tag/v8.2.0): 🌈 New inputs `quiet` and `download-from-astral-mirror` [Compare Source](astral-sh/setup-uv@v8.1.0...v8.2.0) #### Changes This release brings two new inputs and a few bug fixes. ##### New inputs Lets talk about the new inputs first. ##### quiet Pretty simple. It turns of all `info` loggings. Useful if you use this in a composite action and are not interested in all the details. In the upcoming releases we will add log groups to fully implement support for "less noise" > \[!NOTE]\ > Warnings and errors are always logged. ##### download-from-astral-mirror In some cases you may want to directly use the fallback of checking for available versions and downloading releases from GitHub instead of using the astral.sh mirror. Setting `download-from-astral-mirror: false` allows you to do that. ##### Bugfixes When using the astral.sh mirror to query available versions and download releases (done by default) we now stop sending the GitHub token in the header. The mirror never looked at it but we shouldn't be handing out that data even if it is just a short lived token. All other bugfixes try to limit the impact of failed GitHub queries due to retries and other faults. We couldn't pinpoint all rootcauses yet but added more logging for error cases to track them down. #### 🐛 Bug fixes - fix: report unexpected cache save failures [@​eifinger](https://github.com/eifinger) ([#​896](astral-sh/setup-uv#896)) - fix: report unexpected setup failures [@​eifinger](https://github.com/eifinger) ([#​895](astral-sh/setup-uv#895)) - fix: add timeout to fetch to prevent silent hangs [@​eifinger-bot](https://github.com/eifinger-bot) ([#​883](astral-sh/setup-uv#883)) - Limit GitHub tokens to github.com download URLs [@​zsol](https://github.com/zsol) ([#​878](astral-sh/setup-uv#878)) - increase libuv-workaround timeout to 100ms [@​eifinger](https://github.com/eifinger) ([#​880](astral-sh/setup-uv#880)) #### 🚀 Enhancements - Add quiet input to suppress info-level log output [@​eifinger](https://github.com/eifinger) ([#​898](astral-sh/setup-uv#898)) - feat: add `download-from-astral-mirror` input [@​eifinger](https://github.com/eifinger) ([#​897](astral-sh/setup-uv#897)) #### 🧰 Maintenance - docs: update dependabot rollup biome guidance [@​eifinger](https://github.com/eifinger) ([#​902](astral-sh/setup-uv#902)) - chore: update known checksums for 0.11.18 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​899](astral-sh/setup-uv#899)) - chore: update known checksums for 0.11.17 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​892](astral-sh/setup-uv#892)) - chore: update known checksums for 0.11.16 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​889](astral-sh/setup-uv#889)) - chore: update known checksums for 0.11.15 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​885](astral-sh/setup-uv#885)) - chore: update known checksums for 0.11.14 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​879](astral-sh/setup-uv#879)) - chore: update known checksums for 0.11.13 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​877](astral-sh/setup-uv#877)) - chore: update known checksums for 0.11.12 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​876](astral-sh/setup-uv#876)) - chore: update known checksums for 0.11.11 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​873](astral-sh/setup-uv#873)) - chore: update known checksums for 0.11.9/0.11.10 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​871](astral-sh/setup-uv#871)) - chore: update known checksums for 0.11.8 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​867](astral-sh/setup-uv#867)) - Bump setup-uv references to v8.1.0 SHA in docs [@​eifinger](https://github.com/eifinger) ([#​862](astral-sh/setup-uv#862)) - Add update-docs.yml workflow [@​eifinger](https://github.com/eifinger) ([#​861](astral-sh/setup-uv#861)) #### ⬆️ Dependency updates - chore(deps): roll up dependabot updates [@​eifinger](https://github.com/eifinger) ([#​903](astral-sh/setup-uv#903)) - chore(deps): roll up dependabot updates [@​eifinger](https://github.com/eifinger) ([#​901](astral-sh/setup-uv#901)) - chore(deps): bump release-drafter/release-drafter from 7.3.0 to 7.3.1 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​900](astral-sh/setup-uv#900)) - chore(deps): bump eifinger/actionlint-action from 1.10.1 to 1.10.2 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​842](astral-sh/setup-uv#842)) - chore(deps): bump github/codeql-action from 4.35.4 to 4.36.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​893](astral-sh/setup-uv#893)) - chore(deps): bump zizmorcore/zizmor-action from 0.5.5 to 0.5.6 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​891](astral-sh/setup-uv#891)) - chore(deps): bump release-drafter/release-drafter from 7.2.0 to 7.3.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​884](astral-sh/setup-uv#884)) - chore(deps): bump zizmorcore/zizmor-action from 0.5.3 to 0.5.5 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​888](astral-sh/setup-uv#888)) - chore(deps): bump github/codeql-action from 4.35.3 to 4.35.4 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​881](astral-sh/setup-uv#881)) - chore(deps): bump github/codeql-action from 4.32.2 to 4.35.3 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​875](astral-sh/setup-uv#875)) - chore(deps): bump actions/setup-node from 6.3.0 to 6.4.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​866](astral-sh/setup-uv#866)) - chore(deps): bump zizmorcore/zizmor-action from 0.5.2 to 0.5.3 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​864](astral-sh/setup-uv#864)) - chore(deps): bump peter-evans/create-pull-request from 8.1.0 to 8.1.1 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​863](astral-sh/setup-uv#863)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMDkuMSIsInVwZGF0ZWRJblZlciI6IjQzLjIwOS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==--> Reviewed-on: https://git.tainton.uk/repos/pypilot/pulls/452 Reviewed-by: Luke Tainton <luke@tainton.uk> Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk> Co-committed-by: renovate[bot] <renovate-bot@git.tainton.uk>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
quietinput (default:false) that suppressesinfo-level log output when set totrue. Only warnings and errors are shown.Contributes to: #868