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

Move load tests to the bottom of the core file #1677

Merged
merged 1 commit into from Aug 5, 2023

Conversation

alexpetros
Copy link
Collaborator

@alexpetros alexpetros commented Aug 5, 2023

Description

This "resolves" a timing bug that was occurring in the CI, where these tests would run before the htmx was ready (only in the GitHub actions servers). Not proud of this as a fix but I would like the CI to work again ASAP.

The bug is related to the change from these PRs:

I still think the behavior in these PRs is correct. As best I can tell from MDN Documentation, the loading state happens before all the deferred scripts are loaded but DOMContentLoaded fires after deferred scripts are loaded, even though the MDN page says "[loading] state indicates that the DOMContentLoaded event is about to fire". Which is what we want—we want it to be ready when the scripts are loaded, but we don't care if all the images are loaded.

What needs to probably happen in the future is that we hold the tests until the ready event has fired.

This "resolves" a timing bug that was ocurring in the CI, where these
tests would run before htmx was loaded (only in the GitHub actions
servers). Not proud of this as a fix but I would like the CI to work
again ASAP.
@alexpetros alexpetros added devops Changes to the repository structure or project management ready for review Issues that are ready to be considered for merging labels Aug 5, 2023
@1cg 1cg merged commit c126d90 into bigskysoftware:dev Aug 5, 2023
1 check passed
@1cg
Copy link
Contributor

1cg commented Aug 5, 2023

oof

@alexpetros alexpetros deleted the test branch August 5, 2023 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops Changes to the repository structure or project management ready for review Issues that are ready to be considered for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants