Repository navigation
fix(espol_bot): the Académico sign-in starts even when its mailbox id begins with a dash - #174
Merged
Merged
Conversation
… begins with a dash secrets.token_urlsafe gives a mailbox starting with "-" one time in 64. The worker was started as `portal-worker <mailbox>`, argparse read it as an option and exited, so no «Conectar Académico» button arrived and the mailbox stayed in "starting". The worker now gets `-- <mailbox>`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
About 1 in 64 Académico sign-ins never sent the «🎓 Conectar Académico» button. Vinci said the button was on its way, but nothing arrived.
relay.issuenames the mailbox withsecrets.token_urlsafe(24), which starts with-one time in 64.portal_login.launchstarted the worker asespol-bot portal-worker <mailbox>, so argparse read the mailbox as an option and exited (error: the following arguments are required: mailboxinportal-worker.log). The mailbox stayed instartinguntil the next request replaced it. The worker is now started with-- <mailbox>.Found in the E2E for #173:
test_academicostep 5 (the second sign-in) waited 120 s for the button, and the worker log had exactly that error. I reproduced it by hand:espol-bot portal-worker -abcgives the same error, andportal-worker -- -abcgets past argparse. The E2E was not rerun; per AGENTS.md, a one-line fix doesn't get a rerun.Docs: none needed. The flow in uso.md and features/academico.md is unchanged, and this only fixes a launch that sometimes failed.