Files
L'électron rare f55093d6fe
ESP-IDF CI / Host Tests (Unity) (push) Successful in 1m8s
CI / firmware-native (push) Successful in 2m57s
Rust Protection Tests / Cargo test (host) (push) Failing after 3m21s
ESP-IDF CI / ESP-IDF Build (v5.4) (push) Failing after 6m55s
ESP-IDF CI / Memory Budget Gate (push) Has been skipped
qa-cicd-environments / qa-kxkm-s3-build (push) Successful in 8m53s
qa-cicd-environments / qa-sim-host (push) Successful in 2m2s
qa-cicd-environments / qa-kxkm-s3-memory-budget (push) Successful in 11m17s
chore: import KXKM Batterie Parallelator
Context: the project archive (KXKM_Batterie_Parallelator-main) had
no git history locally; a fresh repository is needed to host it on
git.saillant.cc (electron/KXKM_Batterie_Parallelator).

Approach: initialize a new repo on branch main, stage the archive
content, and harden .gitignore before the first commit.

Changes:
- Import the full project tree: firmware/, firmware-idf/,
  firmware-rs/, iosApp/, kxkm-bmu-app/, kxkm-api/, hardware/,
  docs/, specs/, scripts/, models/, tests/
- Keep project dotfiles tracked despite the trailing '.*' ignore
  rule: .github/, .claude/, .superpowers/, .gitattributes,
  .markdownlint.json
- Extend .gitignore: firmware/src/credentials.h (local secrets,
  template kept), kxkm-bmu-app/**/build/ (66 MB compiled iOS
  framework), .remember/ (session data)

Impact: the project can now be maintained on the self-hosted Gitea
forge with a clean, secret-free initial history.
2026-07-04 12:32:28 +02:00

77 lines
2.0 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
repo="${1:-KomplexKapharnaum/KXKM_Batterie_Parallelator}"
branch="${2:-$(git rev-parse --abbrev-ref HEAD)}"
workflow="${3:-qa-cicd-environments}"
out_file="${4:-docs/QA_REMOTE_PROOF_LATEST.md}"
mkdir -p "$(dirname "$out_file")"
now_utc="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
workflows_raw="$(gh workflow list --repo "$repo" 2>/dev/null || true)"
runs_raw="$(gh run list --repo "$repo" --workflow "$workflow" --branch "$branch" --limit 5 2>/dev/null || true)"
dispatch_status="not-attempted"
dispatch_detail=""
if echo "$workflows_raw" | grep -q "$workflow"; then
set +e
dispatch_output="$(gh workflow run "$workflow" --ref "$branch" --repo "$repo" 2>&1)"
dispatch_code=$?
set -e
if [[ $dispatch_code -eq 0 ]]; then
dispatch_status="success"
dispatch_detail="workflow_dispatch accepted"
else
dispatch_status="failed"
dispatch_detail="$dispatch_output"
fi
else
dispatch_status="blocked"
dispatch_detail="workflow '$workflow' absent from remote workflow list"
fi
{
echo "# QA Remote Proof Snapshot"
echo
echo "- Timestamp (UTC): $now_utc"
echo "- Repository: $repo"
echo "- Branch: $branch"
echo "- Target workflow: $workflow"
echo "- Dispatch status: $dispatch_status"
echo
echo "## Workflow inventory"
if [[ -n "$workflows_raw" ]]; then
echo '```text'
echo "$workflows_raw"
echo '```'
else
echo "UNKNOWN"
fi
echo
echo "## Recent runs (target workflow + branch)"
if [[ -n "$runs_raw" ]]; then
echo '```text'
echo "$runs_raw"
echo '```'
else
echo "UNKNOWN"
fi
echo
echo "## Dispatch diagnostic"
if [[ -n "$dispatch_detail" ]]; then
echo '```text'
echo "$dispatch_detail"
echo '```'
else
echo "none"
fi
echo
echo "## Next action"
echo "- Ensure ".github/workflows/sim-host-tests.yml" is available on default branch, then re-run this script."
echo "- If dispatch is unavailable, open/update a PR to trigger pull_request CI and collect run URLs."
} > "$out_file"
echo "[remote-proof] Wrote: $out_file"