Support fetching without the --progress option - #1067
Conversation
|
I'm using it here and it seems to work well. |
|
This workflow run shows it working with the |
51e92ef to
87596e0
Compare
|
@TingluoHuang would this be something you'd consider taking a look at? I'm looking at your comments from 2019 on #18. |
|
What is blocking this change? I am looking forward to seeing this released as well |
87596e0 to
3327cce
Compare
|
Rebased on upstream/main, (currently f095bcc). |
|
Passes formatting and lint checks for me locally: And tests: |
|
I reworded the PR description and added some additional explanations. |
|
@ericsciple WDYT? |
3327cce to
ce4272e
Compare
|
Rebased on 96f5310. |
ce4272e to
d053b2f
Compare
|
|
Guys, what is blocking this? Would be really nice to have. Currently the checkout pollutes my logs. |
|
@luketomlinson are you able to comment, there are a lot of people wanting this. |
|
Well, currently there are conflicts. It would help if we can resolve these first. Otherwise it'll take more time before this is looked at again @simonbaird Could you please work on that? |
|
I'll give it another rebase. |
Setting the `progress` option to false in the `with` section of the workflow step will cause git fetch to run without `--progress`. The motivation is to be able to suppress the noisy progress status output which adds many hundreds of "remote: Counting objects: 85% (386/453)" and similar lines in the workflow log. This should be sufficient to resolve actions#894 and its older friends, though the solution is different to the one proposed there because it doesn't use the --quiet flag. IIUC git doesn't show the progress status by default since the output is not a terminal, so that's why removing the --progress option is all that's needed. Adding the --quiet flag doesn't make a lot of difference once the --progress flag is removed, and actually I think using --quiet would suppress some other more useful output that would be better left visible. Signed-off-by: Simon Baird <sbaird@redhat.com>
d053b2f to
4d7e069
Compare
|
Rebased on upstream/main (currently at 97a652b). Now includes some test coverage 😎 . |
| showProgress: true | ||
| } | ||
|
|
||
| await git.fetch(refSpec, options) |
There was a problem hiding this comment.
It might be nice to merge these options onto the default option values here so the assertions become more like real world examples. (This is just an idea for a separate PR though.)
| ], | ||
| expect.any(Object) | ||
| ) | ||
| }) |
There was a problem hiding this comment.
I'd be happy to remove some of the test coverage if it's considered too much. I was trying to follow the example set in #579 .
There was a problem hiding this comment.
Too much coverage is rarely a problem. Thank you for the detailed effort!
vanZeben
left a comment
There was a problem hiding this comment.
Thanks for putting this together @simonbaird, especially with the comprehensive test coverage! 🎉 I'll cut a release for this later today
|
I lied, checking internally, we're planning on cutting a new Major version release next week to include the recent node20 bump, that major release will include this too, so look forward to |
Also disable --progress. It is not disabled by default for backward compatibility, but solves the problem of lots of progress lines in the downloadable raw output: actions/checkout#1067
Also disable --progress. It is not disabled by default for backward compatibility, but solves the problem of lots of progress lines in the downloadable raw output: actions/checkout#1067
Also disable --progress. It is not disabled by default for backward compatibility, but solves the problem of lots of progress lines in the downloadable raw output: actions/checkout#1067
Also disable --progress. It is not disabled by default for backward compatibility, but solves the problem of lots of progress lines in the downloadable raw output: actions/checkout#1067
## [1.0.1](v1.0.0...v1.0.1) (2024-03-15) ### chore * dependabot updates setup ([#2](#2)) ([7e71810](7e71810)) * **deps-dev:** bump [@commitlint](https://github.com/commitlint)/cli from 19.1.0 to 19.2.0 ([#5](#5)) ([737d89b](737d89b)) * **deps-dev:** bump [@types](https://github.com/types)/node from 20.11.26 to 20.11.27 ([#8](#8)) ([ba41253](ba41253)) * **deps-dev:** bump semantic-release from 23.0.2 to 23.0.3 ([#6](#6)) ([7d29884](7d29884)) * **deps:** bump actions/checkout from 2 to 4 ([#4](#4)) ([f35995a](f35995a)), closes [actions/checkout#1436](actions/checkout#1436) [actions/checkout#1067](actions/checkout#1067) [actions/checkout#1447](actions/checkout#1447) [actions/checkout#1436](actions/checkout#1436) [actions/checkout#1067](actions/checkout#1067) [actions/checkout#1377](actions/checkout#1377) [actions/checkout#579](actions/checkout#579) [actions/checkout#1437](actions/checkout#1437) [actions/checkout#579](actions/checkout#579) [actions/checkout#1437](actions/checkout#1437) [actions/checkout#1196](actions/checkout#1196) [actions/checkout#1287](actions/checkout#1287) [actions/checkout#1369](actions/checkout#1369) [actions/checkout#1376](actions/checkout#1376) [actions/checkout#1196](actions/checkout#1196) [actions/checkout#1287](actions/checkout#1287) [actions/checkout#1369](actions/checkout#1369) [actions/checkout#1289](actions/checkout#1289) [#1286](https://github.com/capitnflam/eslint-plugin/issues/1286) [actions/checkout#1246](actions/checkout#1246) [actions/checkout#1246](actions/checkout#1246) [actions/checkout#1598](actions/checkout#1598) [actions/checkout#1511](actions/checkout#1511) [actions/checkout#1514](actions/checkout#1514) [#770](https://github.com/capitnflam/eslint-plugin/issues/770) [actions/checkout#1057](actions/checkout#1057) [#1514](https://github.com/capitnflam/eslint-plugin/issues/1514) [#1511](https://github.com/capitnflam/eslint-plugin/issues/1511) [#1510](https://github.com/capitnflam/eslint-plugin/issues/1510) [#1496](https://github.com/capitnflam/eslint-plugin/issues/1496) [#1396](https://github.com/capitnflam/eslint-plugin/issues/1396) [#1452](https://github.com/capitnflam/eslint-plugin/issues/1452) [#1447](https://github.com/capitnflam/eslint-plugin/issues/1447) [#1067](https://github.com/capitnflam/eslint-plugin/issues/1067) [#1436](https://github.com/capitnflam/eslint-plugin/issues/1436) [#1437](https://github.com/capitnflam/eslint-plugin/issues/1437) * **deps:** bump actions/setup-node from 2 to 4 ([#3](#3)) ([b003245](b003245)), closes [actions/setup-node#866](actions/setup-node#866) [actions/setup-node#868](actions/setup-node#868) [actions/setup-node#876](actions/setup-node#876) [actions/setup-node#868](actions/setup-node#868) [actions/setup-node#861](actions/setup-node#861) [actions/setup-node#859](actions/setup-node#859) [actions/setup-node#870](actions/setup-node#870) [actions/setup-node#872](actions/setup-node#872) [actions/setup-node#875](actions/setup-node#875) [actions/setup-node#831](actions/setup-node#831) [actions/setup-node#803](actions/setup-node#803) [actions/setup-node#809](actions/setup-node#809) [actions/setup-node#816](actions/setup-node#816) [actions/setup-node#794](actions/setup-node#794) [actions/setup-node#710](actions/setup-node#710) [actions/setup-node#812](actions/setup-node#812) [actions/setup-node#808](actions/setup-node#808) [actions/setup-node#804](actions/setup-node#804) [actions/setup-node#802](actions/setup-node#802) [actions/setup-node#807](actions/setup-node#807) [#927](https://github.com/capitnflam/eslint-plugin/issues/927) [#921](https://github.com/capitnflam/eslint-plugin/issues/921) [#865](https://github.com/capitnflam/eslint-plugin/issues/865) [#879](https://github.com/capitnflam/eslint-plugin/issues/879) [#898](https://github.com/capitnflam/eslint-plugin/issues/898) [#917](https://github.com/capitnflam/eslint-plugin/issues/917) [#889](https://github.com/capitnflam/eslint-plugin/issues/889) [#884](https://github.com/capitnflam/eslint-plugin/issues/884) [#882](https://github.com/capitnflam/eslint-plugin/issues/882) [#876](https://github.com/capitnflam/eslint-plugin/issues/876) * **deps:** bump eslint-plugin-react from 7.33.2 to 7.34.0 ([#7](#7)) ([cc5ea82](cc5ea82))
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://github.com/actions/checkout) | action | major | `v3` -> `v4` | --- ### Release Notes <details> <summary>actions/checkout (actions/checkout)</summary> ### [`v4`](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v400) [Compare Source](actions/checkout@v3...v4) - [Support fetching without the --progress option](actions/checkout#1067) - [Update to node20](actions/checkout#1436) </details> --- ### Configuration 📅 **Schedule**: 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 becomes conflicted, 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 [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi43OS4xIiwidXBkYXRlZEluVmVyIjoiMzYuNzkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/19 Co-authored-by: Renovate Bot <renovate-bot@gitea.com> Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
If this is merged, setting the
progressoption to false in thewithsection of the workflow step will cause git fetch to run without the--progressflag.Note that the default value of this new option is
true, which matches the current behavior, so this PR introduces no behavior change unless the new option is explicitly present and set to false.The motivation is to be able to suppress the noisy progress status output which adds many hundreds of
remote: Counting objects: 85% (386/453)and similar lines in the workflow log.This should be sufficient to resolve #894 and its older friends, though the solution is different to the one proposed there because it doesn't use the
--quietflag. IIUC git doesn't show the progress status by default when running on GitHub since the output is not a terminal. Adding the--progressflag is what forces the progress output to be shown, so that's why removing it is all that's needed.Adding the
--quietflag doesn't make a lot of difference once the--progressflag is removed, and actually I think using--quietwould suppress some other more useful output that would be better left visible.