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

Use Recoverer middleware #195

Closed
wants to merge 2 commits into from
Closed

Conversation

isinyaaa
Copy link
Contributor

@isinyaaa isinyaaa commented Jul 16, 2024

Description

Recoverer should help diagnose panics, also tries to deliver 500 to clients.

Also force server rebuild on the build action to ensure we're not leaving uncommitted changes.
The implementation has been out-of-date so we also update it.

How Has This Been Tested?

Merge criteria:

  • The commits and have meaningful messages; the author will squash them after approval or will ask to merge with squash.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

isinyaaa added 2 commits July 16, 2024 15:01
As the pipeline builds the server upon a committed version, it's never
checked.
The implementation has been out-of-date so we also update it.

Signed-off-by: Isabella Basso do Amaral <[email protected]>
This should help diagnose panics, also tries to deliver 500 to clients.

[1]: https://pkg.go.dev/github.com/go-chi/chi/middleware#Recoverer

Signed-off-by: Isabella Basso do Amaral <[email protected]>
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign tarilabs for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Comment on lines 80 to -81
@if git diff --exit-code --name-only | grep -q "api/openapi/model-registry.yaml" || \
git diff --exit-code --name-only | grep -q "api/openapi/model-registry.yaml" || \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As the pipeline builds the server upon a committed version, the server is never checked.
It seems we have also forgotten to update it some time ago, I wonder if there's a better way to test this?

@isinyaaa isinyaaa closed this Jul 16, 2024
@isinyaaa isinyaaa deleted the push-zqspuyyvlwqz branch September 3, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant