Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/scripts/touched-components.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ describe('pr-component-a11y-contracts routing', () => {
it('fails, never passes, when the scope step cannot list the changed files', () => {
const guard = contractStep('Require the changed-file list');
expect(guard.if).toBe(
"steps.scope.outputs.applies == 'true' && steps.scope.outputs.changed_files_path == ''",
"steps.scope.outputs.applies == 'true' && steps.scope.outputs.changed_files_path == '' && steps.scope.outputs.decided != 'false'",
);
expect(guard.run).toContain('exit 1');
expect(guard['continue-on-error']).toBeUndefined();
Expand Down Expand Up @@ -833,7 +833,7 @@ describe('pr-component-a11y-contracts routing', () => {
// Every changed path, not only the changed specs: a change in a
// component folder owns that folder's specs.
expect(runStep.env.FILES_PATH).toBe(
'${{ steps.scope.outputs.changed_files_path }}',
'${{ steps.scope.outputs.changed_files_path || steps.everything.outputs.path }}',
);
// A wide change still runs the touched components' own specs, then the
// specs of the folders that render them (FR12).
Expand Down
10 changes: 8 additions & 2 deletions scripts/release/active-release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,14 @@ function validateReleaseState({
return errors;
}

const GIT_MAX_BUFFER = 64 * 1024 * 1024;

function gitRaw(root, args) {
return execFileSync('git', args, {cwd: root, encoding: 'utf8'});
return execFileSync('git', args, {
cwd: root,
encoding: 'utf8',
maxBuffer: GIT_MAX_BUFFER,
});
}

function git(root, args) {
Expand Down Expand Up @@ -1068,7 +1074,7 @@ const RELEASE_POLICY_CARRY_PATTERNS = [
/^scripts\/release\/active-release(?:\.test)?\.mjs$/,
/^scripts\/release\/release-paths\.mjs$/,
/^\.github\/actions\/test-scope\/action\.yml$/,
/^\.github\/scripts\/test-scope-action\.test\.mjs$/,
/^\.github\/scripts\/(?:test-scope-action|touched-components)\.test\.mjs$/,
/^\.github\/workflows\/ci\.yml$/,
/^docs\/release\.md$/,
/^docs\/specs\/AST-(?:017|030)\/spec\.md$/,
Expand Down
Loading
Loading