@empiricalrun/test-gen 0.30.2 → 0.30.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @empiricalrun/test-gen
2
2
 
3
+ ## 0.30.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [684ddff]
8
+ - Updated dependencies [684ddff]
9
+ - @empiricalrun/reporter@0.20.0
10
+
11
+ ## 0.30.3
12
+
13
+ ### Patch Changes
14
+
15
+ - 76d50f7: chore: add logs for file upload
16
+ - 76d50f7: chore: add logs for file upload
17
+
3
18
  ## 0.30.2
4
19
 
5
20
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/reporter/index.ts"],"names":[],"mappings":";AACA,OAAO,EAA4B,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAa5E,KAAK,kBAAkB,GAAG;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAKF,wBAAgB,WAAW,IAAI,QAAQ,GAAG,SAAS,CAUlD;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAGlE;AAED,qBAAa,sBAAsB;;IAE3B,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAK1C,eAAe,CAAC,EACpB,eAAe,EACf,QAAQ,GACT,EAAE;QACD,eAAe,EAAE,MAAM,CAAC;QACxB,QAAQ,EAAE,MAAM,CAAC;KAClB;IA4CK,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA6B9C,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAUlD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/reporter/index.ts"],"names":[],"mappings":";AACA,OAAO,EAA4B,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAa5E,KAAK,kBAAkB,GAAG;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAKF,wBAAgB,WAAW,IAAI,QAAQ,GAAG,SAAS,CAUlD;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAGlE;AAED,qBAAa,sBAAsB;;IAE3B,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAK1C,eAAe,CAAC,EACpB,eAAe,EACf,QAAQ,GACT,EAAE;QACD,eAAe,EAAE,MAAM,CAAC;QACxB,QAAQ,EAAE,MAAM,CAAC;KAClB;IA6CK,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA6B9C,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAUlD"}
@@ -51,6 +51,7 @@ class TestGenUpdatesReporter {
51
51
  if (!(0, uploader_1.checkIfResultsUploadAllowed)()) {
52
52
  logger.log("Skipped uploading generated test video");
53
53
  }
54
+ console.log("Uploading assets for the test genearation");
54
55
  const { videoUrls, traceFiles } = await (0, uploader_1.uploadTestResultsUsingPrjRepo)({
55
56
  projectRepoName,
56
57
  testName,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/uploader/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAA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6 +38,7 @@ exports.getRelativeUploadPath = getRelativeUploadPath;
38
38
  */
39
39
  async function uploadTestResultsUsingPrjRepo({ projectRepoName, testName, }) {
40
40
  const uploadDir = getUploadPathForRun(projectRepoName);
41
+ console.log("Current directory for assets upload", process.cwd());
41
42
  const files = await (0, r2_uploader_1.uploadDirectory)({
42
43
  sourceDir: path_1.default.join(process.cwd(), PLAYWRIGHT_REPORT_DATA),
43
44
  destinationDir: uploadDir,
@@ -52,6 +53,7 @@ async function uploadTestResultsUsingPrjRepo({ projectRepoName, testName, }) {
52
53
  });
53
54
  // fileNames are relative upload paths
54
55
  const fileNames = Object.keys(files);
56
+ console.log("FileNames to be uploaded", fileNames);
55
57
  const defaultLocation = path_1.default.join(process.cwd(), "playwright-report", "summary.json");
56
58
  const results = (0, reporter_1.parseJsonReport)(defaultLocation);
57
59
  const flatTestsList = (0, reporter_1.getFlattenedTestList)(results.suites);
@@ -72,6 +74,8 @@ async function uploadTestResultsUsingPrjRepo({ projectRepoName, testName, }) {
72
74
  }
73
75
  const videoFiles = fileNames.filter((fileName) => fileName.endsWith(".webm") && testAttachmentPaths.includes(fileName));
74
76
  const traceFiles = fileNames.filter((fileName) => fileName.endsWith(".zip") && testAttachmentPaths.includes(fileName));
77
+ console.log("videoFiles", videoFiles);
78
+ console.log("traceFiles", traceFiles);
75
79
  return {
76
80
  videoUrls: videoFiles
77
81
  .map((fileName) => getFullUploadPath(fileName, uploadDir))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/test-gen",
3
- "version": "0.30.2",
3
+ "version": "0.30.4",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -46,7 +46,7 @@
46
46
  "typescript": "^5.3.3",
47
47
  "@empiricalrun/llm": "^0.9.2",
48
48
  "@empiricalrun/r2-uploader": "^0.3.1",
49
- "@empiricalrun/reporter": "^0.19.0"
49
+ "@empiricalrun/reporter": "^0.20.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/detect-port": "^1.3.5",