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

Test: hosting: handle writes during start_room #3492

Conversation

black-sliver
Copy link
Member

What is this fixing or adding?

The /room/<room> route can fail if autohoster writes to DB at the same time. This change will simply retry in hosting test if that happens.

Should fix the failed run
https://github.com/ArchipelagoMW/Archipelago/actions/runs/9421679862/job/25956273385?pr=3489
that was posted on Discord

Maybe we'd also want to add such handling to WebHost itself, but this is out of scope for getting hosting test to work.

How was this tested?

Test still works.

Note: maybe we'd also want to add such handling to WebHost itself,
      but this is out of scope for getting hosting test to work.
@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Jun 8, 2024
@Berserker66
Copy link
Member

When this happens on actual webhost, if I understand it correctly, it would skip that one spinup request, then present an internal server error to the user, correct?
If so, them retrying/hitting f5 "fixes" it, though it's not the best user experience to get presented by that exception.

@black-sliver
Copy link
Member Author

That's my understanding of it, yes.

@black-sliver black-sliver merged commit 302017c into ArchipelagoMW:main Jun 8, 2024
17 checks passed
@black-sliver black-sliver deleted the test-hosting-start-room-exception branch June 8, 2024 15:51
agilbert1412 pushed a commit to agilbert1412/Archipelago that referenced this pull request Jun 13, 2024
Note: maybe we'd also want to add such handling to WebHost itself,
      but this is out of scope for getting hosting test to work.
jnschurig pushed a commit to Tranquilite0/Archipelago-SoulBlazer that referenced this pull request Jun 13, 2024
Note: maybe we'd also want to add such handling to WebHost itself,
      but this is out of scope for getting hosting test to work.
sflavelle pushed a commit to sflavelle/Archipelago-tgc that referenced this pull request Jun 20, 2024
Note: maybe we'd also want to add such handling to WebHost itself,
      but this is out of scope for getting hosting test to work.
qwint pushed a commit to qwint/Archipelago that referenced this pull request Jun 24, 2024
Note: maybe we'd also want to add such handling to WebHost itself,
      but this is out of scope for getting hosting test to work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants