mirror of
https://github.com/rustfs/rustfs.git
synced 2026-11-30 20:57:35 +00:00
6dea594858
Replace the OOM-prone Dockerfile.source release LTO build on 16 GB ubuntu-latest (run 45570760149) with a build-candidate job on sm-standard-4 matching ci.yml and reference-parity.yml (reading the warmed ci-dev-ea7eec74fe14 cache via ./.github/actions/setup and scripts/e2e_binary.py). In the ubuntu-latest mint matrix, build a lightweight ubuntu:26.04 runtime image (glibc >= both sm-standard-4 Ubuntu 24.04 glibc 2.39 and the pinned 1.0.5 reference binary's glibc 2.31), symmetrically bind-mount either the verified reference or candidate binary read-only at /usr/bin/rustfs, and enforce SHA-256 provenance on both legs.
492 lines
20 KiB
YAML
492 lines
20 KiB
YAML
# Copyright 2024 RustFS Team
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# MinIO Mint dual-stack comparison against RustFS: multi-SDK client compatibility
|
|
# (rustfs/backlog#2774, T3.3).
|
|
#
|
|
# ceph/s3-tests (see e2e-s3tests.yml, reference-parity.yml, and the ci.yml PR
|
|
# gate) exercises S3 API semantics through boto3 only. Mint complements it by
|
|
# running the functional test suites of many real client SDKs and tools (awscli,
|
|
# mc, aws-sdk-go-v2/php/ruby, minio-go/java/js/py, s3cmd, versioning, ...),
|
|
# catching client-specific signing, encoding, and streaming edge cases a single
|
|
# client cannot.
|
|
#
|
|
# Dual-stack nightly gate (rustfs/backlog#2774): runs the pinned minio/mint
|
|
# image against BOTH:
|
|
# - `legacy`: the pinned reference release in .config/reference-binary.toml,
|
|
# downloaded and SHA-256 verified by ./.github/actions/reference-binary;
|
|
# - `gateway`: the candidate binary built from this checkout by
|
|
# `build-candidate` on `sm-standard-4` (matching `ci.yml` and
|
|
# `reference-parity.yml`, avoiding release-LTO OOM on 16 GB `ubuntu-latest`).
|
|
#
|
|
# Both legs build the same lightweight `ubuntu:26.04` runtime image (glibc
|
|
# >= both `sm-standard-4`'s Ubuntu 24.04 glibc 2.39 and the pinned 1.0.5
|
|
# reference binary's glibc 2.31), symmetrically bind-mount their verified
|
|
# binary read-only at `/usr/bin/rustfs`, run on identical Docker bridge
|
|
# networking (`rustfs-net`, `SERVER_ENDPOINT=rustfs-mint:9000`), and record
|
|
# verified in-container binary provenance (`target.json`). Individual SDK test
|
|
# failures within a leg are data for the comparison, not a leg failure; a
|
|
# missing/empty `log.json` or container startup failure fails the leg. The
|
|
# `compare` job runs `scripts/mint_stack_diff.py` as a fail-closed gate: it
|
|
# verifies distinct binary provenance, writes the Markdown
|
|
# `(sdk, test, legacy, gateway)` diff table to `$GITHUB_STEP_SUMMARY`, uploads
|
|
# `diff.md`/`diff.json`, and fails whenever the diff table is non-empty or
|
|
# either leg lacks valid results.
|
|
#
|
|
# Runner infrastructure (ci-2, backlog#1149; backlog#2774): compiling the RustFS
|
|
# candidate binary needs no Docker daemon and belongs on `sm-standard-4` (28 GB
|
|
# RAM, warmed `ci-dev` cache) because the full release LTO `Dockerfile.source`
|
|
# build OOMs on 16 GB `ubuntu-latest`. Running `rustfs-mint` and `minio/mint`
|
|
# needs a working Docker daemon without self-hosted pod drift (no
|
|
# `/var/run/docker.sock` on `sm-standard-*`), so the `mint` matrix stays on
|
|
# GitHub-hosted `ubuntu-latest`.
|
|
|
|
name: mint
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
suites:
|
|
description: "Space-separated mint suites to run (empty = all, e.g. 'awscli mc minio-go')"
|
|
required: false
|
|
default: ""
|
|
mode:
|
|
description: "Mint mode: core (quick) or full"
|
|
required: true
|
|
type: choice
|
|
default: "core"
|
|
options:
|
|
- core
|
|
- full
|
|
mint-image:
|
|
description: "Mint image reference (empty = pinned default)"
|
|
required: false
|
|
default: ""
|
|
schedule:
|
|
# Nightly at 06:41 UTC, clear of the overnight validation lanes
|
|
# (reference-parity 01:37, e2e-s3tests Sun 02:19, dual-stack-nightly 03:13,
|
|
# gateway-acceptance 03:29, e2e-nightly 04:29, e2e-distributed 05:53).
|
|
- cron: "41 6 * * *"
|
|
|
|
env:
|
|
# Matches ci.yml, cache-warm.yml, and reference-parity.yml: these variables
|
|
# are hashed into the rust-cache key, so build-candidate reads the warmed
|
|
# ci-dev cache on sm-standard-4.
|
|
CARGO_TERM_COLOR: always
|
|
RUST_BACKTRACE: 1
|
|
|
|
S3_ACCESS_KEY: rustfsadmin-ci
|
|
S3_SECRET_KEY: rustfssecret-ci
|
|
S3_REGION: us-east-1
|
|
|
|
MINT_SUITES: ${{ github.event.inputs.suites || '' }}
|
|
MINT_MODE: ${{ github.event.inputs.mode || 'core' }}
|
|
# minio/mint:edge is a rolling tag, so an unpinned run is not reproducible and
|
|
# can go red purely from an upstream mint change (ci-2, backlog#1149). Pin the
|
|
# default to the linux/amd64 digest resolved on 2026-07-10. workflow_dispatch
|
|
# can still override via the `mint-image` input (e.g. to test a newer edge).
|
|
# Refresh: docker manifest inspect minio/mint:edge --verbose | grep digest
|
|
# (or, without a docker daemon:)
|
|
# TOKEN=$(curl -s "https://auth.docker.io/token?service=registry.docker.io&scope=repository:minio/mint:pull" | jq -r .token)
|
|
# curl -sI -H "Authorization: Bearer $TOKEN" \
|
|
# -H "Accept: application/vnd.docker.distribution.manifest.v2+json" \
|
|
# https://registry-1.docker.io/v2/minio/mint/manifests/edge | grep -i docker-content-digest
|
|
MINT_IMAGE: ${{ github.event.inputs.mint-image || 'minio/mint:edge@sha256:08a05e68893c68be2a83b6f79556853ed6aa3c6c9e64c823a00853e4e55d2200' }}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.event_name != 'schedule' }}
|
|
|
|
# Only alert-on-failure needs more than read access; it declares its own
|
|
# job-level `issues: write`.
|
|
permissions:
|
|
contents: read
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
build-candidate:
|
|
name: Build candidate binary
|
|
# Disk, critical-path CPU, and cache ownership: the same debug build as
|
|
# ci.yml's build-rustfs-debug-binary and reference-parity.yml's
|
|
# build-candidate, reading the ci-dev cache written on sm-standard-4 (and
|
|
# avoiding release-LTO OOM on 16 GB ubuntu-latest).
|
|
runs-on: sm-standard-4
|
|
timeout-minutes: 60
|
|
env:
|
|
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup Rust environment
|
|
uses: ./.github/actions/setup
|
|
with:
|
|
rust-version: stable
|
|
cache-shared-key: ci-dev-ea7eec74fe14
|
|
cache-save-if: 'false'
|
|
install-build-packaging-tools: 'false'
|
|
install-test-tools: 'false'
|
|
|
|
- name: Build debug binary
|
|
run: python3 scripts/e2e_binary.py build --bins --features e2e-test-hooks
|
|
|
|
- name: Upload candidate binary
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: mint-candidate-binary
|
|
overwrite: true
|
|
path: |
|
|
target/debug/rustfs
|
|
target/debug/rustfs.e2e.json
|
|
if-no-files-found: error
|
|
retention-days: 1
|
|
|
|
mint:
|
|
name: mint (${{ matrix.leg }})
|
|
needs: [build-candidate]
|
|
# GitHub-hosted: reliably provides a running Docker daemon + python3.
|
|
# Self-hosted sm-standard-* pods do not provide /var/run/docker.sock.
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 120
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
leg: [legacy, gateway]
|
|
env:
|
|
LEG: ${{ matrix.leg }}
|
|
NO_PROXY: 127.0.0.1,localhost,::1
|
|
steps:
|
|
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Fetch pinned reference binary
|
|
id: reference
|
|
if: matrix.leg == 'legacy'
|
|
uses: ./.github/actions/reference-binary
|
|
|
|
- name: Download candidate binary
|
|
if: matrix.leg == 'gateway'
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: mint-candidate-binary
|
|
path: ${{ runner.temp }}/candidate
|
|
|
|
- name: Build lightweight runtime image
|
|
run: |
|
|
set -euo pipefail
|
|
ctx="${RUNNER_TEMP}/mint-runtime-ctx"
|
|
rm -rf "${ctx}"
|
|
mkdir -p "${ctx}"
|
|
cp entrypoint.sh "${ctx}/entrypoint.sh"
|
|
cp -R bootstrap "${ctx}/bootstrap"
|
|
cat > "${ctx}/Dockerfile" <<'EOF'
|
|
FROM ubuntu:26.04
|
|
|
|
RUN set -eux; \
|
|
export DEBIAN_FRONTEND=noninteractive; \
|
|
apt-get update; \
|
|
apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
curl \
|
|
jq \
|
|
tzdata \
|
|
coreutils; \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN set -eux; \
|
|
groupadd -g 10001 rustfs; \
|
|
useradd -u 10001 -g rustfs -M -s /usr/sbin/nologin rustfs; \
|
|
mkdir -p /data/.rustfs/events /data/.rustfs/audit /logs /opt/rustfs /app; \
|
|
ln -s /data/.rustfs/events /opt/rustfs/events; \
|
|
ln -s /data/.rustfs/audit /opt/rustfs/audit; \
|
|
chown -R rustfs:rustfs /data /logs /app; \
|
|
chmod 0750 /data /logs
|
|
|
|
WORKDIR /app
|
|
COPY entrypoint.sh /etc/rustfs/entrypoint.sh
|
|
COPY bootstrap/ /etc/rustfs/bootstrap/
|
|
RUN chmod +x /etc/rustfs/entrypoint.sh && \
|
|
ln -s /etc/rustfs/entrypoint.sh /entrypoint.sh
|
|
|
|
ENV RUSTFS_VOLUMES="/data" \
|
|
RUST_LOG="warn" \
|
|
RUSTFS_USERNAME="rustfs" \
|
|
RUSTFS_GROUPNAME="rustfs" \
|
|
RUSTFS_UID="10001" \
|
|
RUSTFS_GID="10001"
|
|
|
|
EXPOSE 9000
|
|
VOLUME ["/data"]
|
|
|
|
ENTRYPOINT ["/etc/rustfs/entrypoint.sh"]
|
|
CMD ["/usr/bin/rustfs"]
|
|
EOF
|
|
docker build -t rustfs-mint-runtime "${ctx}"
|
|
|
|
- name: Start RustFS
|
|
env:
|
|
REFERENCE_PATH: ${{ steps.reference.outputs.path }}
|
|
CANDIDATE_PATH: ${{ runner.temp }}/candidate/rustfs
|
|
run: |
|
|
set -euo pipefail
|
|
docker network inspect rustfs-net >/dev/null 2>&1 || docker network create rustfs-net
|
|
docker rm -f rustfs-mint >/dev/null 2>&1 || true
|
|
rm -rf /tmp/rustfs-mint
|
|
mkdir -p /tmp/rustfs-mint
|
|
case "${LEG}" in
|
|
legacy) binary_path="${REFERENCE_PATH}" ;;
|
|
gateway) binary_path="${CANDIDATE_PATH}" ;;
|
|
*) echo "unknown mint leg: ${LEG}" >&2; exit 1 ;;
|
|
esac
|
|
test -f "${binary_path}"
|
|
chmod 0755 "${binary_path}"
|
|
test -x "${binary_path}"
|
|
# The four disks share one physical device on the runner (a single
|
|
# loopback filesystem), so the local physical-disk-independence guard
|
|
# would refuse to start. Bypass it — this is the CI use case the guard
|
|
# explicitly sanctions via RUSTFS_UNSAFE_BYPASS_DISK_CHECK.
|
|
docker run -d --name rustfs-mint \
|
|
--network rustfs-net \
|
|
-p 9000:9000 \
|
|
-e RUSTFS_ADDRESS=0.0.0.0:9000 \
|
|
-e RUSTFS_ACCESS_KEY="${S3_ACCESS_KEY}" \
|
|
-e RUSTFS_SECRET_KEY="${S3_SECRET_KEY}" \
|
|
-e RUSTFS_VOLUMES="/data/rustfs{0...3}" \
|
|
-e RUSTFS_UNSAFE_BYPASS_DISK_CHECK=true \
|
|
-e RUST_LOG=rustfs=info \
|
|
-v /tmp/rustfs-mint:/data \
|
|
-v "${binary_path}:/usr/bin/rustfs:ro" \
|
|
rustfs-mint-runtime
|
|
|
|
- name: Wait for RustFS ready
|
|
run: |
|
|
export no_proxy="${NO_PROXY}"
|
|
for _ in {1..60}; do
|
|
if curl -sf http://127.0.0.1:9000/health/ready >/dev/null 2>&1; then
|
|
echo "RustFS (${LEG}) is ready"
|
|
exit 0
|
|
fi
|
|
if [ "$(docker inspect -f '{{.State.Running}}' rustfs-mint 2>/dev/null)" != "true" ]; then
|
|
echo "RustFS (${LEG}) container not running" >&2
|
|
docker logs rustfs-mint || true
|
|
exit 1
|
|
fi
|
|
sleep 2
|
|
done
|
|
echo "Health check timed out (${LEG})" >&2
|
|
docker logs rustfs-mint || true
|
|
exit 1
|
|
|
|
- name: Record server provenance
|
|
env:
|
|
REFERENCE_VERSION: ${{ steps.reference.outputs.version }}
|
|
REFERENCE_SHA256: ${{ steps.reference.outputs.executable-sha256 }}
|
|
CANDIDATE_RECEIPT: ${{ runner.temp }}/candidate/rustfs.e2e.json
|
|
run: |
|
|
set -euo pipefail
|
|
mkdir -p artifacts
|
|
actual_sha256="$(docker exec rustfs-mint sha256sum /usr/bin/rustfs | awk '{print $1}')"
|
|
actual_version="$(docker exec rustfs-mint /usr/bin/rustfs --version | tr '\n' ' ' | sed 's/[[:space:]]*$//')"
|
|
if [[ "${LEG}" == "legacy" ]]; then
|
|
expected_sha256="${REFERENCE_SHA256}"
|
|
else
|
|
expected_sha256="$(python3 -c 'import json, sys; print(json.load(open(sys.argv[1], encoding="utf-8"))["binary_sha256"])' "${CANDIDATE_RECEIPT}")"
|
|
fi
|
|
if [[ "${actual_sha256}" != "${expected_sha256}" ]]; then
|
|
echo "::error::${LEG} container /usr/bin/rustfs sha256 (${actual_sha256}) != verified binary (${expected_sha256})" >&2
|
|
exit 1
|
|
fi
|
|
ACTUAL_SHA256="${actual_sha256}" EXPECTED_SHA256="${expected_sha256}" ACTUAL_VERSION="${actual_version}" python3 - <<'EOF'
|
|
import json, os, pathlib
|
|
|
|
meta = {
|
|
"leg": os.environ["LEG"],
|
|
"binary_sha256": os.environ["ACTUAL_SHA256"],
|
|
"expected_sha256": os.environ["EXPECTED_SHA256"],
|
|
"version": os.environ["ACTUAL_VERSION"],
|
|
}
|
|
if os.environ["LEG"] == "legacy":
|
|
meta["expected_version"] = os.environ["REFERENCE_VERSION"]
|
|
out = pathlib.Path("artifacts/target.json")
|
|
out.write_text(json.dumps(meta, indent=2, sort_keys=True) + "\n", encoding="utf-8")
|
|
print(out.read_text(encoding="utf-8"))
|
|
EOF
|
|
|
|
- name: Run mint
|
|
run: |
|
|
mkdir -p artifacts/mint-log
|
|
# Mint exits non-zero when any SDK test fails; individual failures are
|
|
# comparison data for the fail-closed diff-table gate in `compare`.
|
|
# Capture the exit code and verify log.json exists in the next step.
|
|
set +e
|
|
# shellcheck disable=SC2086 # MINT_SUITES is intentionally word-split
|
|
docker run --rm --network rustfs-net \
|
|
-e SERVER_ENDPOINT=rustfs-mint:9000 \
|
|
-e ACCESS_KEY=${S3_ACCESS_KEY} \
|
|
-e SECRET_KEY=${S3_SECRET_KEY} \
|
|
-e ENABLE_HTTPS=0 \
|
|
-e SERVER_REGION=${S3_REGION} \
|
|
-e MINT_MODE=${MINT_MODE} \
|
|
-v "${PWD}/artifacts/mint-log:/mint/log" \
|
|
"${MINT_IMAGE}" ${MINT_SUITES}
|
|
rc=$?
|
|
echo "MINT_RC=${rc}" >> "$GITHUB_ENV"
|
|
echo "${rc}" > artifacts/mint-exit-code.txt
|
|
|
|
- name: Summarize leg results
|
|
run: |
|
|
python3 - <<'EOF'
|
|
import json, os, pathlib, sys
|
|
from collections import Counter
|
|
|
|
leg = os.environ["LEG"]
|
|
log = pathlib.Path("artifacts/mint-log/log.json")
|
|
if not log.is_file():
|
|
print(f"mint ({leg}) produced no log.json - infrastructure failure", file=sys.stderr)
|
|
sys.exit(int(os.environ.get("MINT_RC", "1")) or 1)
|
|
|
|
per_suite: dict[str, Counter] = {}
|
|
failures: list[tuple[str, str, str]] = []
|
|
entries = 0
|
|
for line in log.read_text(encoding="utf-8").splitlines():
|
|
line = line.strip()
|
|
if not line or not line.startswith("{"):
|
|
continue
|
|
entry = json.loads(line)
|
|
entries += 1
|
|
suite = entry.get("name", "unknown")
|
|
status = str(entry.get("status", "unknown")).upper()
|
|
per_suite.setdefault(suite, Counter())[status] += 1
|
|
if status == "FAIL":
|
|
failures.append((suite, entry.get("function") or "", entry.get("error") or entry.get("message") or ""))
|
|
|
|
if entries == 0:
|
|
print(f"mint ({leg}) wrote zero JSON test entries - infrastructure failure", file=sys.stderr)
|
|
sys.exit(1)
|
|
|
|
lines = [f"# Mint results ({leg})", "", "| Suite | Pass | Fail | N/A |", "|-------|------|------|-----|"]
|
|
for suite in sorted(per_suite):
|
|
c = per_suite[suite]
|
|
lines.append(f"| {suite} | {c.get('PASS', 0)} | {c.get('FAIL', 0)} | {c.get('NA', 0)} |")
|
|
lines.append("")
|
|
if failures:
|
|
lines.append(f"## Failures ({len(failures)})")
|
|
lines.append("")
|
|
for suite, func, err in failures:
|
|
first = err.strip().splitlines()[0] if err.strip() else ""
|
|
lines.append(f"- `{suite}` / `{func}` {first}")
|
|
lines.append("")
|
|
|
|
report = "\n".join(lines)
|
|
print(report)
|
|
summary = os.environ.get("GITHUB_STEP_SUMMARY")
|
|
if summary:
|
|
with open(summary, "a", encoding="utf-8") as fh:
|
|
fh.write(report + "\n")
|
|
EOF
|
|
|
|
- name: Collect RustFS logs
|
|
if: always()
|
|
run: |
|
|
mkdir -p artifacts/rustfs-mint
|
|
docker logs rustfs-mint > artifacts/rustfs-mint/rustfs.log 2>&1 || true
|
|
|
|
- name: Upload leg artifacts
|
|
if: always() && env.ACT != 'true'
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: mint-leg-${{ matrix.leg }}
|
|
overwrite: true
|
|
path: artifacts/**
|
|
if-no-files-found: error
|
|
retention-days: 14
|
|
|
|
compare:
|
|
name: Compare legacy vs gateway
|
|
needs: [build-candidate, mint]
|
|
if: always() && needs.build-candidate.result == 'success'
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Download leg artifacts
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
pattern: mint-leg-*
|
|
path: mint-download
|
|
|
|
- name: Compare mint results (fail-closed diff-table gate)
|
|
env:
|
|
MINT_JOB_RESULT: ${{ needs.mint.result }}
|
|
run: |
|
|
set -uo pipefail
|
|
mkdir -p mint-diff
|
|
python3 scripts/mint_stack_diff.py \
|
|
mint-download/mint-leg-legacy \
|
|
mint-download/mint-leg-gateway \
|
|
--require-meta \
|
|
--markdown mint-diff/diff.md \
|
|
--json mint-diff/diff.json
|
|
status=$?
|
|
if [[ -f mint-diff/diff.md ]]; then
|
|
cat mint-diff/diff.md >> "$GITHUB_STEP_SUMMARY"
|
|
fi
|
|
if [[ "${MINT_JOB_RESULT}" != "success" ]]; then
|
|
echo "::error::mint leg job finished with '${MINT_JOB_RESULT}'"
|
|
if [[ "${status}" -eq 0 ]]; then
|
|
status=1
|
|
fi
|
|
fi
|
|
exit "${status}"
|
|
|
|
- name: Upload diff report
|
|
if: always() && env.ACT != 'true'
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: mint-diff
|
|
overwrite: true
|
|
path: mint-diff/**
|
|
if-no-files-found: warn
|
|
retention-days: 14
|
|
|
|
alert-on-failure:
|
|
name: Alert on scheduled failure
|
|
needs: [build-candidate, mint, compare]
|
|
# `always()` is required: without it this job is skipped when a needed
|
|
# job fails. Alerts only for scheduled runs (backlog#1149 ci-8) — manual
|
|
# dispatch failures are already watched by a human.
|
|
if: always() && github.event_name == 'schedule' && contains(needs.*.result, 'failure')
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
permissions:
|
|
contents: read
|
|
issues: write
|
|
steps:
|
|
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a # v7
|
|
with:
|
|
persist-credentials: false
|
|
- name: Open or update failure-tracking issue
|
|
uses: ./.github/actions/schedule-failure-issue
|
|
with:
|
|
github-token: ${{ secrets.BACKLOG_ISSUE_TOKEN }}
|