Add structured cleanup outputs and validate them in CI#35
Closed
justinthelaw wants to merge 1 commit into
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
action.yml:before-available-bytes,after-available-bytes,reclaimed-bytes,cleanup-profile, andexecuted-componentsand wire them to a newstructured-outputsstep./available bytes in the BEFORE and AFTER disk-report steps and publish them to$GITHUB_OUTPUT, and computeexecuted-componentsin the cleanup-plan step for emission.reclaimed_bytes(after - before) and emits all structured outputs consistently for the composite action to expose.Outputs referenceand example toREADME.md, updatingdocs/MIGRATIONS.mdandAGENTS.md, and extending.github/workflows/test.ymlwith anoutput-contractmatrix job that validates output presence, numeric contracts, profile correctness, component inclusion, and reclaimed-bytes arithmetic.Testing
ruby -e 'require "yaml"; YAML.load_file("action.yml"); YAML.load_file(".github/workflows/test.yml"); puts "ok"', which printedok.yamllint action.yml .github/workflows/test.ymlbutyamllintwas not available in the environment, so a linter run was not performed here.output-contractworkflow job, which will run on CI to verify outputs for bothcustomandmaxscenarios.Codex Task