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

Cache LFS Objects in the TARDIS-Carsus Compatibility Check Workflow #327

Merged
merged 63 commits into from
Mar 30, 2023

Conversation

atharva-2001
Copy link
Member

📝 Description

📌 Resources

Examples, notebooks, and links to useful references.

🚦 Testing

How did you test these changes?

  • Testing pipeline
  • Other method (describe)
  • My changes can't be tested (explain why)

☑️ Checklist

  • I requested two reviewers for this pull request
  • I updated the documentation according to my changes
  • I built the documentation by applying the build_docs label

Note: If you are not allowed to perform any of these actions, ping (@) a contributor.

atharva-2001 and others added 30 commits June 28, 2022 18:48
change env file path

change env file path

change path again

change path again

skip first step

path again

Package path
repo path

test
 Fix package path
Fix notebook path

Fix notebook path

Require carsus build to run again before running tardis build
Fix output format of atom data notebook

Fix atom data path again

Print atom data path

Fix atom data path
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@codecov
Copy link

codecov bot commented Jan 27, 2023

Codecov Report

Merging #327 (01d61af) into master (275c383) will decrease coverage by 1.09%.
The diff coverage is 62.64%.

❗ Current head 01d61af differs from pull request most recent head c22ea9f. Consider uploading reports for the commit c22ea9f to get more accurate results

@@            Coverage Diff             @@
##           master     #327      +/-   ##
==========================================
- Coverage   74.44%   73.36%   -1.09%     
==========================================
  Files          23       25       +2     
  Lines        2614     3187     +573     
==========================================
+ Hits         1946     2338     +392     
- Misses        668      849     +181     
Impacted Files Coverage Δ
carsus/io/chianti_/chianti_.py 85.80% <0.00%> (+19.36%) ⬆️
carsus/io/output/base.py 9.02% <7.61%> (-1.82%) ⬇️
carsus/io/atom_data_compare.py 12.97% <12.97%> (ø)
carsus/io/zeta.py 27.65% <16.66%> (-2.35%) ⬇️
carsus/io/cmfgen/base.py 87.14% <85.49%> (+3.14%) ⬆️
carsus/io/cmfgen/util.py 94.11% <94.11%> (ø)
carsus/io/kurucz/gfall.py 95.11% <100.00%> (-0.13%) ⬇️
carsus/io/nist/ionization.py 97.68% <100.00%> (+1.15%) ⬆️
carsus/io/nist/weightscomp.py 99.05% <100.00%> (+1.88%) ⬆️
carsus/io/util.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

id: lfs-cache
with:
path: tardis-refdata/.git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('tardis-refdata/.lfs-assets-id') }}-v1
Copy link
Member

Choose a reason for hiding this comment

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

why v1 is hardcoded?

Copy link
Member Author

Choose a reason for hiding this comment

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

In case we want to invalidate the cache manually- actions/checkout#165

Copy link
Member

Choose a reason for hiding this comment

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

we use a CACHE_NUMBER: 0 variable on top of the file for that (I think setting to 1 is better though) and then replace v1 with v${{ env.CACHE_NUMBER }}

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with @epassaro.

@epassaro
Copy link
Member

Could you rebase this PR to master?

@atharva-2001 atharva-2001 marked this pull request as ready for review March 16, 2023 14:50
Copy link
Contributor

@chvogl chvogl left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@andrewfullard andrewfullard merged commit 59a76e4 into tardis-sn:master Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants