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

Allow bypassing OT Chromium checks in non-prod environments #4705

Merged
merged 4 commits into from
Jan 16, 2025

Conversation

DanielRyanSmith
Copy link
Collaborator

Fixes #4428

This change adds a checkbox to the OT creation form in non-prod environments to skip the Chromium file checks. The server-side code is implemented so that a bypass request would always be ignored in prod environments.

@@ -66,6 +67,10 @@ def get_chromium_files_for_validation() -> dict:
def find_use_counter_value(
body: dict, chromium_files_dict: dict) -> int | None:
"""Find where the use counter is defined and return its value."""
# Chromium file checks can be bypassed, but only in non-prod environments.
Copy link
Collaborator

Choose a reason for hiding this comment

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

optional nit: Should this be factored and live in settings?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This definitely should be - and I'll write an issue to make this change and land that in a separate PR

Copy link
Collaborator

@KyleJu KyleJu left a comment

Choose a reason for hiding this comment

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

LGTM with nits

@DanielRyanSmith DanielRyanSmith merged commit cb9af5e into main Jan 16, 2025
7 checks passed
@DanielRyanSmith DanielRyanSmith deleted the 4428_chromium-checks-bypass branch January 16, 2025 21:10
@DanielRyanSmith
Copy link
Collaborator Author

#4707 created

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.

Allow bypassing of name-in-file requirements for OT creation requests on staging
2 participants