@empiricalrun/playwright-utils 0.48.5 → 0.48.6

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,11 @@
1
1
  # @empiricalrun/playwright-utils
2
2
 
3
+ ## 0.48.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 05df554: fix: turn down verbose logs
8
+
3
9
  ## 0.48.5
4
10
 
5
11
  ### Patch Changes
@@ -157,15 +157,20 @@ class AttachmentCleanup {
157
157
  }
158
158
  _logDiskStatus() {
159
159
  this._diskLogTick++;
160
- const artifactsSuffix = this._diskLogTick % 15 === 0 ? `, breakdown=${getDiskBreakdown()}` : "";
161
- logger_1.logger.info(`[AttachmentCleanup] Periodic: registered=${this._registeredCount}, pending=${this._pending.size}, uploaded=${this._uploadedCount}, evicted=${this._evictedCount} (${formatBytes(this._evictedBytes)}), totalSize=${formatBytes(this._totalSize)}, limit=${formatBytes(this._limitBytes)}, disk=${getDiskUsage()}${artifactsSuffix}`);
160
+ // const artifactsSuffix =
161
+ // this._diskLogTick % 15 === 0 ? `, breakdown=${getDiskBreakdown()}` : "";
162
+ // logger.info(
163
+ // `[AttachmentCleanup] Periodic: registered=${this._registeredCount}, pending=${this._pending.size}, uploaded=${this._uploadedCount}, evicted=${this._evictedCount} (${formatBytes(this._evictedBytes)}), totalSize=${formatBytes(this._totalSize)}, limit=${formatBytes(this._limitBytes)}, disk=${getDiskUsage()}${artifactsSuffix}`,
164
+ // );
162
165
  }
163
166
  logSummary() {
164
167
  if (this._diskLogTimer) {
165
168
  clearInterval(this._diskLogTimer);
166
169
  this._diskLogTimer = null;
167
170
  }
168
- logger_1.logger.info(`[AttachmentCleanup] Summary: registered=${this._registeredCount}, pending=${this._pending.size}, uploaded=${this._uploadedCount}, evicted=${this._evictedCount} (${formatBytes(this._evictedBytes)}), totalSize=${formatBytes(this._totalSize)}, disk=${getDiskUsage()}, breakdown=${getDiskBreakdown()}`);
171
+ // logger.info(
172
+ // `[AttachmentCleanup] Summary: registered=${this._registeredCount}, pending=${this._pending.size}, uploaded=${this._uploadedCount}, evicted=${this._evictedCount} (${formatBytes(this._evictedBytes)}), totalSize=${formatBytes(this._totalSize)}, disk=${getDiskUsage()}, breakdown=${getDiskBreakdown()}`,
173
+ // );
169
174
  }
170
175
  set onEvict(callback) {
171
176
  this._onEvict = callback;
@@ -1,6 +1,6 @@
1
1
  import { StorageCredentials } from "@empiricalrun/r2-uploader";
2
2
  export interface UploaderConfig {
3
- projectName: string;
3
+ projectSlug: string;
4
4
  runId: string;
5
5
  baseUrl: string;
6
6
  uploadBucket: string;
@@ -16,7 +16,7 @@ class Uploader {
16
16
  constructor(config) {
17
17
  this._baseUrl = config.baseUrl;
18
18
  this._uploadBucket = config.uploadBucket;
19
- this._destinationDir = `${config.projectName}/${config.runId}`;
19
+ this._destinationDir = `${config.projectSlug}/${config.runId}`;
20
20
  this._credentials = config.credentials;
21
21
  logger_1.logger.debug(`[Uploader] Initialized with destination: ${this._destinationDir}, provider: ${this._credentials.provider}`);
22
22
  }
@@ -146,7 +146,7 @@ function createUploader() {
146
146
  uploadBucket = bucket;
147
147
  }
148
148
  return new Uploader({
149
- projectName: process.env.PROJECT_NAME,
149
+ projectSlug: process.env.PROJECT_NAME,
150
150
  runId: process.env.TEST_RUN_GITHUB_ACTION_ID,
151
151
  baseUrl,
152
152
  uploadBucket,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/playwright-utils",
3
- "version": "0.48.5",
3
+ "version": "0.48.6",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"