flakiness 0.225.0 → 0.227.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli/cli.js +5 -3
- package/package.json +5 -5
- package/types/tsconfig.tsbuildinfo +1 -1
package/lib/cli/cli.js
CHANGED
|
@@ -1030,7 +1030,7 @@ import path7 from "path";
|
|
|
1030
1030
|
// ../package.json
|
|
1031
1031
|
var package_default = {
|
|
1032
1032
|
name: "@flakiness/monorepo",
|
|
1033
|
-
version: "0.
|
|
1033
|
+
version: "0.227.0",
|
|
1034
1034
|
type: "module",
|
|
1035
1035
|
private: true,
|
|
1036
1036
|
scripts: {
|
|
@@ -1509,7 +1509,7 @@ async function cmdAuthLogin(endpoint = DEFAULT_FLAKINESS_ENDPOINT) {
|
|
|
1509
1509
|
}
|
|
1510
1510
|
|
|
1511
1511
|
// src/cli/cmd-convert.ts
|
|
1512
|
-
import { GitWorktree, writeReport } from "@flakiness/sdk";
|
|
1512
|
+
import { CIUtils, GitWorktree, writeReport } from "@flakiness/sdk";
|
|
1513
1513
|
import fs3 from "fs/promises";
|
|
1514
1514
|
import path3 from "path";
|
|
1515
1515
|
|
|
@@ -1802,6 +1802,7 @@ async function cmdConvert(junitPath, options) {
|
|
|
1802
1802
|
runStartTimestamp: Date.now(),
|
|
1803
1803
|
runDuration: 0
|
|
1804
1804
|
});
|
|
1805
|
+
report.title = options.title ?? CIUtils.runTitle();
|
|
1805
1806
|
if (options.flakinessProject)
|
|
1806
1807
|
report.flakinessProject = options.flakinessProject;
|
|
1807
1808
|
await writeReport(report, attachments, options.outputDir);
|
|
@@ -2425,12 +2426,13 @@ program.command("show").description("Show flakiness report").argument("[relative
|
|
|
2425
2426
|
reportViewerUrl: options.viewerUrl
|
|
2426
2427
|
});
|
|
2427
2428
|
}));
|
|
2428
|
-
program.command("convert-junit").description("Convert JUnit XML report(s) to Flakiness report format").argument("<junit-root-dir-path>", "Path to JUnit XML file or directory containing XML files").option("--env-name <name>", "Environment name for the report", "junit").option("--commit-id <id>", "Git commit ID (auto-detected if not provided)").option("--output-dir <dir>", "Output directory for the report", "flakiness-report").addOption(optFlakinessProject).action(async (junitPath, options) => {
|
|
2429
|
+
program.command("convert-junit").description("Convert JUnit XML report(s) to Flakiness report format").argument("<junit-root-dir-path>", "Path to JUnit XML file or directory containing XML files").option("--env-name <name>", "Environment name for the report", "junit").option("--commit-id <id>", "Git commit ID (auto-detected if not provided)").addOption(new Option("--title <title>", "Human-readable report title (auto-detected from CI if not provided)").env("FLAKINESS_TITLE")).option("--output-dir <dir>", "Output directory for the report", "flakiness-report").addOption(optFlakinessProject).action(async (junitPath, options) => {
|
|
2429
2430
|
await runCommand(async () => {
|
|
2430
2431
|
await cmdConvert(junitPath, {
|
|
2431
2432
|
envName: options.envName,
|
|
2432
2433
|
outputDir: options.outputDir,
|
|
2433
2434
|
commitId: options.commitId,
|
|
2435
|
+
title: options.title,
|
|
2434
2436
|
flakinessProject: options.project
|
|
2435
2437
|
});
|
|
2436
2438
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flakiness",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.227.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"bin": {
|
|
6
6
|
"flakiness": "./lib/cli/cli.js"
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"@types/debug": "^4.1.12",
|
|
24
24
|
"@types/express": "^4.17.20",
|
|
25
25
|
"gray-matter": "^4.0.3",
|
|
26
|
-
"@flakiness/server": "0.
|
|
27
|
-
"@flakiness/shared": "0.
|
|
26
|
+
"@flakiness/server": "0.227.0",
|
|
27
|
+
"@flakiness/shared": "0.227.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@flakiness/flakiness-report": "^0.
|
|
31
|
-
"@flakiness/sdk": "^2.
|
|
30
|
+
"@flakiness/flakiness-report": "^0.29.0",
|
|
31
|
+
"@flakiness/sdk": "^2.6.0",
|
|
32
32
|
"@rgrove/parse-xml": "^4.2.0",
|
|
33
33
|
"commander": "^14.0.0",
|
|
34
34
|
"debug": "^4.4.3",
|