Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"INPUT_samplestring":"sampelstringlubch",
"PUPPETEER_SKIP_DOWNLOAD": "true",
"agent.tempDirectory":"src",
"PATH":null
"PATH":"/usr/local/lib"
},
"program": "${file}"
}
Expand Down
1,797 changes: 1,781 additions & 16 deletions pref-monitor-ci/package-lock.json

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion pref-monitor-ci/src/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pref-monitor-ci/src/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pref-monitor-ci/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ import { PrefReportCI } from "./prefReport";

const exec = new PrefReportCI();
exec.run().catch((error) => task.setResult(task.TaskResult.Failed, error));

// const prefTool = require("pref-report-cli");
// console.log("prefToo", prefTool);
20 changes: 12 additions & 8 deletions pref-monitor-ci/src/prefReport.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pref-monitor-ci/src/prefReport.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions pref-monitor-ci/src/prefReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as task from "azure-pipelines-task-lib/task";
const { v4: uuid4 } = require("uuid");

export class PrefReportCI {
#prefMonitor: string = "pref-report-cli@0.0.1";
#prefMonitor: string = "pref-report-cli";
#commentFilePath: string = "";

constructor() {
Expand Down Expand Up @@ -35,15 +35,17 @@ export class PrefReportCI {
}

async runPrefMonitor() {
const prefTool = await task.tool(this.#prefMonitor);
const prefTool = require(this.#prefMonitor);

await task.tool(prefTool);
prefTool
.line("-r")
.exec()
.then(() => {
task.debug(`-------Completed running the ${this.#prefMonitor}------`);
this.readComment();
})
.catch((error) => {
.catch((error: any) => {
task.setResult(task.TaskResult.Failed, error);
});
}
Expand Down Expand Up @@ -78,8 +80,8 @@ export class PrefReportCI {
if (prefMonitorInstall !== 0) throw new Error("Failed to install");
else {
task.debug("-------Successfully installed CLI------");
return;
}
fs.unlink(filePath, () => {});
} catch (error) {
task.setResult(task.TaskResult.Failed, error);
}
Expand Down
34 changes: 34 additions & 0 deletions pref-monitor-ci/webVitalsrc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vss-extension.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifestVersion": 1,
"id": "5fe3e030-1add-6a2c-89b1-3dc0949111c0",
"version": "0.0.8",
"version": "0.0.10",
"name": "Performance Monitor CI",
"publisher": "pref-monitor-ci",
"description": "Performance Monitor tool that is used to monitor and report the chrome web vitals metrics on the PR. It uses web-vitals-CLI to run the metrics and generate the report.",
Expand Down