@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
|
@@ -157,15 +157,20 @@ class AttachmentCleanup {
|
|
|
157
157
|
}
|
|
158
158
|
_logDiskStatus() {
|
|
159
159
|
this._diskLogTick++;
|
|
160
|
-
const artifactsSuffix =
|
|
161
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -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.
|
|
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
|
-
|
|
149
|
+
projectSlug: process.env.PROJECT_NAME,
|
|
150
150
|
runId: process.env.TEST_RUN_GITHUB_ACTION_ID,
|
|
151
151
|
baseUrl,
|
|
152
152
|
uploadBucket,
|