angular/packages/compiler-cli/test/compliance/partial/cli.ts
Paul Gschwendtner 2ca72faab1 build: improve partial compliance golden generation and add debug logging (#60427)
Improves the partial compliance golden generation to not rely on large
files being transmitted via `stdout`. Instead the files are written
directly as it's done in idiomatic Bazel generation actions.

In addition, we add extra stdout logging for the Bazel action, to see if
the process is actually invoked in RBE workers. Right now those are
occassionally stuck, but neither us, nor the RBE team can see anything
running, and they're occasionally stuck for 1hr.

PR Close #60427
2025-03-18 07:10:43 +00:00

18 lines
648 B
TypeScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {fs} from '../test_helpers/get_compliance_tests';
import {generateGoldenPartial} from './generate_golden_partial';
// TODO(devversion): Remove this when RBE issues are resolved.
// tslint:disable-next-line
console.log('TEMPORARY FOR DEBUGGING: Building golden partial:', process.argv.slice(2));
const [testTsconfigPath, outputPath] = process.argv.slice(2);
generateGoldenPartial(fs.resolve(testTsconfigPath), fs.resolve(outputPath));