Skip to content

Allow specifying a user defined JSON file - #146

Merged
alalazo merged 1 commit into
masterfrom
features/custom-json
Feb 21, 2024
Merged

alalazo merged 1 commit into
masterfrom
features/custom-json

Conversation

@alalazo

@alalazo alalazo commented Feb 14, 2024 •

Copy link
Copy Markdown
Member

fixes #144

Users can now specify in the environment variable ARCHSPEC_CPU_DIR a custom directory where to find a complete replacement of the JSON files expected by archspec.

Likewise, they can set ARCHSPEC_EXTENSION_CPU_DIR to a directory where extension to the default JSON files are found.

Comment thread tests/test_cli.py Fixed
Comment thread tests/test_cli.py Fixed
@alalazo alalazo added the enhancement New feature or request label Feb 14, 2024
@alalazo
alalazo force-pushed the features/custom-json branch from 641819d to c576b69 Compare February 17, 2024 09:48
Comment thread tests/test_cli.py Fixed
Comment thread tests/test_cli.py Fixed
@alalazo
alalazo force-pushed the features/custom-json branch from c576b69 to e12923d Compare February 17, 2024 13:14
Comment thread tests/conftest.py
import archspec.cli
import archspec.cpu
import archspec.cpu.detect
import archspec.cpu.microarchitecture

Check notice

Code scanning / CodeQL

Module is imported with 'import' and 'import from'

Module 'archspec.cpu.microarchitecture' is imported with both 'import' and 'import from'.
Comment thread tests/conftest.py
import archspec.cpu
import archspec.cpu.detect
import archspec.cpu.microarchitecture
import archspec.cpu.schema

Check notice

Code scanning / CodeQL

Module is imported with 'import' and 'import from'

Module 'archspec.cpu.schema' is imported with both 'import' and 'import from'.
Users can now specify in the environment variable `ARCHSPEC_CPU_DIR`
a custom directory where to find a complete replacement of the JSON
files expected by archspec.

Likewise, they can set `ARCHSPEC_EXTENSION_CPU_DIR` to a directory
where extension to the default JSON files are found.
@alalazo
alalazo force-pushed the features/custom-json branch from e12923d to 7b5f2f8 Compare February 18, 2024 16:14
@codecov-commenter

codecov-commenter commented Feb 18, 2024 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.15%. Comparing base (c14c199) to head (7b5f2f8).
⚠️ Report is 52 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #146      +/-   ##
==========================================
+ Coverage   93.20%   94.15%   +0.94%     
==========================================
  Files           8        8              
  Lines         471      496      +25     
==========================================
+ Hits          439      467      +28     
+ Misses         32       29       -3     
Flag Coverage Δ
unittests 94.15% <100.00%> (+0.94%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alalazo
alalazo merged commit 49752a6 into master Feb 21, 2024
@alalazo
alalazo deleted the features/custom-json branch February 21, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow using an external JSON file for microarchitectures

4 participants