-
Notifications
You must be signed in to change notification settings - Fork 134
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] Breaking performance tests #1632
Closed
Closed
Changes from 28 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
4a3d796
Fix initial period prediction in multithread mode
peaBerberian 3db0e66
Improve performance tests writing
peaBerberian 10e5a82
Improve performance logs
peaBerberian 6f2185a
Run performance tests on all PR against base branch
peaBerberian 01e5d6a
perf: Try in gh comment
peaBerberian e5b683c
Perf: Fix typo
peaBerberian 5940dc7
perf: Update output. Also report not significative changes
peaBerberian 5e7e422
perf: Skip if another commit or label
peaBerberian accdad5
perf: Update slightly perf comment output
peaBerberian 773e28d
perf: Minimal wording update
peaBerberian b447496
perf: report is under a markdown table format
peaBerberian e591762
perf: Remove unnecessary newline
peaBerberian 23edde8
perf: Add some newlines in test reports
peaBerberian 459069f
Add delay to break performance tests
peaBerberian 3b6c99d
perf: remove not useful perf percentage
peaBerberian 5073170
rerun
peaBerberian 10d3104
Try reverse
peaBerberian 1cdcc19
Maybe that's the right syntax
peaBerberian b4ddbc2
wip
peaBerberian b31f1e8
MAIS NON ON VEUT PAS
peaBerberian a222cf2
hallelujah
peaBerberian 96c65a6
waitnoitsbrokennow
peaBerberian 643d016
fuck what do you want
peaBerberian 16651b9
and that
peaBerberian 83899f0
retrythatshit
peaBerberian fac56d0
tell me what you have
peaBerberian 2d5aaaa
that?
peaBerberian 7f94a9f
wip
peaBerberian 9125109
wip
peaBerberian 9ee260b
this
peaBerberian a7dcc4a
wip
peaBerberian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,59 @@ | ||
name: Performance tests | ||
|
||
on: | ||
pull_request: | ||
types: [labeled] | ||
types: [opened, synchronize, reopened] | ||
|
||
# Abort if new commit since then | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
perf-tests: | ||
if: ${{ github.event.label.name == 'Performance checks' }} | ||
if: ${{ !contains(github.event.issue.labels.*.name, 'skip-performance-checks') }} | ||
runs-on: [ubuntu-latest] | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
# needed for integration & memory tests codecs support | ||
- run: echo "${{ toJson(github.event.issue.labels) }}" | ||
- run: echo "toto" | ||
- run: echo "${{ toJson(github.event.issue.labels.*.name) }}" | ||
|
||
- run: | ||
sudo add-apt-repository multiverse && sudo apt update && sudo apt install -y | ||
ubuntu-restricted-extras | ||
- run: npm ci | ||
- run: export DISPLAY=:99 | ||
- run: sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional | ||
- run: node tests/performance/run.mjs | ||
- run: | ||
node tests/performance/run.mjs --branch $GITHUB_BASE_REF --remote-git-url | ||
https://github.com/canalplus/rx-player.git --report perf-report.md | ||
- name: Post comment | ||
if: always() | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const { readFileSync, existsSync } = require('fs'); | ||
if (!existsSync("./perf-report.md")) { | ||
return; | ||
} | ||
const fileContent = readFileSync("./perf-report.md").toString(); | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
// TODO: generate comment header inside the report file instead of here for better portability? | ||
// We should already have access to the sha1 through `git` and the destination branch through the command line arguments. | ||
body: "Automated performance checks have been performed on commit " + | ||
"\`${{github.event.pull_request.head.sha}}\` with the base branch \`${{github.base_ref}}\`.\n\n" + | ||
fileContent + | ||
"\n\n If you want to skip performance checks for latter commits, add the `skip-performance-checks` label to this Pull Request.", | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's github.event.pull_request here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:O I must have copy-pasted something at some point without realizing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was it!!!