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

Prechecks for asv #2107

Merged
merged 29 commits into from
Jan 15, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
new workflow
Georgi Rusev authored and Georgi Rusev committed Jan 9, 2025
commit bf6c8e8cc928fca9efccf96ec5cd5082e47e1fb3
45 changes: 45 additions & 0 deletions .github/workflows/asv_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Run ASV Tests Check Python Script
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if you call this "ASV Linting" or something it will be more obvious to people that it doesn't actually run the benchmarks

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, but note that this does something additional as check of versions of benchmark tests ... see bellow


on:
push:
branches-ignore:
- 'master'
paths:
- 'python/benchmarks/**'
- 'python/.asv/results/**'
- 'asv.conf.json'
pull_request:
branches-ignore:
- 'master'
paths:
- 'python/benchmarks/**'
- 'python/.asv/results/**'
- 'asv.conf.json'

jobs:
run-asv-check-script:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @IvoDD,we don't need this to be a separate flow, just a separate job in the analysis_flow.
This way it will be easier for people, as they would have to check only 1 flow.
Let's move this job to the analysis_flow.yml, similarly to the code_coverage job there

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree makes lots of sence

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

timeout-minutes: 30
runs-on: ubuntu-latest
container: ghcr.io/man-group/arcticdb-dev:latest
defaults:
run: {shell: bash}
steps:
- uses: actions/[email protected]
with:
lfs: 'true'
fetch-depth: 0
submodules: recursive
token: ${{ secrets.ARCTICDB_TEST_PAT }}
ref: ${{ github.event.pull_request.head.sha }}

- name: Install ASV
shell: bash -el {0}
run: |
git config --global --add safe.directory .
python -m pip install --upgrade pip
pip install asv

- name: Run ASV Tests Check script
run: |
python python/utils/asv_checks.py
continue-on-error: false