Skip to content

fix: create missing sap_sa38_run.vbs to unblock CI validate job - #6

Merged
KexiHe merged 2 commits into
mainfrom
copilot/fix-validate-job-failure
Jul 9, 2026
Merged

fix: create missing sap_sa38_run.vbs to unblock CI validate job#6
KexiHe merged 2 commits into
mainfrom
copilot/fix-validate-job-failure

Conversation

Copilot AI commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

The validate CI job was hard-failing because check-consistency.mjs detected that skills/sap-run-report/SKILL.md:35 referenced references/sap_sa38_run.vbs which was never committed — the screens JSON and variant VBS for the same skill were already present, but the run driver was missing.

Changes

  • references/sap_sa38_run.vbs — new SA38 report execution driver:

    • FG mode: fills program → optional Shift+F5 variant load → optional --values fill → F8 execute → best-effort %PC classic-list capture to --save-output. Emits RUN_REPORT: EXECUTED_FG list_saved=<path|NONE> sbar=<type>.
    • BG mode: same navigation to selection screen, then menu[0]/menu[2] (Execute in Background) → handles SAPLSPRI print-params (btn[13]) and SAPLBTCH start-time (btnSOFORT_PUSH + btn[11]) popups. Emits RUN_REPORT: SUBMITTED job=<name> count=<n>.
    • Emits RUN_REPORT: NEEDS_RECORDING on any unresolved screen/control — never claims a false success.
    • Mirrors sap_sa38_variant.vbs patterns: AttachSapSession, FillValues/SetField/FillMultiSelect, LoadVariant via SAPLSVAR Find popup.
  • .gitignore — added negation exception !plugins/sap-dev-core/skills/sap-run-report/references/sap_sa38_run.vbs. The existing sap_*_run.vbs exclusion (targeting runtime-generated temp copies like sap_sa38_run_run.vbs) was also matching this committed source file. Follows the same pattern as the existing !.../sap_probe_end_of_run.ps1 exception.

…CI failure

Root cause: check-consistency.mjs gate was failing with HARD ERROR because
skills/sap-run-report/SKILL.md:35 referenced references/sap_sa38_run.vbs
which did not exist on disk (exit code 1).

Changes:
1. Create plugins/sap-dev-core/skills/sap-run-report/references/sap_sa38_run.vbs
   - SA38 driver for FG (F8 execute + best-effort %PC list capture) and BG
     (Execute in Background via SAPLSPRI/SAPLBTCH popups) modes
   - Follows the sap_sa38_variant.vbs pattern: session attach via AttachSapSession,
     FillValues/SetField/FillMultiSelect helpers, LoadVariant via Shift+F5
   - Emits RUN_REPORT: EXECUTED_FG / SUBMITTED / NEEDS_RECORDING / ERROR lines
   - sap_sa38_run.screens.json was already committed; new VBS picked up by
     screen-baseline coverage (now 126/127 driving VBS with baselines)

2. Add .gitignore exception for the new source VBS
   - The existing sap_*_run.vbs rule (for runtime-generated temp copies like
     sap_sa38_run_run.vbs) also matched the source reference file
   - Added !plugins/sap-dev-core/skills/sap-run-report/references/sap_sa38_run.vbs
     following the precedent of sap_probe_end_of_run.ps1
Copilot AI changed the title [WIP] Fix failing GitHub Actions job validate fix: create missing sap_sa38_run.vbs to unblock CI validate job Jul 9, 2026
Copilot AI requested a review from KexiHe July 9, 2026 10:39
Copilot finished work on behalf of KexiHe July 9, 2026 10:39
@KexiHe KexiHe closed this Jul 9, 2026
@KexiHe KexiHe reopened this Jul 9, 2026
@KexiHe
KexiHe marked this pull request as ready for review July 9, 2026 10:48
@KexiHe
KexiHe merged commit 916d455 into main Jul 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants