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

Fix CI bot detection based on the Julia-CI-Variables header #206

Merged
merged 2 commits into from
May 28, 2024

Conversation

bauglir
Copy link
Contributor

@bauglir bauglir commented May 27, 2024

I was messing about hitting the /registries endpoint while configuring the Julia-CI-Variables header and noticed that none of the values I set resulted in getting the "eager" flavor.

It turns out the previous implementation would only end up checking the first two characters of each semi-colon separated entry in the header, effectively causing CI bots to not be detected.

The previous implementation would only end up checking the first two
characters of each semi-colon separated entry in the header, effectively
causing CI bots to not be detected.
@DilumAluthge
Copy link
Member

It would be good to add a test so that this doesn't regress in the future.

@giordano
Copy link
Member

It's there already?

@bauglir
Copy link
Contributor Author

bauglir commented May 28, 2024

I had indeed already added tests for the behavior. I did notice there weren't any tests for the Julia-Registry-Preference header. I'd be happy to add some for those as well as that is closely related.

@DilumAluthge
Copy link
Member

It's there already?

🤦 That's on me, I completely missed that.

@fredrikekre fredrikekre merged commit 61bd2dd into JuliaPackaging:master May 28, 2024
3 of 4 checks passed
@bauglir bauglir deleted the fix-ci-bot-detection branch May 28, 2024 08:42
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.

4 participants