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

Force failure #388

Closed
wants to merge 1 commit into from
Closed

Force failure #388

wants to merge 1 commit into from

Conversation

jsoref
Copy link
Contributor

@jsoref jsoref commented Dec 27, 2023

Address #385 (comment)

As azure/powershell@v1 now supports macOS, we
need a new way to trigger a failure to show that
ps steps can fail and their failings can be handled.

I'm not particularly fond of this fix. It depends on what the goal of this step was, and I can't really tell. I looked at the various steps that this workflow had and it seems to have evolved a number of times. The current construct seems pretty complicated for something that's just interested in the exit code of an action (which in turn is dependent on it not supporting the tested platform).

It could be simplified to just exit 1 instead of retaining the current commands (which previously were never run).

As azure/powershell@v1 now supports macOS, we
need a new way to trigger a failure to show that
ps steps can fail and their failings can be handled.
@YanaXu
Copy link
Collaborator

YanaXu commented Dec 27, 2023

@jsoref, we're glad you ask this. This workflow file is for negative test cases. It's not for reading but marking all cases we're not supporting right now.
For this case, after your commit was submitted, I've moved all macos test cases to positive test cases.
I'll close this PR since it's not valid now.

@YanaXu YanaXu closed this Dec 27, 2023
@jsoref jsoref deleted the force-failure branch December 27, 2023 08:44
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.

2 participants