@misterhuydo/sentinel 1.6.17 → 1.6.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.6.
|
|
1
|
+
__version__ = "1.6.18"
|
package/python/sentinel/main.py
CHANGED
|
@@ -275,6 +275,20 @@ async def _handle_error(event: ErrorEvent, cfg_loader: ConfigLoader, store: Stat
|
|
|
275
275
|
return
|
|
276
276
|
|
|
277
277
|
auto_commit = resolve_auto_commit(repo, sentinel)
|
|
278
|
+
auto_release = resolve_auto_release(repo, sentinel)
|
|
279
|
+
|
|
280
|
+
# Health-driven fixes target a service that is *currently down*. Override
|
|
281
|
+
# AUTO_RELEASE=false so the fix actually deploys without waiting for a
|
|
282
|
+
# human `manage_release` confirmation — the service is already broken,
|
|
283
|
+
# the urgency is real. AUTO_COMMIT is left alone so projects with PR-only
|
|
284
|
+
# policies still get a PR (reviewer can fast-track it), but those that
|
|
285
|
+
# already use AUTO_COMMIT=true will trigger Jenkins immediately.
|
|
286
|
+
if (event.logger_name or "") == "health_checker" and not auto_release:
|
|
287
|
+
logger.info(
|
|
288
|
+
"Health-driven fix for %s: forcing AUTO_RELEASE=true (service is down — quick recovery needed)",
|
|
289
|
+
repo.repo_name,
|
|
290
|
+
)
|
|
291
|
+
auto_release = True
|
|
278
292
|
|
|
279
293
|
if Path("SENTINEL_PAUSE").exists():
|
|
280
294
|
logger.info("SENTINEL_PAUSE present — fix activity halted")
|