@stll/oxlint-config 1.2.4 → 1.2.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.
@@ -13,7 +13,7 @@ let picomatch = require("picomatch");
13
13
  picomatch = require_rolldown_runtime.__toESM(picomatch, 1);
14
14
  //#endregion
15
15
  //#region src/toolchain-consumer-checks.ts
16
- const consumerRunnerVersion = "1.2.4";
16
+ const consumerRunnerVersion = "1.2.6";
17
17
  const consumerCheckWorkflow = "stella/.github/.github/workflows/package-consumer-compat.yml";
18
18
  const record$7 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
19
19
  const repositoryDirectory = (value) => typeof value === "string" && value !== "" && !value.includes("\\") && !value.includes("${{") && !value.split("").some((character) => {
@@ -10,7 +10,7 @@ import { LineCounter, isAlias, isMap, isNode, isScalar, isSeq, parseAllDocuments
10
10
  import picomatch from "picomatch";
11
11
  //#endregion
12
12
  //#region src/toolchain-consumer-checks.ts
13
- const consumerRunnerVersion = "1.2.4";
13
+ const consumerRunnerVersion = "1.2.6";
14
14
  const consumerCheckWorkflow = "stella/.github/.github/workflows/package-consumer-compat.yml";
15
15
  const record$7 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
16
16
  const repositoryDirectory = (value) => typeof value === "string" && value !== "" && !value.includes("\\") && !value.includes("${{") && !value.split("").some((character) => {
@@ -278,22 +278,35 @@ const renderCloudServiceInstall = ({ services, postgres, valkey, valkeyArtifacts
278
278
  //#region src/cloud-setup-network.ts
279
279
  /** Shared deadlines cover retries and package-manager subprocesses. */
280
280
  const renderCloudNetwork = () => String.raw`
281
+ release_log_holders() {
282
+ # Processes left by package scripts may still hold a step log after the command exits.
283
+ # Setup starts its own services later, so end them rather than let them write into a
284
+ # deleted log for their whole lifetime.
285
+ # One find over all descriptor links; no process per descriptor.
286
+ local log="$1" root="${"$"}{CLOUD_PROC_ROOT:-/proc}" fd pid
287
+ while IFS= read -r fd; do
288
+ pid="${"$"}{fd%/fd/*}"
289
+ pid="${"$"}{pid##*/}"
290
+ [[ "$pid" =~ ^[0-9]+$ && "$pid" != "$$" ]] || continue
291
+ kill -TERM "$pid" 2>/dev/null || true
292
+ done < <(find "$root" -mindepth 3 -maxdepth 3 -path "$root/[0-9]*/fd/*" -lname "$log" 2>/dev/null)
293
+ }
281
294
  network_run() (
282
295
  local host="$1" seconds="$2" status=0
283
296
  shift 2
284
- set -o pipefail
285
297
  network_log="$(mktemp)" || return "$?"
286
298
  trap 'rm -f -- "$network_log"' EXIT
287
299
  trap 'exit 129' HUP
288
300
  trap 'exit 130' INT
289
301
  trap 'exit 143' TERM
290
- if timeout --signal=TERM --kill-after=5s "$seconds"s "$@" 2>&1 | tee "$network_log"; then
291
- return 0
292
- else
293
- # Scalar Bash array expansion reads PIPESTATUS[0] before assignment resets it.
294
- status="$PIPESTATUS"
295
- fi
296
- [[ "$status" != 0 ]] || fail 'Cannot capture network command output'
302
+ # Output goes to a file, never a pipe: package scripts may leave processes that keep
303
+ # inherited descriptors open, and a pipe reader would wait for them past the command.
304
+ # Input is never the terminal: timeout runs the command outside the foreground process
305
+ # group, where apt restoring terminal settings on a terminal stdin stops it for good.
306
+ timeout --signal=TERM --kill-after=5s "$seconds"s "$@" < /dev/null > "$network_log" 2>&1 || status=$?
307
+ release_log_holders "$network_log"
308
+ cat -- "$network_log" || fail 'Cannot capture network command output'
309
+ [[ "$status" != 0 ]] || return 0
297
310
  if [[ "$status" == 124 || "$status" == 137 || "$status" == 28 ]] || grep -Eiq 'timed[[:space:]-]+out|time[[:space:]-]+out|timeout[[:space:]]+(was[[:space:]]+)?(reached|expired)|(connection|operation|socket)[[:space:]-]+timeout' "$network_log"; then
298
311
  fail "download timed out: $host"
299
312
  fi