Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test reporting results from forks #48

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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
59 changes: 0 additions & 59 deletions .github/workflows/pr-artifacts-flow.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/pr-multi-init.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/pr-multi-measure-setup-job.yml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/pr-multi-measure-summarize-job.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/pr-setup-job.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/pr-single.yml

This file was deleted.

19 changes: 10 additions & 9 deletions scripts/trigger-test-pr-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,24 +93,25 @@ async function updateResultsFile() {
}

async function main() {
const currentBranch = execSync("git branch --show", {
encoding: "utf8",
}).trim();
console.log(`Current branch: ${currentBranch}`);
// const currentBranch = execSync("git branch --show", {
// encoding: "utf8",
// }).trim();
// console.log(`Current branch: ${currentBranch}`);
const currentBranch = "main";

execSync("git checkout test-pr", execOpts);
execSync("git checkout test-forked-pr", execOpts);

await updateResultsFile();

const updatedFiles = await updateActionDefs(currentBranch);
// const updatedFiles = await updateActionDefs(currentBranch);

[
`git add tests/results/test-results.json`,
...updatedFiles.map((filePath) => `git add ${filePath}`),
// ...updatedFiles.map((filePath) => `git add ${filePath}`),
`git status -s`,
`git commit -m "Trigger PR action run: ${currentBranch}"`,
`git commit -m "Trigger Forked PR action run: ${currentBranch}"`,
`git push`,
`git checkout ${currentBranch}`,
// `git checkout ${currentBranch}`,
].forEach((command) => execSync(command, execOpts));
}

Expand Down
8 changes: 4 additions & 4 deletions tests/results/test-results.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,12 @@
},
{
"absolute": {
"low": -4.100584444274766,
"high": 5.235917753535269
"low": -12.768235849180819,
"high": -3.5470975408067247
},
"percentChange": {
"low": -9.662003704353273,
"high": 12.318940173956952
"low": -28.411804797038677,
"high": -9.269181809727653
}
},
null
Expand Down