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

update to new Validator interface #863

Merged
merged 6 commits into from
Apr 6, 2023

Conversation

CagtayFabry
Copy link
Member

@CagtayFabry CagtayFabry commented Apr 5, 2023

Changes

  • update asdf dependency to 2.15
  • implement new extension style validators
  • remove legacy validators and extension code

Related Issues

asdf-format/asdf#1012
asdf-format/asdf#1050

Checks

  • updated CHANGELOG.rst

@github-actions
Copy link

github-actions bot commented Apr 5, 2023

Test Results

2 189 tests  ±0   2 188 ✔️ ±0   2m 43s ⏱️ +2s
       1 suites ±0          1 💤 ±0 
       1 files   ±0          0 ±0 

Results for commit efd2615. ± Comparison against base commit bf5bc70.

♻️ This comment has been updated with latest results.

------
asdf.ValidationError
schema_property = "wx_unit"
tags = ["**"]
Copy link
Member Author

Choose a reason for hiding this comment

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

Ideally we would only list weldx tags here but selecting the validator for every node preserves the legacy behavior for untagged nodes
see previous discussion here asdf-format/asdf#1050 (comment)

@CagtayFabry
Copy link
Member Author

CagtayFabry commented Apr 5, 2023

asdf=2.15.0 is not yet available on conda-forge but the asdf tests pass locally for me

tests passing now with asdf 2.15.0 on conda-forge

@CagtayFabry CagtayFabry added ASDF everything ASDF related (python + schemas) validation custom ASDF validators dependencies changes in package dependencies labels Apr 5, 2023
@codecov
Copy link

codecov bot commented Apr 5, 2023

Codecov Report

Merging #863 (efd2615) into master (91140eb) will increase coverage by 0.01%.
The diff coverage is 97.77%.

@@            Coverage Diff             @@
##           master     #863      +/-   ##
==========================================
+ Coverage   96.47%   96.48%   +0.01%     
==========================================
  Files          95       94       -1     
  Lines        6238     6230       -8     
==========================================
- Hits         6018     6011       -7     
+ Misses        220      219       -1     
Impacted Files Coverage Δ
weldx/asdf/validators.py 98.24% <97.14%> (+0.10%) ⬆️
weldx/asdf/extension.py 100.00% <100.00%> (ø)
weldx/asdf/util.py 90.88% <100.00%> (ø)
weldx/core/math_expression.py 98.59% <100.00%> (+0.08%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@CagtayFabry CagtayFabry requested a review from marscher April 5, 2023 14:36
@CagtayFabry CagtayFabry marked this pull request as ready for review April 5, 2023 14:36
@CagtayFabry CagtayFabry enabled auto-merge April 5, 2023 15:29
Copy link
Contributor

@marscher marscher left a comment

Choose a reason for hiding this comment

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

Thanks for getting rid of this legacy code!

@CagtayFabry CagtayFabry added this pull request to the merge queue Apr 6, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Apr 6, 2023
@CagtayFabry CagtayFabry merged commit e68bb6d into BAMWelDX:master Apr 6, 2023
@CagtayFabry CagtayFabry deleted the update_validators branch April 6, 2023 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASDF everything ASDF related (python + schemas) dependencies changes in package dependencies validation custom ASDF validators
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants