flakiness 0.298.0 → 0.300.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 +8 -10
- package/package.json +3 -3
- package/types/tsconfig.tsbuildinfo +1 -1
package/lib/cli/cli.js
CHANGED
|
@@ -1044,7 +1044,7 @@ import path7 from "path";
|
|
|
1044
1044
|
// ../package.json
|
|
1045
1045
|
var package_default = {
|
|
1046
1046
|
name: "@flakiness/monorepo",
|
|
1047
|
-
version: "0.
|
|
1047
|
+
version: "0.300.0",
|
|
1048
1048
|
type: "module",
|
|
1049
1049
|
private: true,
|
|
1050
1050
|
scripts: {
|
|
@@ -1859,20 +1859,16 @@ async function cmdDownload(options) {
|
|
|
1859
1859
|
let runIds = [];
|
|
1860
1860
|
if (options.runId) {
|
|
1861
1861
|
runIds = [options.runId, options.runId];
|
|
1862
|
-
} else if (options.since) {
|
|
1863
|
-
runIds = await api.project.listRuns.GET({
|
|
1864
|
-
orgSlug: project.org.orgSlug,
|
|
1865
|
-
projectSlug: project.projectSlug,
|
|
1866
|
-
sinceTimestampMs: +options.since
|
|
1867
|
-
});
|
|
1868
|
-
console.log(`Found ${Ranges.cardinality(runIds)} reports uploaded since ${options.since}`);
|
|
1869
1862
|
} else {
|
|
1863
|
+
const { snapshotId } = await api.snapshot.get.GET({ orgSlug, projectSlug });
|
|
1864
|
+
const sinceTimestampMs = options.since ? +options.since : +/* @__PURE__ */ new Date("Jan 1, 2000");
|
|
1870
1865
|
runIds = await api.project.listRuns.GET({
|
|
1871
1866
|
orgSlug: project.org.orgSlug,
|
|
1872
1867
|
projectSlug: project.projectSlug,
|
|
1873
|
-
|
|
1868
|
+
snapshotId,
|
|
1869
|
+
sinceTimestampMs
|
|
1874
1870
|
});
|
|
1875
|
-
console.log(`Found ${Ranges.cardinality(runIds)} reports`);
|
|
1871
|
+
console.log(options.since ? `Found ${Ranges.cardinality(runIds)} reports uploaded since ${options.since}` : `Found ${Ranges.cardinality(runIds)} reports`);
|
|
1876
1872
|
}
|
|
1877
1873
|
const alreadyExisting = fs4.readdirSync(process.cwd());
|
|
1878
1874
|
const downloadedRuns = alreadyExisting.filter((entry) => entry.startsWith(RUN_DIR_PREFIX)).map((run) => parseInt(run.substring(RUN_DIR_PREFIX.length), 10)).filter((runId) => !isNaN(runId));
|
|
@@ -2066,6 +2062,7 @@ async function cmdListTests(options) {
|
|
|
2066
2062
|
accessToken: options.accessToken,
|
|
2067
2063
|
flakinessProject: options.flakinessProject
|
|
2068
2064
|
});
|
|
2065
|
+
const { snapshotId } = await api.snapshot.get.GET({ orgSlug, projectSlug });
|
|
2069
2066
|
let preset;
|
|
2070
2067
|
if (options.pr !== void 0)
|
|
2071
2068
|
preset = { type: "pr", number: options.pr };
|
|
@@ -2074,6 +2071,7 @@ async function cmdListTests(options) {
|
|
|
2074
2071
|
const result = await api.report.testStats.POST({
|
|
2075
2072
|
orgSlug,
|
|
2076
2073
|
projectSlug,
|
|
2074
|
+
snapshotId,
|
|
2077
2075
|
preset,
|
|
2078
2076
|
pageOptions: {
|
|
2079
2077
|
// CLI pages are 1-based while backend pages are 0-based.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flakiness",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.300.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"bin": {
|
|
6
6
|
"flakiness": "./lib/cli/cli.js"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"author": "Degu Labs, Inc",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@flakiness/server": "0.
|
|
23
|
-
"@flakiness/shared": "0.
|
|
22
|
+
"@flakiness/server": "0.300.0",
|
|
23
|
+
"@flakiness/shared": "0.300.0",
|
|
24
24
|
"@playwright/test": "^1.62.1",
|
|
25
25
|
"@types/debug": "^4.1.13",
|
|
26
26
|
"@types/express": "^4.17.25",
|