Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cmd): add silent option for command repo gc #7147

Merged
merged 3 commits into from
Feb 18, 2022

Conversation

will7200
Copy link
Contributor

closes #7129

@ribasushi
Copy link
Contributor

@will7200 this is great 🤩
Would you be able to add some tests that silence indeed takes place? Something like https://github.com/ipfs/go-ipfs/blob/5ecf44a88/test/sharness/t0080-repo.sh#L18-L34 but comparing the ..._actual with /dev/null instead.

To run a test locally you do:

make test_sharness_deps
cd test/sharness
bash the-test-you-want-to-run.sh

Thanks!

P.S. ignore the current test failures you received, we are looking into them...

@will7200 will7200 force-pushed the feat/cmds/repoGC-silent-option branch from e55ca79 to e3fdc5a Compare April 13, 2020 18:34
@will7200
Copy link
Contributor Author

@ribasushi
I added the test case. Let me know if this is sufficient or should be expanded on.

Copy link
Contributor

@ribasushi ribasushi left a comment

Choose a reason for hiding this comment

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

LGTM

Thank you!

@Stebalien the test failure on http client is unrelated, something that started happening this weekend :/

@lidel lidel force-pushed the feat/cmds/repoGC-silent-option branch from d17faf9 to 43459c9 Compare February 18, 2022 17:57
This removes unnecessary send to the client that does not care
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

Better late than never! 🙃

@lidel lidel merged commit bfa9d3d into ipfs:master Feb 18, 2022
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.

ipfs repo gc --quiet is not quiet
3 participants