Skip to content

Close #1097, wrong sign-in loses execution context b/c missing nav detection#1100

Open
plocket wants to merge 5 commits into
v5from
1097_githubnyou_failures_2
Open

Close #1097, wrong sign-in loses execution context b/c missing nav detection#1100
plocket wants to merge 5 commits into
v5from
1097_githubnyou_failures_2

Conversation

@plocket

@plocket plocket commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Also,

  • Removes custom timeout handling from sign-in Step. We don't handle it internally from what I can tell. This may have been a crucial part of the problem
  • Switch screenshots/pics to still store HTML, since it doesn't show any sensitive answers.

[I'm not completely sure these fixes address the symptoms I saw, namely all subsequent tests failing, but tests are consistently passing now. The fix of navigation ]

In this PR, I have:

  • [NA] Added tests for any new features or bug fixes (if relevant)
  • Added my changes to the CHANGELOG.md at the top, under the "Unreleased" section
  • Ensured issues that this PR closes will be automatically closed

Reason for this PR

[Waiting for navigation after signing in/failing to sign in and timing may have lined up just right in GitHub+You tests to trigger a failure when a user fails to log in. That, in combination with the disabled timeout and our dev server's setting to allow long loading times may have been enough to cause all of the subsequent tests to fail. I'm not completely sure because the tests should have kept running long enough for the server to recover, but I can no longer replicate the bug.

Replicating and digging might help us find out if adding a server health check to the sign-in Step could help at least give more helpful error messages. Maybe we should add a debug log in the server status check itself when the server isn't available. Maybe we already have it! Maybe we should fully log it to the authors.

Potential replication for further debugging: Maybe undoing the navigation detection and timeout handling would allow us to replicate the bug and dig deeper. I don't have a lot of time to give this right now, though.]

Links to any solved or related issues

Close #1097
Close #1099

Any manual testing I have done to ensure my PR is working

Manually triggered our GitHub+You tests several times (usually 10) to check for a repeat of the error.

Collaborators

Co-authored-by: fractalkitty 72811467+fractalkitty@users.noreply.github.com
Co-authored-by: Jamie Cash james.cash@occasionallycogent.com
Co-authored-by: cthulahoops adam@cthulahoops.org

plocket added 5 commits June 24, 2026 10:43
excludes field values.

‼️ NEVER USE REAL USERS' ANSWERS IN ALKILN TESTS. This HTML can still reveal information about a user's answers. For example, some answers will reveal new questions. That will change the code of the revealed fields and that code will be in the HTML.

🖊️ Before merging remove temporary debugging logs.

Also breaks out the anonymous function in `Before()` to attempt better error tracing. Goal: try to repeat this for other functions in that file.

Addresses #1097 in trying to see more information about our current test failure.
@plocket plocket marked this pull request as ready for review June 27, 2026 12:13
Comment thread lib/steps.js
value: `ALKiln is unable to get any record of this page whatsoever, even the page HTML. Your server may be busy.`
});
}
log.debug({ code: `ALK0282`, level: `note`, }, page_error );

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Add a message to this error

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.

When avoiding taking screenshots of sensitive answers, still get page HTML Failing with GitHub+You on internal test of signin failure

1 participant