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

Deploy Runner - handle Serverless Compose errors #8

Merged
merged 4 commits into from
Jul 9, 2024
Merged

Conversation

BearHanded
Copy link
Contributor

@BearHanded BearHanded commented Jul 9, 2024

Description

Serverless compose gracefully exits with code 1 on error, thus not tripping the .error() catch in the runner. Add an extra catch for all non-success codes.

This was causing false successes in the deploy step, while logs of errors existed.

Related ticket(s)

N/A


How to test

This action should have failed with an invalid ssm param: https://github.com/Enterprise-CMCS/macpro-mdct-hcbs/actions/runs/9859930365
This action should succeed normally: https://github.com/Enterprise-CMCS/macpro-mdct-hcbs/actions/runs/9860132356

The logging has been adjusted slightly since the first test.

Important updates


Author checklist

  • I have performed a self-review of my code
  • I have added thorough tests, if necessary
  • I have updated relevant documentation, if necessary

convert to a different template: test → val | val → prod

@BearHanded BearHanded marked this pull request as ready for review July 9, 2024 15:56
@BearHanded BearHanded requested a review from braxex as a code owner July 9, 2024 15:56
Copy link

codeclimate bot commented Jul 9, 2024

Code Climate has analyzed commit ecad87a and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (90% is the threshold).

This pull request will bring the total coverage in the repository to 90.0% (0.0% change).

View more on Code Climate.

@BearHanded BearHanded merged commit dcc2a9d into main Jul 9, 2024
17 checks passed
@BearHanded BearHanded deleted the compose-error branch July 9, 2024 16:49
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