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

[CI] Speed up link checking by testing files concurrently #3623

Merged

Conversation

chalin
Copy link
Contributor

@chalin chalin commented Nov 30, 2023

Since we're using an external link refcahce, I think that it is safe to run checks concurrently. On my local machines this makes the checks run 60% faster. On GH, it seems to just speed it up by 40%, but still, that's pretty good.

@chalin chalin added the CI/infra CI & infrastructure label Nov 30, 2023
@chalin chalin requested a review from a team as a code owner November 30, 2023 11:02
@chalin chalin mentioned this pull request Nov 30, 2023
20 tasks
Copy link
Member

@theletterf theletterf left a comment

Choose a reason for hiding this comment

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

I'm a bit worried about the fact that TestFilesConcurrently is still experimental (https://github.com/wjdp/htmltest/blob/master/README.md?plain=1#L168). Sites like DataDog's docs have it switched off. See also: https://github.com/wjdp/htmltest/wiki/Concurrency

@chalin
Copy link
Contributor Author

chalin commented Nov 30, 2023

@theletterf - right, it is experimental. If we didn't have an external link refcache, I wouldn't enable this feature, for the reasons mention in that wiki page you referenced (thanks for that!). But otherwise, I'm not worried, and feel that it's worth a try. We can always drop it if it causes issues. My 2cents ✨

@chalin
Copy link
Contributor Author

chalin commented Nov 30, 2023

To be clear: this is an experimental feature for checking the website links. We're not affecting the build. What's the worse that can happen? False positives or false negatives or that checking stops working. What's the best that can happen? We speed up link checking w/o any adverse effects :).

Copy link
Member

@theletterf theletterf left a comment

Choose a reason for hiding this comment

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

Sounds good! Let's try this out.

@svrnm svrnm merged commit d95c457 into open-telemetry:main Nov 30, 2023
14 checks passed
@chalin chalin deleted the chalin-im-conc-link-checks-2023-11-30 branch November 30, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/infra CI & infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants