-
Notifications
You must be signed in to change notification settings - Fork 167
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
don't use crds sync
for CRDS caching, and also consolidate CI jobs
#7444
Conversation
.github/workflows/ci.yml
Outdated
- run: > | ||
echo "pmap=$( | ||
curl -s -X POST -d '{"jsonrpc": "1.0", "method": "get_default_context", "params": ["jwst"], "id": 1}' ${{ env.CRDS_SERVER_URL }}/json/ | | ||
python -c "import sys, json; print(json.load(sys.stdin)['result'])" | ||
)" >> $GITHUB_OUTPUT | ||
# Get default CRDS_CONTEXT without installing crds client | ||
# See https://hst-crds.stsci.edu/static/users_guide/web_services.html#generic-request | ||
id: crds-context | ||
if: ${{ contains(matrix.toxenv, 'test') && !contains(matrix.toxenv, 'opencv') }} | ||
- run: echo "CRDS CONTEXT ${{ steps.crds-context.outputs.pmap }}" | ||
if: ${{ contains(matrix.toxenv, 'test') && !contains(matrix.toxenv, 'opencv') }} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.CRDS_PATH }} | ||
key: crds-${{ needs.cache_crds.outputs.crds-context }} | ||
key: crds-${{ steps.crds-context.outputs.pmap }} | ||
if: ${{ contains(matrix.toxenv, 'test') && !contains(matrix.toxenv, 'opencv') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only cache CRDS for test
job if it does not have the opencv
factor
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #7444 +/- ##
=======================================
Coverage 77.58% 77.58%
=======================================
Files 449 449
Lines 36029 36029
=======================================
Hits 27952 27952
Misses 8077 8077
*This pull request uses carry forward flags. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
crds sync
for CRDS cachingcrds sync
for CRDS caching and consolidate jobs
crds sync
for CRDS caching and consolidate jobscrds sync
for CRDS caching, and also consolidate CI jobs
c928df7
to
d8b42f1
Compare
superseded by #7498 |
This PR addresses the issue brought up in #7414 (comment), where the CRDS caching is broken due to not caching the correct files. Additionally, consolidates CI jobs to reduce duplicate configuration in
ci.yml
. Altogether this should be a simple change to simplify the CI.Checklist for maintainers
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR