Skip to content

Commit 423aba8

Browse files
authored
Merge branch 'main' into git-node-release-promote
2 parents 0196904 + a8529ed commit 423aba8

19 files changed

+423
-213
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## [5.4.0](https://github.com/nodejs/node-core-utils/compare/v5.3.1...v5.4.0) (2024-08-07)
4+
5+
6+
### Features
7+
8+
* use sec release template in PR description ([#832](https://github.com/nodejs/node-core-utils/issues/832)) ([25ea992](https://github.com/nodejs/node-core-utils/commit/25ea9923c6cff813766678332130a8c4fdf93edb))
9+
10+
11+
### Bug Fixes
12+
13+
* **git-node:** ignore codecov check suite ([#838](https://github.com/nodejs/node-core-utils/issues/838)) ([d796dd5](https://github.com/nodejs/node-core-utils/commit/d796dd5eac383177624a2c4b9284770c99ec3968))
14+
* handle dependencies empty on sec release blog ([#828](https://github.com/nodejs/node-core-utils/issues/828)) ([987aaca](https://github.com/nodejs/node-core-utils/commit/987aacaded33e94548cb22904c7fb828fd73e804))
15+
* listr overriding parent task ([#836](https://github.com/nodejs/node-core-utils/issues/836)) ([88c31eb](https://github.com/nodejs/node-core-utils/commit/88c31eb6bbea0ec44797c7287bafad2678d5ea46))
16+
317
## [5.3.1](https://github.com/nodejs/node-core-utils/compare/v5.3.0...v5.3.1) (2024-07-03)
418

519

components/git/release.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ async function main(state, argv, cli, dir) {
106106
if (state === PREPARE) {
107107
const release = new ReleasePreparation(argv, cli, dir);
108108

109+
await release.prepareLocalBranch();
110+
109111
if (release.warnForWrongBranch()) return;
110112

111113
// If the new version was automatically calculated, confirm it.

components/git/security.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ const securityOptions = {
4343
'post-release': {
4444
describe: 'Create the post-release announcement',
4545
type: 'boolean'
46+
},
47+
cleanup: {
48+
describe: 'cleanup the security release.',
49+
type: 'boolean'
4650
}
4751
};
4852

@@ -81,6 +85,9 @@ export function builder(yargs) {
8185
).example(
8286
'git node security --post-release',
8387
'Create the post-release announcement on the Nodejs.org repo'
88+
).example(
89+
'git node security --cleanup',
90+
'Cleanup the security release. Merge the PR and close H1 reports'
8491
);
8592
}
8693

@@ -112,6 +119,9 @@ export function handler(argv) {
112119
if (argv['post-release']) {
113120
return createPostRelease(argv);
114121
}
122+
if (argv.cleanup) {
123+
return cleanupSecurityRelease(argv);
124+
}
115125
yargsInstance.showHelp();
116126
}
117127

@@ -167,6 +177,13 @@ async function startSecurityRelease() {
167177
return release.start();
168178
}
169179

180+
async function cleanupSecurityRelease() {
181+
const logStream = process.stdout.isTTY ? process.stdout : process.stderr;
182+
const cli = new CLI(logStream);
183+
const release = new PrepareSecurityRelease(cli);
184+
return release.cleanup();
185+
}
186+
170187
async function syncSecurityRelease(argv) {
171188
const logStream = process.stdout.isTTY ? process.stdout : process.stderr;
172189
const cli = new CLI(logStream);

lib/ci/build-types/citgm_comparison_build.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export class CITGMComparisonBuild {
4444
const { failures: comparisonFailures } = comparisonBuild.results;
4545

4646
const failures = {};
47+
let allPlatformFailures;
4748
for (const platform in comparisonFailures) {
4849
// Account for no failure on this platform, or different platform.
4950
if (!Object.prototype.hasOwnProperty.call(baseFailures, platform)) {
@@ -66,11 +67,18 @@ export class CITGMComparisonBuild {
6667
if (newFailures.length !== 0) {
6768
result = statusType.FAILURE;
6869
}
69-
70+
if (allPlatformFailures === undefined) {
71+
allPlatformFailures = newFailures;
72+
} else if (allPlatformFailures.length > 0) {
73+
allPlatformFailures = allPlatformFailures.filter(f => {
74+
return newFailures.includes(f);
75+
});
76+
}
7077
failures[platform] = newFailures;
7178
}
7279

7380
this.results.failures = failures;
81+
this.results.allPlatformFailures = allPlatformFailures;
7482
this.result = result;
7583

7684
return result;
@@ -124,6 +132,12 @@ export class CITGMComparisonBuild {
124132
const str = `${totalFailures} failures in ${cID} not present in ${bID}`;
125133
cli.log(`${statusType.FAILURE}: ${str}\n\n`);
126134
console.table(output);
135+
if (
136+
results.allPlatformFailures &&
137+
results.allPlatformFailures.length) {
138+
const failures = results.allPlatformFailures.join(', ');
139+
console.warn(`These modules failed in all platforms: ${failures}`);
140+
}
127141
}
128142

129143
formatAsJson() {

lib/pr_checker.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const GITHUB_SUCCESS_CONCLUSIONS = ['SUCCESS', 'NEUTRAL', 'SKIPPED'];
2929
const FAST_TRACK_RE = /^Fast-track has been requested by @(.+?)\. Please 👍 to approve\.$/;
3030
const FAST_TRACK_MIN_APPROVALS = 2;
3131
const GIT_CONFIG_GUIDE_URL = 'https://github.com/nodejs/node/blob/99b1ada/doc/guides/contributing/pull-requests.md#step-1-fork';
32+
const IGNORED_CHECK_SLUGS = ['dependabot', 'codecov'];
3233

3334
// eslint-disable-next-line no-extend-native
3435
Array.prototype.findLastIndex ??= function findLastIndex(fn) {
@@ -373,9 +374,9 @@ export default class PRChecker {
373374

374375
// GitHub new Check API
375376
for (const { status, conclusion, app } of checkSuites.nodes) {
376-
if (app && app.slug === 'dependabot') {
377-
// Ignore Dependabot check suites. They are expected to show up
378-
// sometimes and never complete.
377+
if (app && IGNORED_CHECK_SLUGS.includes(app.slug)) {
378+
// Ignore Dependabot and Codecov check suites.
379+
// They are expected to show up sometimes and never complete.
379380
continue;
380381
}
381382

0 commit comments

Comments
 (0)