Skip to content

Frontend: Add GNAT toolchain update tools and guides - #1404

Merged
gusthoff merged 71 commits into
AdaCore:mainfrom
gusthoff:dev/topic/infrastructure/python/toolchain_update/guidelines-and-scripts/2026-10-17/main
Nov 28, 2026
Merged

gusthoff merged 71 commits into
AdaCore:mainfrom
gusthoff:dev/topic/infrastructure/python/toolchain_update/guidelines-and-scripts/2026-10-17/main

Conversation

@gusthoff

Copy link
Copy Markdown
Collaborator

Compare the current and proposed versions of GNAT, GNATprove, and
GPRbuild before changing the defaults used to check code examples.

  • Run the code-example suite under both toolchains in the epub VM.
    Restore the original configuration and version pins before review.
  • Compare results for each code block, check proposed fixes, and record
    the user's decisions.
  • Apply reviewed fixes and pins when the result meets the failure
    threshold. Preview unused installations before approved removal.
  • Document the update workflow, review decisions, and recovery steps.
  • Verify script syntax and usage, release filtering, comparison records,
    and that apply stops when reviews are still pending.

Co-Authored-By: Codex noreply@openai.com

gusthoff and others added 30 commits October 17, 2026 12:55
- Update configured defaults and compiler symlinks together.
- Check installation paths before changing the selected versions.

Co-Authored-By: Codex <noreply@openai.com>
- Check defaults, selected links and executable paths before a run.
- Save the actual toolchain details with the comparison evidence.

Co-Authored-By: Codex <noreply@openai.com>
- Reuse one installer for both provisioners and candidate releases.
- Extract beside the destination and clean up failed installs.

Co-Authored-By: Codex <noreply@openai.com>
- Record pin removals with block checksums for candidate checks.
- Restore original directives without discarding unrelated edits.

Co-Authored-By: Codex <noreply@openai.com>
- Run every course despite expected candidate failures.
- Preserve checker output, toolchain details and `make` exit status.

Co-Authored-By: Codex <noreply@openai.com>
- Inspect cumulative project sources for variable output constructs.
- Report markup candidates for confirmation before applying changes.

Co-Authored-By: Codex <noreply@openai.com>
- List installed versions omitted from the pruned configuration.
- Require explicit deletion and protect active default or selected
  links.

Co-Authored-By: Codex <noreply@openai.com>
- Share atomic YAML writes, block identities and edit tracking.
- Keep default links, review decisions and summaries consistent.

Co-Authored-By: Codex <noreply@openai.com>
- List stable Linux releases alongside configured versions.
- Filter unsupported assets and prereleases when selecting candidates.

Co-Authored-By: Codex <noreply@openai.com>
- Match checked blocks by source location and compare stage logs.
- Escalate differences with evidence and separate published counts.

Co-Authored-By: Codex <noreply@openai.com>
- Snapshot, check and record candidate fixes with review evidence.
- Track line shifts and restore rejected changes from their snapshots.

Co-Authored-By: Codex <noreply@openai.com>
- Record terminal review decisions and keep unresolved cases pending.
- Recompute acceptance counts after the reviewed decisions change.

Co-Authored-By: Codex <noreply@openai.com>
- Apply accepted fixes, pins and variable-output markup by block.
- Update defaults only after acceptance and completed human review.

Co-Authored-By: Codex <noreply@openai.com>
- Retain only configured defaults and versions required by pins.
- Preserve configuration formatting while removing unused entries.

Co-Authored-By: Codex <noreply@openai.com>
- Open reference and candidate logs in the selected diff viewer.
- Translate shared VM paths and persist each review decision.

Co-Authored-By: Codex <noreply@openai.com>
- Show stage logs, highlighted differences and fix evidence together.
- Persist decisions and declare the optional GUI dependencies.

Co-Authored-By: Codex <noreply@openai.com>
- Document candidate comparison, human review and reversible fixes.
- Describe applying decisions, pruning versions and approved cleanup.

Co-Authored-By: Codex <noreply@openai.com>
- Explain improvements and regressions using checker verdicts.
- Require reviewing compiler crashes even for expected-error examples.

Co-Authored-By: Codex <noreply@openai.com>
- Distinguish regressions, improvements and output-only differences.
- Show checker verdict changes beside the logs in every review tool.

Co-Authored-By: Codex <noreply@openai.com>
- Add a `verdict` command for reviewed examples and their reasoning.
- Write decisions through the shared atomic YAML persistence.

Co-Authored-By: Codex <noreply@openai.com>
- Keep the earlier difference analysis alongside the recorded fix.
- Retain the reasoning that led to the proposed code change.

Co-Authored-By: Codex <noreply@openai.com>
- Distinguish reverting a recorded fix from restoring its snapshot.
- Avoid reporting an unrecorded attempt as an accepted code fix.

Co-Authored-By: Codex <noreply@openai.com>
- Recognize task images, access arrays and C pointer printing.
- Ignore Ada comments when matching declarations and output.

Co-Authored-By: Codex <noreply@openai.com>
- Identify report line numbers as their original pre-edit positions.
- Mark a completed default-version change as successfully applied.

Co-Authored-By: Codex <noreply@openai.com>
- Document the `verdict` command and retained fix analysis.
- Explain confidence values and the evidence kept for review.

Co-Authored-By: Codex <noreply@openai.com>
- Describe retained and removed pins and their toolchain costs.
- Explain original source coordinates in the applied-change report.

Co-Authored-By: Codex <noreply@openai.com>
- Keep the prose and demonstrated behavior intact when fixing code.
- Pin examples when a repair requires a content-author decision.

Co-Authored-By: Codex <noreply@openai.com>
- Run repository status checks on the host checkout.
- Locate the block declaring faulty code before taking a snapshot.

Co-Authored-By: Codex <noreply@openai.com>
- Keep comparison runs in the shared tool-specific directory.
- Ignore generated runs and the optional GUI virtual environment.

Co-Authored-By: Codex <noreply@openai.com>
- Restore buttons from their equivalent classes when pins are removed.
- Track removed class lines and report restored interactivity.

Co-Authored-By: Codex <noreply@openai.com>
gusthoff and others added 24 commits November 28, 2026 02:15
- Divide the workflow and reviewer decisions into focused subsections.
- State each phase's goal and link to the relevant runbook steps.

Co-Authored-By: Codex <noreply@openai.com>
- Add a linked overview of the update phases.
- Make AI actions and required human decisions explicit.

Co-Authored-By: Codex <noreply@openai.com>
- Use DUT and precise code block terminology across the update guides.
- Define REF and DUT and update section links consistently.
- Validate Markdown rendering and local links.

Co-Authored-By: Codex <noreply@openai.com>
- Distinguish matching logs from successful checker results.
- Explain existing pins, expected errors, and per-stage log statuses.
- Validate Markdown rendering and local links.

Co-Authored-By: Codex <noreply@openai.com>
- Divide fix eligibility, checking, and rollback into focused sections.
- Explain pinned tool versions and map buttons to automated checks.
- Validate Markdown rendering and local links.

Co-Authored-By: Codex <noreply@openai.com>
- Present thresholds, review evidence, and human decisions clearly.
- Explain script reruns and link the runbook to reopening decisions.
- Validate Markdown rendering and local links.

Co-Authored-By: Codex <noreply@openai.com>
- Explain release selection and keep configuration and VM links aligned.
- Separate configuration pruning from approved cleanup of the epub VM.
- Validate Markdown rendering and local links.

Co-Authored-By: Codex <noreply@openai.com>
- Give runbook steps descriptive titles and link their references.
- Update `README.md` and `PROCESS.md` links to renamed sections.
- Validate Markdown rendering and local links.

Co-Authored-By: Codex <noreply@openai.com>
- Identify the AI as the primary reader and state each step's goal.
- Clarify VM and host execution context and use em dashes in prose.
- Validate Markdown rendering and local links.

Co-Authored-By: Codex <noreply@openai.com>
- Present evidence and outcomes in tables and focused subsections.
- Separate actions, conditions, and explanations with nested lists.
- Validate Markdown rendering and local links.

Co-Authored-By: Codex <noreply@openai.com>
- Separate Bash commands with blank lines, preserving continuations.
- Keep command text and execution order unchanged.
- Validate Markdown rendering and local links.

Co-Authored-By: Codex <noreply@openai.com>
- Refer to course test targets for `MAX_SRC_COLUMNS`.
- Remove fixed limits from fix and whole-file validation guidance.
- Validate Markdown rendering and local links.

Co-Authored-By: Codex <noreply@openai.com>
- Show the `--confidence` default in `record --help`.
- Refer to CLI help from the runbook instead of repeating the value.
- Check CLI help output and Markdown rendering.

Co-Authored-By: Codex <noreply@openai.com>
- Define `VM_WORK_DIR` once and save it in the run environment.
- Use it for VM setup, resumed sessions, and recovery.
- Validate expanded paths and Markdown links.

Co-Authored-By: Codex <noreply@openai.com>
Reuse cached toolchains and select the configured tool versions. Verify
the active tools before running the checks.

Co-Authored-By: Codex <noreply@openai.com>
Temporarily remove pins for the DUT run and restore them afterward. Save
both runs and compare the results for review.

Co-Authored-By: Codex <noreply@openai.com>
…mples

Flag code blocks that may need a variable output annotation. Skip
expected compile failures so the lint focuses on runtime output.

Co-Authored-By: Codex <noreply@openai.com>
Collect reviewer decisions through terminal, diff, or graphical tools.
Check proposed fixes under DUT and recompute the update decision.

Co-Authored-By: Codex <noreply@openai.com>
… versions

Apply the reviewed pins and restore buttons where pins can be dropped.
Report changes and identify obsolete toolchains for removal.

Co-Authored-By: Codex <noreply@openai.com>
Explain the workflow, review policy, and commands for a complete run.
Describe how to verify results and recover the starting setup.

Co-Authored-By: Codex <noreply@openai.com>
…o follow

Organize the workflow, policy, and runbook around clear goals and
decisions. Make the commands and references easier to use during an
update.

Co-Authored-By: Codex <noreply@openai.com>
- Keep implementation details that explain the code and remove past
  experiments and workflow notes covered by the guides.
- Check that the Python executable code and shell usage are unchanged.

Co-Authored-By: Codex <noreply@openai.com>
- Focus command help, diagnostics, and comparison messages on inputs
  and results. Keep workflow instructions in the update guides.
- Adjust shell usage ranges to match the shortened headers.
- Check command help and offline comparison and review fixtures.

Co-Authored-By: Codex <noreply@openai.com>
- Locate the removal script from `$here` because it lives one directory
  above the cleanup script.
- Check Bash syntax and confirm the path reaches the removal helper.

Co-Authored-By: Codex <noreply@openai.com>
gusthoff and others added 3 commits November 28, 2026 14:24
- Explain how to read comparison records and review checker results
  from a clean checkout.
- Describe fix checks, pin changes, rollback, and installation cleanup
  with conditions and remedies beside the relevant commands.
- Verify Markdown links and structure, and check the documented result
  commands against synthetic inputs.

Co-Authored-By: Codex <noreply@openai.com>
- Mark a proposed DUT version as listed when it appears in
  `[toolchains]`. Check installation separately on the VM.
- Check the output for listed and unlisted candidates and a current
  default with an offline release fixture.

Co-Authored-By: Codex <noreply@openai.com>
- Trim script comments and keep help, diagnostics, and review prompts
  focused on command inputs and results.
- Move procedural detail into `RUNBOOK.md` and `PROCESS.md` so readers
  can verify REF and DUT coverage and checker results, check proposed
  fixes, apply pin decisions, recover edits, and confirm removals.
- Resolve the VM removal helper relative to the cleanup script and
  report which release versions are listed in `[toolchains]`.

Co-Authored-By: Codex <noreply@openai.com>
@gusthoff
gusthoff force-pushed the dev/topic/infrastructure/python/toolchain_update/guidelines-and-scripts/2026-10-17/main branch from 779377b to 15e50a6 Compare November 28, 2026 14:16
@gusthoff
gusthoff merged commit e925ebc into AdaCore:main Nov 28, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant