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 tests; consolidate pypi build and publish #46

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

rhiannonlynne
Copy link
Member

Reworking the workflows .. but I may need to merge this before being able to check, due to git mv for one of the workflows.

@rhiannonlynne
Copy link
Member Author

Oh, that's interesting. It's running both the version of "run unit tests" from main and the version from here (the workflow yaml files for 'python_test' and 'test_and_build").

@rhiannonlynne
Copy link
Member Author

Wow, it is so weird how this repo has an issue with the ubuntu version of the download. Working on a thing to investigate.

Copy link

codecov bot commented Nov 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7b1101c) 12.19% compared to head (558ce3c) 12.19%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #46   +/-   ##
=======================================
  Coverage   12.19%   12.19%           
=======================================
  Files          39       39           
  Lines        3156     3156           
  Branches      477      477           
=======================================
  Hits          385      385           
  Misses       2762     2762           
  Partials        9        9           

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

Copy link
Collaborator

@ehneilsen ehneilsen 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, as far as I understand it.

tar -xf skybrightness_pre_2023_09_19.tgz
echo "skybrightness_pre_2023_09_19.tgz complete"
export RUBIN_SIM_DATA_DIR=~/rubin_sim_data
rs_download_data --force --dirs scheduler,site_models,skybrightness_pre,throughputs,tests --tdqm_disable
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this actually work here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well ... I haven't fallen into the problem of needing to use it.
It did work from the cache download script.
This should only trigger if the version of rubin_sim changed since the cache was created. The cache will be re-created every night, or can be manually triggered.
So it's just a backup, really. We could copy in the full "download all these files individually", but it seems like not a great option. It could also be deleted entirely, which was my first thought .. and then I figured, no it was worth leaving in as a "good example".
It's also worth noting that the cache build script is currently running on an ubuntu runner, but it would be perfectly fine to move that to a macOS runner if needed.

Copy link
Member Author

Choose a reason for hiding this comment

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

If you wanted me to pull the download individual files option into a different file, to preserve for easy pasting later, I could do that?

@rhiannonlynne rhiannonlynne merged commit 50db77a into main Nov 3, 2023
7 checks passed
@rhiannonlynne rhiannonlynne deleted the tickets/PREOPS-4517 branch November 3, 2023 22:52
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.

2 participants