Skip to content

flash-script: fix runtime issues#1823

Merged
brianmcgillion merged 1 commit intomainfrom
fix-flash-script-runtime
Mar 15, 2026
Merged

flash-script: fix runtime issues#1823
brianmcgillion merged 1 commit intomainfrom
fix-flash-script-runtime

Conversation

@henrirosten
Copy link
Copy Markdown
Collaborator

@henrirosten henrirosten commented Mar 13, 2026

Add gawk to the flash-script package runtime inputs so the script can resolve awk (which it now depends on) from its Nix closure.

Also only emit ANSI formatting and cursor-control output when stdout is a terminal, which keeps non-interactive logs free of raw escape sequences.

Description of Changes

Type of Change

  • New Feature
  • Bug Fix
  • Improvement / Refactor

Related Issues / Tickets

Checklist

  • Clear summary in PR description
  • Detailed and meaningful commit message(s)
  • Commits are logically organized and squashed if appropriate
  • Contribution guidelines followed
  • Ghaf documentation updated with the commit - https://tiiuae.github.io/ghaf/
  • Author has run make-checks and it passes
  • All automatic GitHub Action checks pass - see actions
  • Author has added reviewers and removed PR draft status

Testing Instructions

Applicable Targets

  • Orin AGX aarch64
  • Orin NX aarch64
  • Lenovo X1 x86_64
  • Dell Latitude x86_64
  • System 76 x86_64

Installation Method

  • Requires full re-installation
  • Can be updated with nixos-rebuild ... switch
  • Other:

Test Steps To Verify:

  1. ...

Add gawk to the package runtime inputs so the script can
resolve awk from its Nix closure.

Also only emit ANSI formatting and cursor-control output when
stdout is a terminal, which keeps non-interactive logs free of
raw escape sequences.

Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
@henrirosten henrirosten marked this pull request as ready for review March 13, 2026 09:49
@brianmcgillion brianmcgillion merged commit 753cdfb into main Mar 15, 2026
32 checks passed
@brianmcgillion brianmcgillion deleted the fix-flash-script-runtime branch March 15, 2026 02:51
henrirosten added a commit to tiiuae/ghaf-infra that referenced this pull request Mar 16, 2026
Remove the temporary Jenkins-side gawk wrapper from delegated
flashing now that tiiuae/ghaf#1823 fixed flash-script runtime
inputs and non-interactive ANSI output upstream.

Update the current-state flashing doc to record that the upstream
follow-up landed and is no longer pending work for this branch.

Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
henrirosten added a commit to tiiuae/ghaf-infra that referenced this pull request Mar 16, 2026
Remove the temporary Jenkins-side gawk wrapper from delegated
flashing now that tiiuae/ghaf#1823 fixed flash-script runtime
inputs and non-interactive ANSI output upstream.

Update the current-state flashing doc to record that the upstream
follow-up landed and to drop stale remaining-work wording for
issues already fixed in Ghaf.

Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
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.

3 participants