Skip to content

Add quiet input to suppress info-level log output#898

Merged
eifinger merged 2 commits into
mainfrom
feature/quiet-input
May 31, 2026
Merged

Add quiet input to suppress info-level log output#898
eifinger merged 2 commits into
mainfrom
feature/quiet-input

Conversation

@eifinger

@eifinger eifinger commented May 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a new quiet input (default: false) that suppresses info-level log output when set to true. Only warnings and errors are shown.

Contributes to: #868

eifinger added 2 commits May 31, 2026 12:37
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).

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 info messages.
  • Replaces many direct core.info calls with the new logging utility.
  • Documents and types the new quiet input 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 thread src/utils/logging.ts
Comment on lines +13 to +16
export function info(msg: string): void {
if (!isQuiet()) {
core.info(msg);
}
@eifinger eifinger added the enhancement New feature or request label May 31, 2026
@eifinger eifinger merged commit a92cb43 into main May 31, 2026
92 checks passed
@eifinger eifinger deleted the feature/quiet-input branch May 31, 2026 19:13
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 [@&#8203;eifinger](https://github.com/eifinger) ([#&#8203;896](astral-sh/setup-uv#896))
- fix: report unexpected setup failures [@&#8203;eifinger](https://github.com/eifinger) ([#&#8203;895](astral-sh/setup-uv#895))
- fix: add timeout to fetch to prevent silent hangs [@&#8203;eifinger-bot](https://github.com/eifinger-bot) ([#&#8203;883](astral-sh/setup-uv#883))
- Limit GitHub tokens to github.com download URLs [@&#8203;zsol](https://github.com/zsol) ([#&#8203;878](astral-sh/setup-uv#878))
- increase libuv-workaround timeout to 100ms [@&#8203;eifinger](https://github.com/eifinger) ([#&#8203;880](astral-sh/setup-uv#880))

#### 🚀 Enhancements

- Add quiet input to suppress info-level log output [@&#8203;eifinger](https://github.com/eifinger) ([#&#8203;898](astral-sh/setup-uv#898))
- feat: add `download-from-astral-mirror` input [@&#8203;eifinger](https://github.com/eifinger) ([#&#8203;897](astral-sh/setup-uv#897))

#### 🧰 Maintenance

- docs: update dependabot rollup biome guidance [@&#8203;eifinger](https://github.com/eifinger) ([#&#8203;902](astral-sh/setup-uv#902))
- chore: update known checksums for 0.11.18 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;899](astral-sh/setup-uv#899))
- chore: update known checksums for 0.11.17 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;892](astral-sh/setup-uv#892))
- chore: update known checksums for 0.11.16 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;889](astral-sh/setup-uv#889))
- chore: update known checksums for 0.11.15 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;885](astral-sh/setup-uv#885))
- chore: update known checksums for 0.11.14 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;879](astral-sh/setup-uv#879))
- chore: update known checksums for 0.11.13 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;877](astral-sh/setup-uv#877))
- chore: update known checksums for 0.11.12 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;876](astral-sh/setup-uv#876))
- chore: update known checksums for 0.11.11 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;873](astral-sh/setup-uv#873))
- chore: update known checksums for 0.11.9/0.11.10 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;871](astral-sh/setup-uv#871))
- chore: update known checksums for 0.11.8 @&#8203;[github-actions\[bot\]](https://github.com/apps/github-actions) ([#&#8203;867](astral-sh/setup-uv#867))
- Bump setup-uv references to v8.1.0 SHA in docs [@&#8203;eifinger](https://github.com/eifinger) ([#&#8203;862](astral-sh/setup-uv#862))
- Add update-docs.yml workflow [@&#8203;eifinger](https://github.com/eifinger) ([#&#8203;861](astral-sh/setup-uv#861))

#### ⬆️ Dependency updates

- chore(deps): roll up dependabot updates [@&#8203;eifinger](https://github.com/eifinger) ([#&#8203;903](astral-sh/setup-uv#903))
- chore(deps): roll up dependabot updates [@&#8203;eifinger](https://github.com/eifinger) ([#&#8203;901](astral-sh/setup-uv#901))
- chore(deps): bump release-drafter/release-drafter from 7.3.0 to 7.3.1 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;900](astral-sh/setup-uv#900))
- chore(deps): bump eifinger/actionlint-action from 1.10.1 to 1.10.2 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;842](astral-sh/setup-uv#842))
- chore(deps): bump github/codeql-action from 4.35.4 to 4.36.0 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;893](astral-sh/setup-uv#893))
- chore(deps): bump zizmorcore/zizmor-action from 0.5.5 to 0.5.6 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;891](astral-sh/setup-uv#891))
- chore(deps): bump release-drafter/release-drafter from 7.2.0 to 7.3.0 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;884](astral-sh/setup-uv#884))
- chore(deps): bump zizmorcore/zizmor-action from 0.5.3 to 0.5.5 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;888](astral-sh/setup-uv#888))
- chore(deps): bump github/codeql-action from 4.35.3 to 4.35.4 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;881](astral-sh/setup-uv#881))
- chore(deps): bump github/codeql-action from 4.32.2 to 4.35.3 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;875](astral-sh/setup-uv#875))
- chore(deps): bump actions/setup-node from 6.3.0 to 6.4.0 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;866](astral-sh/setup-uv#866))
- chore(deps): bump zizmorcore/zizmor-action from 0.5.2 to 0.5.3 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;864](astral-sh/setup-uv#864))
- chore(deps): bump peter-evans/create-pull-request from 8.1.0 to 8.1.1 @&#8203;[dependabot\[bot\]](https://github.com/apps/dependabot) ([#&#8203;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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants