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

fix: revert to original prompt implementation #968

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

mdonnalley
Copy link
Contributor

@mdonnalley mdonnalley commented Feb 23, 2024

Revert the change made to ux.prompt by #953

This change resolved the bug reported in #952 but introduced other issues involving the prompt not timing in non-TTY environments. Since we plan to remove (or greatly reduce the functionality of) the ux module in the next major version, we're going to live with #952 for now. If people want a better prompt, then can switch to a dedicated library like inquirer.

@@ -153,7 +154,7 @@ jobs:
with:
repo: oclif/plugin-plugins
os: ${{ matrix.os }}
command: 'yarn test:integration'
command: yarn test:integration --retries 3
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: external-test could use the normal retries code
salesforcecli/github-workflows/.github/actions/retry instead of all of its consumers need to do this

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll update this

Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, actually. I don't think this will work since external-test.yml uses working-directory. An external action (uses) needs to support passing it in, which the retry action we use does not https://github.com/nick-fields/retry

https://stackoverflow.com/questions/58139175/running-actions-in-another-directory#comment126980684_63122434

Copy link
Contributor Author

@mdonnalley mdonnalley Feb 23, 2024

Choose a reason for hiding this comment

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

@iowillhoit @mshanemc I don't think we can use the retry action since you need to be able to set the working_directory, which as far as I can tell isn't possible with that action

Looks like Eric beat me to it 😄

Copy link
Contributor

@iowillhoit iowillhoit Feb 23, 2024

Choose a reason for hiding this comment

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

haha exactly 😅 We were both looking at this at the same time ^

@iowillhoit iowillhoit merged commit 66cab67 into main Feb 23, 2024
61 checks passed
@iowillhoit iowillhoit deleted the mdonnalley/revert-prompt branch February 23, 2024 18:47
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.

3 participants