Skip to content

Conversation

@ericholscher
Copy link
Member

@ericholscher ericholscher commented Nov 6, 2025

AI debugged this and said this, which seems reasonable -- sounds like a race condition on the existance of the config file.

AI response:

The key issue was:

  • Before: When the config file was found, it set _show_config_step_executed = True and returned False
  • On subsequent calls, if _show_config_step_executed existed, it would always return False
  • But when the config file was NOT found, no cache was set, so the function would re-evaluate on every call

This inconsistency led to the wizard thinking a step should exist at one point but not at another, causing the KeyError.

Fixes https://read-the-docs.sentry.io/issues/5995127471

AI debugged this and said this, which seems reasonable -- sounds like a race condition on the existance of the config file.

AI response:

The key issue was:

* Before: When the config file was found, it set _show_config_step_executed = True and returned False
* On subsequent calls, if _show_config_step_executed existed, it would always return False
* But when the config file was NOT found, no cache was set, so the function would re-evaluate on every call

This inconsistency led to the wizard thinking a step should exist at one point but not at another, causing the KeyError.
@ericholscher ericholscher requested a review from a team as a code owner November 6, 2025 15:09
@ericholscher ericholscher requested a review from stsewd November 6, 2025 15:09
@ericholscher ericholscher requested a review from humitos November 12, 2025 14:05
@ericholscher
Copy link
Member Author

Keep seeing this one pop up in Sentry, so would love a peek at this -- I'm not 100% sure it's the issue, but seems worth a try.

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