GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: cleaner user facing error handing and tests for config file points of failure by lwasser · Pull Request #620 · all-contributors/cli

Conversation

@lwasser

@lwasser lwasser commented Nov 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

This PR adds e2e tests for points of failure when config files like the json file don't exist. here we raise a UserError and make the unit tests associated with it a bit more explicit too. this pr is built on #616 #617 .

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lwasser
lwasser force-pushed the readme-failures branch 3 times, most recently from 24be881 to 02dfe31 Compare November 11, 2026 01:48
@lwasser
lwasser marked this pull request as ready for review November 11, 2026 02:51
@lwasser
lwasser requested a review from a team November 11, 2026 02:55
@lwasser lwasser added the type: tests Changes to tests label Nov 11, 2026
@lwasser

lwasser commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

This is ready for review! Here I focused on various errors a user may encounter running initial commands so it looks at things like malformed json, bad config, missing readme, etc etc. i also added some friendlier messaging around errors and checked those in our tests too. I think the next round of tests will be related to mocking. i haven't been tracking these with issues but I will start doing that now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lwasser
lwasser commented Nov 11, 2026
View reviewed changes
Comment thread .github/workflows/test-deploy.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@michaelfaith

michaelfaith commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

This will need to be rebased, following the re-organization of ci jobs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lwasser
lwasser force-pushed the readme-failures branch from 6052f68 to 644e737 Compare November 11, 2026 17:26
@lwasser

lwasser commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

@michaelfaith rebase is complete! thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lwasser lwasser changed the title test: add tests for config file points of failure fix: cleaner user facing error handing and tests for config file points of failure Nov 11, 2026
lwasser added 3 commits November 11, 2026 15:10
@lwasser
fix: show a friendly error when readme etc is missing
fe4e672
test: add await so error reach CLI error handler and throw proper returns

chore: lint

ci: add e2e to ci

test: add test and cleaner message for when json file is missing

test: cleanup unit test to check for UserError and match message
@lwasser
test: missing config file
b237ac2
@lwasser
fix: show friendly errors and round out e2e tests for this
0a74580
@lwasser
lwasser force-pushed the readme-failures branch from 644e737 to 0a74580 Compare November 11, 2026 22:10
@lwasser lwasser mentioned this pull request Nov 11, 2026
test: add test for bare command all-contributors #643
Merged
2 of 4 tasks
michaelfaith
michaelfaith approved these changes Nov 12, 2026
View reviewed changes

@michaelfaith michaelfaith left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Good stuff! 👏

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lwasser reacted with hooray emoji
All reactions
  • 🎉 1 reaction
@michaelfaith
michaelfaith merged commit 0022c2e into all-contributors:main Nov 12, 2026
7 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@a-c-slater a-c-slater Bot mentioned this pull request Nov 12, 2026
chore(main): release 7.0.2 #633
Merged
michaelfaith pushed a commit that referenced this pull request Nov 12, 2026
@a-c-slater
chore(main): release 7.0.2 (#633)
0f51908
🤖 I have created a release *beep* *boop*
---


##
[7.0.2](v7.0.1...v7.0.2)
(2026-11-12)


### 🩹 Bug Fixes

* cleaner user facing error handling and tests for config file points of
failure ([#620](#620))
([0022c2e](0022c2e))
* Readme error message should be user friendly not a quiet fail
([#617](#617))
([9c378f9](9c378f9))
* run git commands without a shell
([#588](#588))
([f9d3ee2](f9d3ee2))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: a-c-slater[bot] <354703433+a-c-slater[bot]@users.noreply.github.com>
michaelfaith pushed a commit that referenced this pull request Nov 12, 2026
@lwasser
test: add test for bare command all-contributors (#643)
6db0431
closes #642 

this builds on #620 so i'll open as a draft and then when that merges,
open this one.
**What**:

This pr makes a small change to run-cli.js to allow us to capture the
output of `all-contributors` which displays a prompt that the user needs
to respond to (so it intentionally hangs) . To make sure the user sees a
prompt we force a "break" when text output is rendered on the screen and
make sure the text that we expect is there.

**Why**:

Cause tests are good. 🙃 
**How**:

- [ ] Documentation
- [x] Tests
- [x] Ready to be merged <!-- In your opinion, is this ready to be
merged as soon as it's reviewed? -->
- [ ] Added myself to contributors table <!-- this is optional, see the
contributing guidelines for instructions -->

<!-- feel free to add additional comments -->
@github-actions

github-actions Bot commented Nov 25, 2026

Copy link
Copy Markdown

@all-contributors please add lwasser for code.

🤖 Beep boop! This comment was added automatically by all-contributors-auto-action.
Not all contributions can be detected from Git & GitHub alone. Please comment any missing contribution types this bot missed.
...and of course, thank you for contributing! 💙

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@michaelfaith michaelfaith michaelfaith approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

type: tests Changes to tests

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@lwasser @michaelfaith
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.