Skip to content

Conversation

@blackheaven
Copy link
Contributor

https://wearezeta.atlassian.net/browse/WPB-21392

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@fisx in the issue you have mentioned a sub-5xx error, but monitoring could filter-out 501.

I can also change it to 422 if you prefer.

@blackheaven blackheaven requested review from a team as code owners November 14, 2025 18:02
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Nov 14, 2025
@blackheaven blackheaven changed the title WPB-21392: change federation-not-implemented erre status from 500 to 501 WPB-21392: change federation-not-implemented error status from 500 to 501 Nov 14, 2025
@blackheaven blackheaven force-pushed the gdifolco/WPB-21392-federation-not-implemented-error branch from ba9953c to 585788c Compare November 14, 2025 22:31
@fisx
Copy link
Contributor

fisx commented Nov 17, 2025

@fisx in the issue you have mentioned a sub-5xx error, but monitoring could filter-out 501.

I can also change it to 422 if you prefer.

yes, 422 is great. (with "sub-5xx error", i tried to mean something with status < 500, probably wasn't very clear...)

@fisx fisx changed the title WPB-21392: change federation-not-implemented error status from 500 to 501 WPB-21392: change federation-not-implemented error status from 500 to 422 Nov 17, 2025
retry500Once action = do
action `bindResponse` \resp -> do
if resp.status == 500
if resp.status == 500 || resp.status == 422
Copy link
Member

Choose a reason for hiding this comment

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

Why are we retrying 422, not-implemented error won't go away with a retry right?

Copy link
Contributor

@fisx fisx Nov 17, 2025

Choose a reason for hiding this comment

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

good point! 400 then? or 404?

ah, saw it: we can keep the 422 status, but should remove the == 422 condition here, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It'll break without it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess, at the start of the test, for a little while, all federation is not properly setup

Copy link
Contributor

Choose a reason for hiding this comment

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

in that case i wouldn't worry too much about it. leave it in!

@blackheaven blackheaven force-pushed the gdifolco/WPB-21392-federation-not-implemented-error branch from 96413e5 to 0bf6a39 Compare November 17, 2025 18:56
@fisx fisx merged commit 621793b into develop Nov 18, 2025
10 checks passed
@fisx fisx deleted the gdifolco/WPB-21392-federation-not-implemented-error branch November 18, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants