Skip to content

Only run cleanup if tests ran, adds pytest marker config for slow tests#595

Merged
pstjohn merged 3 commits intomainfrom
pstjohn-patch-2
Jan 15, 2025
Merged

Only run cleanup if tests ran, adds pytest marker config for slow tests#595
pstjohn merged 3 commits intomainfrom
pstjohn-patch-2

Conversation

@pstjohn
Copy link
Collaborator

@pstjohn pstjohn commented Jan 13, 2025

Description

We don't need to fail the cleanup step if we never ran the tests, this deletes the image from the GPU worker to save space. Also adds the missing pytest marker configuration to our pytest.ini for skipping slow tests.

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactor
  • Documentation update
  • Other (please describe):

CI Pipeline Configuration

Configure CI behavior by checking relevant boxes below. This will automatically apply labels.

Note

By default, the notebooks validation tests are skipped unless explicitly enabled.

Usage

TODO: Add code snippet

Pre-submit Checklist

  • I have tested these changes locally
  • I have updated the documentation accordingly
  • I have added/updated tests as needed
  • All existing tests pass successfully

@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.78%. Comparing base (f59c602) to head (5d59ba7).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #595   +/-   ##
=======================================
  Coverage   88.78%   88.78%           
=======================================
  Files          81       81           
  Lines        5027     5027           
=======================================
  Hits         4463     4463           
  Misses        564      564           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pstjohn pstjohn removed the SKIP_CI label Jan 14, 2025
@pstjohn pstjohn changed the title Only run cleanup if tests ran Only run cleanup if tests ran, adds pytest marker config for slow tests Jan 14, 2025
@pstjohn pstjohn added the ready PRs that are ready to merge, to coordinate while we don't have a merge queue label Jan 14, 2025
Only run cleanup if tests ran

Signed-off-by: Peter St. John <pstjohn@nvidia.com>
Signed-off-by: Peter St. John <pstjohn@nvidia.com>
Signed-off-by: Peter St. John <pstjohn@nvidia.com>
@pstjohn
Copy link
Collaborator Author

pstjohn commented Jan 15, 2025

/build-ci

@pstjohn pstjohn enabled auto-merge (squash) January 15, 2025 15:36
@pstjohn pstjohn merged commit b640386 into main Jan 15, 2025
7 checks passed
@pstjohn pstjohn deleted the pstjohn-patch-2 branch January 15, 2025 15:49
sichu2023 pushed a commit that referenced this pull request Jan 17, 2025
…ts (#595)

### Description

We don't need to fail the cleanup step if we never ran the tests, this
deletes the image from the GPU worker to save space. Also adds the
missing pytest marker configuration to our pytest.ini for skipping slow
tests.

### Type of changes
<!-- Mark the relevant option with an [x] -->

- [x]  Bug fix (non-breaking change which fixes an issue)
- [ ]  New feature (non-breaking change which adds functionality)
- [ ]  Refactor
- [ ]  Documentation update
- [ ]  Other (please describe):

### CI Pipeline Configuration
Configure CI behavior by checking relevant boxes below. This will
automatically apply labels.

- [ ]
[SKIP_CI](https://github.com/NVIDIA/bionemo-framework/blob/main/docs/docs/user-guide/contributing/contributing.md#skip_ci)
- Skip all continuous integration tests
- [ ]
[INCLUDE_NOTEBOOKS_TESTS](https://github.com/NVIDIA/bionemo-framework/blob/main/docs/docs/user-guide/contributing/contributing.md#include_notebooks_tests)
- Execute notebook validation tests in pytest

> [!NOTE]
> By default, the notebooks validation tests are skipped unless
explicitly enabled.

### Usage
<!--- How does a user interact with the changed code -->
```python
TODO: Add code snippet
```

### Pre-submit Checklist
<!--- Ensure all items are completed before submitting -->

 - [ ] I have tested these changes locally
 - [ ] I have updated the documentation accordingly
 - [ ] I have added/updated tests as needed
 - [ ] All existing tests pass successfully

---------

Signed-off-by: Peter St. John <pstjohn@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready PRs that are ready to merge, to coordinate while we don't have a merge queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants