Skip to content

Commit 957a5c9

Browse files
committed
chore: update path for network file search
1 parent a29b19b commit 957a5c9

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

scripts/codecov-upload-flags.mjs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,25 @@ const pkgsWithFlag = pkgFiles.flat().map((f) => {
2828
const name = info.name;
2929
const flag = name.replace('@opentelemetry/', '');
3030
const report = path + 'coverage/coverage-final.json';
31-
// NOTE: command extracted fromt the codecov action. You can see an example in
32-
// https://github.com/open-telemetry/opentelemetry-js-contrib/actions/runs/17320649481/job/49176411722?pr=2866
33-
//
34-
// Example:
35-
// ./codecov --verbose upload-coverage --git-service github --sha f08e6cceec6f39d61b1a9c35aed2e53b54a55d36 --branch david-luna:dluna-ci-pr-speed-and-coverage --gcov-executable gcov
31+
// To get a list of available options run
32+
// ```
33+
// ./codecov --verbose upload-coverage --help
34+
// ```
35+
// or check https://docs.codecov.com/docs/cli-options
3636
const command = [
3737
'./codecov --verbose',
3838
'upload-coverage',
3939
'--git-service github',
40-
'--plugin gcov', // we don't need xcrun or pycoverage
40+
// we don't need xcrun or pycoverage
41+
'--plugin gcov',
4142
'--gcov-executable gcov',
4243
'--sha', commitSha,
4344
'--branch', branchName,
44-
'--dir', path,
4545
'--file', report,
4646
'--flag', flag,
47+
// limit any scan to the pacakge folder
48+
'--network-root-folder', path,
49+
'--dir', path,
4750
'--dry-run',
4851
].join(' ');
4952
return { name, flag, len: flag.length, path, report, command };

0 commit comments

Comments
 (0)