Skip to content

v1.6.0

Choose a tag to compare

@damson damson released this 24 Sep 00:45
95b36c3

The tool that grades instruction files now grades this repository's own on the
way in, using the published release rather than the tree under review, and the
pin naming that release has something watching it.

Changes

  • Every pull request is scored by the shipped action (#96). The job uses a
    pinned released version, not ./, because running the tree under review would
    hand an API key to code the pull request itself wrote. A second job scores
    with the merged tree, and only on the push to develop, where the code has
    already been reviewed. The paths list is written out twice on purpose: GitHub
    Actions rejects YAML anchors, and a test asserts the two copies stay identical.
  • A release opens the pull request that moves the gate's pin (#97), on the
    push to main, on a published release, and weekly as a net. It opens with a
    person's token: a pull request GitHub attributes to Actions raises no
    pull_request runs at all, so one opened with GITHUB_TOKEN can never
    satisfy a required check and stays unmergeable forever.
  • Two rules the coverage number and the rubric hid (#99). An embedded awk
    or jq program reads as uncovered bash and no test moves it: the deduction
    rule took lib/scoring.sh from 92% to 61% while seven tests exercised the
    function around it. And the README described a calibration gate that does not
    exist, a fixed twelve-point spread, where the script checks three separate
    thresholds.

Known limitation

The pin watcher does not work yet, and this release is what proved it. Two
reasons, both in #101:
the push trigger resolves its target from releases/latest rather than from the
pushed commit, so it no-ops on every promotion, and the token it pushes with is
documented without the Workflows permission GitHub requires to write a file
under .github/workflows/. Until both are fixed, check the pin with just gate-pin-preview and move it by
running bin/bump-gate-pin.sh locally.

Notes for consumers

v1 now points here. The action's inputs and outputs are unchanged, so a
consumer pinned to v1 or to a version tag needs no edit.