-
Notifications
You must be signed in to change notification settings - Fork 32
PyTest Migration #144
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
Draft
Victor-Jung
wants to merge
19
commits into
pulp-platform:devel
Choose a base branch
from
Victor-Jung:pr/pytest-migration
base: devel
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
PyTest Migration #144
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
48eb244
Add PyTest-base testing infra for generic platform
Victor-Jung f918ca2
Remove nvidia-pyindex install (not needed anymore)
Victor-Jung 77b3230
Add nvidia channel to the pip config instead of via nvidia-pyindex (d…
Victor-Jung d245a37
Update banshee.patch
Victor-Jung 05c020a
Fix patch
Victor-Jung ec5efd5
Update banshee patch
Victor-Jung 3760ced
Update CI docker
Victor-Jung b051153
Update generic platform CI to use PyTest
Victor-Jung eb6e31e
Lint and format
Victor-Jung 42c9cd7
Cleanup pytest.ini
Victor-Jung 89efc39
Apply Calin's comments
Victor-Jung 1929253
Refactor to better support multiple platforms and add cortexm to pyte…
Victor-Jung 393dd9d
Add PyTest suite for Siracusa and Siracusa Tiled
Victor-Jung 54f3e9c
Alpha version of CI suite using PyTest for Siracusa and Siracusa Tiled
Victor-Jung b2014b2
Add L2_DOUBLEBUFFER_MODELS to the pytest suite, add -s to debug slow …
Victor-Jung 5e1e63b
Fix typo
Victor-Jung b3789db
Make test use common build folder among a worker to improve compilati…
Victor-Jung f49f319
Cleanup unused runners and increase timeout for L3 models
Victor-Jung 262a64b
format and lint
Victor-Jung 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| # SPDX-FileCopyrightText: 2024 ETH Zurich and University of Bologna | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| --- | ||
| name: Siracusa Tiled Kernels Runner | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| runner: | ||
| required: true | ||
| type: string | ||
| docker-image: | ||
| required: true | ||
| type: string | ||
| memory-level: | ||
| required: true | ||
| type: string | ||
| description: 'Memory level marker (l2 or l3)' | ||
| buffer-mode: | ||
| required: true | ||
| type: string | ||
| description: 'Buffer mode marker (singlebuffer or doublebuffer)' | ||
|
|
||
| jobs: | ||
| run-tests: | ||
| runs-on: ${{ inputs.runner }} | ||
| container: | ||
| image: ${{ inputs.docker-image }} | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Install Deeploy | ||
| run: | | ||
| pip install -e . | ||
|
|
||
| - name: Run kernel tests | ||
| run: | | ||
| cd DeeployTest | ||
| pytest test_platforms.py -m "siracusa_tiled and kernels and ${{ inputs.memory-level }} and ${{ inputs.buffer-mode }}" -v |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # SPDX-FileCopyrightText: 2024 ETH Zurich and University of Bologna | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| --- | ||
| name: Siracusa Tiled Models Runner | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| runner: | ||
| required: true | ||
| type: string | ||
| docker-image: | ||
| required: true | ||
| type: string | ||
| test-name: | ||
| required: true | ||
| type: string | ||
| description: 'Test name to run' | ||
| memory-level: | ||
| required: true | ||
| type: string | ||
| description: 'Memory level marker (l2 or l3)' | ||
| buffer-mode: | ||
| required: true | ||
| type: string | ||
| description: 'Buffer mode marker (singlebuffer or doublebuffer)' | ||
|
|
||
| jobs: | ||
| run-test: | ||
| runs-on: ${{ inputs.runner }} | ||
| container: | ||
| image: ${{ inputs.docker-image }} | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Install Deeploy | ||
| run: | | ||
| pip install -e . | ||
|
|
||
| - name: Run model test with retry | ||
| uses: nick-fields/retry@v3 | ||
| with: | ||
| timeout_minutes: 20 | ||
| max_attempts: 3 | ||
| retry_on: error | ||
| command: | | ||
| cd DeeployTest | ||
| pytest test_platforms.py -k "${{ inputs.test-name }}-" -m "siracusa_tiled and models and ${{ inputs.memory-level }} and ${{ inputs.buffer-mode }}" -v |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 only draft, but don't forget this hard-coded path :)