@misterhuydo/sentinel 1.6.4 → 1.6.6

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/.cairn/.hint-lock CHANGED
@@ -1 +1 @@
1
- 2026-04-24T12:01:49.183Z
1
+ 2026-04-24T13:18:30.501Z
@@ -1,6 +1,6 @@
1
1
  {
2
- "message": "Auto-checkpoint at 2026-04-24T12:05:54.299Z",
3
- "checkpoint_at": "2026-04-24T12:05:54.301Z",
2
+ "message": "Auto-checkpoint at 2026-04-24T13:18:47.525Z",
3
+ "checkpoint_at": "2026-04-24T13:18:47.527Z",
4
4
  "active_files": [
5
5
  "J:\\Projects\\Sentinel\\cli\\bin\\sentinel.js",
6
6
  "J:\\Projects\\Sentinel\\cli\\lib\\test.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@misterhuydo/sentinel",
3
- "version": "1.6.4",
3
+ "version": "1.6.6",
4
4
  "description": "Sentinel — Autonomous DevOps Agent installer and manager",
5
5
  "bin": {
6
6
  "sentinel": "./bin/sentinel.js"
@@ -1 +1 @@
1
- __version__ = "1.6.4"
1
+ __version__ = "1.6.6"
@@ -176,8 +176,12 @@ def maven_compile_check(local_path: str, timeout: int = 300) -> tuple[bool, str]
176
176
  mvn = shutil.which("mvn")
177
177
  if not mvn:
178
178
  raise MissingToolError("mvn")
179
+ # `-U` forces mvn to re-check Nexus on every call. Without it, a "not found"
180
+ # response (e.g. when called before Jenkins finishes publishing the new
181
+ # artifact) gets cached locally and all retries within the next ~24h see
182
+ # the stale negative — making cascade re-tries silently impossible.
179
183
  r = subprocess.run(
180
- [mvn, "compile", "-DskipTests", "-q", "--batch-mode"],
184
+ [mvn, "compile", "-DskipTests", "-U", "-q", "--batch-mode"],
181
185
  cwd=local_path,
182
186
  capture_output=True,
183
187
  text=True,
@@ -263,12 +267,12 @@ def apply_and_commit(
263
267
  logger.error("git pull failed for %s:\n%s", repo.repo_name, r.stderr)
264
268
  return "failed", ""
265
269
 
266
- r = _git(["apply", "--check", "--ignore-whitespace", str(patch_path)], cwd=local_path, env=env)
270
+ r = _git(["apply", "--check", "--recount", "--ignore-whitespace", str(patch_path)], cwd=local_path, env=env)
267
271
  if r.returncode != 0:
268
272
  logger.error("Patch dry-run failed for %s:\n%s", event.fingerprint, r.stderr)
269
273
  return "failed", ""
270
274
 
271
- r = _git(["apply", "--ignore-whitespace", str(patch_path)], cwd=local_path, env=env)
275
+ r = _git(["apply", "--recount", "--ignore-whitespace", str(patch_path)], cwd=local_path, env=env)
272
276
  if r.returncode != 0:
273
277
  logger.error("git apply failed for %s:\n%s", event.fingerprint, r.stderr)
274
278
  return "failed", ""
@@ -377,7 +381,7 @@ def apply_and_commit_multi(
377
381
  dry_run_failures.append(f"{name}: git pull failed: {r.stderr.strip()[:200]}")
378
382
  continue
379
383
  # Dry-run
380
- r = _git(["apply", "--check", "--ignore-whitespace", str(sub_path)],
384
+ r = _git(["apply", "--check", "--recount", "--ignore-whitespace", str(sub_path)],
381
385
  cwd=repo.local_path, env=env)
382
386
  if r.returncode != 0:
383
387
  dry_run_failures.append(f"{name}: dry-run failed: {r.stderr.strip()[:200]}")
@@ -409,7 +413,7 @@ def apply_and_commit_multi(
409
413
  "reason": "", "sub_patch_path": sub_path,
410
414
  }
411
415
 
412
- r = _git(["apply", "--ignore-whitespace", str(sub_path)],
416
+ r = _git(["apply", "--recount", "--ignore-whitespace", str(sub_path)],
413
417
  cwd=repo.local_path, env=env)
414
418
  if r.returncode != 0:
415
419
  entry["reason"] = f"apply failed: {r.stderr.strip()[:200]}"