Skip to content

Commit 5f054fe

Browse files
committed
Merge branch 'dev' into kzscisoft/filter-object
2 parents 83327d1 + c54116d commit 5f054fe

38 files changed

+1902
-981
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# <Title of Bug Fix>
2+
3+
**Issue:** Link to the issue relating to this bug.
4+
**Python Version(s) Tested:** Python versions this fix has been verified against.
5+
**Operating System(s):** Operating systems this fix has been tested in.
6+
7+
## 📝 Summary
8+
9+
Please provide a summary of the original bug, and the fix implemented to address it.
10+
11+
## 🔍 Diagnosis
12+
13+
If applicable, please summarise any information relating to how the bug was identified, and the root causes.
14+
15+
## 🔄 Changes
16+
17+
Provide any additional detail on the changes applied to address the issue.
18+
19+
## ✔️ Checklist
20+
- [ ] Unit and integration tests passing.
21+
- [ ] Pre-commit hooks passing.
22+
- [ ] Quality checks passing.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# <Feature Title>
2+
3+
**Issue:** Link to the issue proposing this feature.
4+
**Python Version(s) Tested:** Python versions this feature has been tested on.
5+
**Operating System(s):** Operating systems this feature has been tested on.
6+
**Documentation PR:** Issue on [Docs repo](https://github.com/simvue-io/docs).
7+
8+
## 📝 Summary
9+
10+
Please provide a summary of the feature including why it is beneficial to other users.
11+
12+
## 🔄 Changes
13+
14+
Outline the changes/additions made to implement this feature.
15+
16+
## ✔️ Checklist
17+
- [ ] Unit and integration tests passing.
18+
- [ ] Pre-commit hooks passing.
19+
- [ ] Quality checks passing.
20+
- [ ] Updated the [documentation](https://github.com/simvue-io/docs).

.github/pull_request_template.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Please select from the following templates by clicking 'Preview' and then the relevant link:
2+
3+
🆕 [**Feature**](?expand=1&template=feature.md)
4+
5+
🐛 [**Bug Fix**](?expand=1&template=bug_fix.md)

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
name: python-package-distributions
8080
path: dist/
8181
- name: Sign the dists with Sigstore
82-
uses: sigstore/gh-action-sigstore-python@v3
82+
uses: sigstore/gh-action-sigstore-python@v3.0.0
8383
with:
8484
inputs: >-
8585
./dist/*.tar.gz

.github/workflows/test_client_macos.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
timeout-minutes: 30
1616
runs-on: macos-latest
1717
steps:
18-
- uses: actions/checkout@v3
19-
- name: Set up Python 3.12
20-
uses: actions/setup-python@v3
18+
- uses: actions/checkout@v4
19+
- name: Set up Python 3.13
20+
uses: actions/setup-python@v5
2121
with:
22-
python-version: "3.12"
22+
python-version: "3.13"
2323
- name: Install dependencies
2424
run: |
2525
rm poetry.lock

.github/workflows/test_client_ubuntu.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ jobs:
2323
runs-on: ubuntu-latest
2424
timeout-minutes: 30
2525
steps:
26-
- uses: actions/checkout@v3
27-
- name: Set up Python 3.12
28-
uses: actions/setup-python@v3
26+
- uses: actions/checkout@v4
27+
- name: Set up Python 3.13
28+
uses: actions/setup-python@v5
2929
with:
30-
python-version: "3.12"
30+
python-version: "3.13"
3131
- name: Install dependencies
3232
run: python -m pip install poetry
3333
- name: Test with pytest
3434
run: |
3535
export SIMVUE_URL=${{ secrets.SIMVUE_URL }}
3636
export SIMVUE_TOKEN=${{ secrets.SIMVUE_TOKEN }}
3737
poetry install --all-extras
38-
poetry run python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
39-
poetry run pytest -x --cov --cov-report=xml tests/unit/ tests/refactor/ -m 'not scenario'
38+
# poetry run python -m pip install torch --index-url https://download.pytorch.org/whl/cpu FIXME: PyTorch current broken for Python3.13
39+
poetry run pytest -x --cov --cov-report=xml tests/unit/ tests/refactor/ -m 'not scenario' -c /dev/null -p no:warnings -n 0
4040
- name: Upload coverage reports to Codecov
4141
run: |
4242
curl -Os https://uploader.codecov.io/latest/linux/codecov

.github/workflows/test_multiple_python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
timeout-minutes: 30
2323
strategy:
2424
matrix:
25-
python-version: ['3.9', '3.10', '3.11']
25+
python-version: ['3.10', '3.11', '3.12']
2626
steps:
2727
- uses: actions/checkout@v3
2828
- name: Set up Python ${{ matrix.python-version }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ dmypy.json
134134

135135
# Simvue files
136136
simvue.ini
137+
simvue.toml
137138
offline/
138139

139140
# Pyenv

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
exclude: '^tests|^docs'
1+
exclude: '^tests|^docs|^examples|^notebooks'
22
ci:
33
autofix_prs: false
44
autoupdate_branch: ''
@@ -8,7 +8,7 @@ ci:
88
submodules: false
99
repos:
1010
- repo: https://github.com/pre-commit/pre-commit-hooks
11-
rev: v4.6.0
11+
rev: v5.0.0
1212
hooks:
1313
- id: check-toml
1414
- id: check-yaml
@@ -23,7 +23,7 @@ repos:
2323
args: [--branch, main, --branch, dev]
2424
- id: check-added-large-files
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: v0.6.7
26+
rev: v0.7.0
2727
hooks:
2828
- id: ruff
2929
args: [ --fix, --exit-non-zero-on-fix, "--ignore=C901" ]
@@ -35,7 +35,7 @@ repos:
3535
pass_filenames: false
3636

3737
- repo: https://github.com/PyCQA/bandit.git
38-
rev: 1.7.9
38+
rev: 1.7.10
3939
hooks:
4040
- id: bandit
4141
args: [-lll, --recursive, clumper]

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
# Change log
22

3+
## Unreleased
4+
5+
* Drop support for INI based configuration files.
6+
7+
## [v1.1.1](https://github.com/simvue-io/client/releases/tag/v1.1.1) - 2024-10-22
8+
9+
* Add missing `offline.cache` key to TOML config.
10+
* Fix repetition of server URL validation for each call to configuration.
11+
12+
## [v1.1.0](https://github.com/simvue-io/client/releases/tag/v1.1.0) - 2024-10-21
13+
14+
* Add option to specify a callback executed when an alert is triggered for a run.
15+
* Allow retrieval of all alerts when no constraints are specified.
16+
* Add carbon emissions statistics as optional metrics.
17+
* Include Python and Rust environment metadata.
18+
* Allow the disabling of heartbeat to allow runs to continue indefinitely.
19+
* Verify Simvue server URL as early as possible.
20+
* Indicate the source used for token and URL.
21+
* Migrate to `simvue.toml` from `simvue.ini`, allowing more defaults to be set during runs.
22+
23+
## [v1.0.6](https://github.com/simvue-io/client/releases/tag/v1.0.6) - 2024-10-10
24+
25+
* Fix incorrect usage of `retry` when attempting connections to the server.
26+
27+
## [v1.0.5](https://github.com/simvue-io/client/releases/tag/v1.0.5) - 2024-10-09
28+
29+
* Ensure all functionality is deactivated when mode is set to `disabled`.
30+
* When an exception is thrown an event is sent to Simvue displaying the traceback.
31+
* If `add_process` is used and an exception is thrown, `.err` and `.out` files are still uploaded.
32+
333
## [v1.0.4](https://github.com/simvue-io/client/releases/tag/v1.0.4) - 2024-09-24
434

535
* Set resource metrics to be recorded by default.

0 commit comments

Comments
 (0)