Skip to content

Commit 43785ca

Browse files
authored
chore(autofix): Change default automation tuning from 'off' to 'low' (#93957)
Turns automatic autofix on by default
1 parent c1b7e74 commit 43785ca

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/sentry/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ class InsightModules(Enum):
721721
TARGET_SAMPLE_RATE_DEFAULT = 1.0
722722
SAMPLING_MODE_DEFAULT = "organization"
723723
ROLLBACK_ENABLED_DEFAULT = True
724-
DEFAULT_AUTOFIX_AUTOMATION_TUNING_DEFAULT = "off"
724+
DEFAULT_AUTOFIX_AUTOMATION_TUNING_DEFAULT = "low"
725725
DEFAULT_SEER_SCANNER_AUTOMATION_DEFAULT = False
726726
INGEST_THROUGH_TRUSTED_RELAYS_ONLY_DEFAULT = False
727727

src/sentry/projectoptions/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
register(key="sentry:tempest_fetch_dumps", default=False)
203203

204204
# Should autofix run automatically on new issues
205-
register(key="sentry:autofix_automation_tuning", default="off")
205+
register(key="sentry:autofix_automation_tuning", default="low")
206206

207207
# Should seer scanner run automatically on new issues
208208
register(key="sentry:seer_scanner_automation", default=False)

tests/sentry/api/endpoints/test_project_details.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2065,15 +2065,15 @@ def test_autofix_automation_tuning(self):
20652065
"trigger-autofix-on-issue-summary feature enabled"
20662066
in resp.data["autofixAutomationTuning"][0]
20672067
)
2068-
assert self.project.get_option("sentry:autofix_automation_tuning") == "off" # default
2068+
assert self.project.get_option("sentry:autofix_automation_tuning") == "low" # default
20692069

20702070
# Test with feature flag but invalid value - should fail
20712071
with self.feature("organizations:trigger-autofix-on-issue-summary"):
20722072
resp = self.get_error_response(
20732073
self.org_slug, self.proj_slug, autofixAutomationTuning="invalid", status_code=400
20742074
)
20752075
assert '"invalid" is not a valid choice.' in resp.data["autofixAutomationTuning"][0]
2076-
assert self.project.get_option("sentry:autofix_automation_tuning") == "off" # default
2076+
assert self.project.get_option("sentry:autofix_automation_tuning") == "low" # default
20772077

20782078
# Test with feature flag and valid value - should succeed
20792079
resp = self.get_success_response(

tests/sentry/api/serializers/test_project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,9 +809,9 @@ def test_toolbar_allowed_origins(self):
809809
assert result["options"]["sentry:toolbar_allowed_origins"].split("\n") == origins
810810

811811
def test_autofix_automation_tuning_flag(self):
812-
# Default is "off"
812+
# Default is "low"
813813
result = serialize(self.project, self.user, DetailedProjectSerializer())
814-
assert result["autofixAutomationTuning"] == "off"
814+
assert result["autofixAutomationTuning"] == "low"
815815

816816
# Update the value
817817
self.project.update_option("sentry:autofix_automation_tuning", "high")

0 commit comments

Comments
 (0)