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

221.Add force checkout and compile functionality #236

Draft
wants to merge 34 commits into
base: main
Choose a base branch
from

Conversation

singhd789
Copy link
Collaborator

@singhd789 singhd789 commented Oct 30, 2024

Describe your changes

This PR adds

  • force-checkout
  • force-compile
  • force-dockerfile

These make it easier to edit scripts in between steps. Previously, if steps were run to make scripts, then re-run, there would just be a print statement that the script existed already. However, if the user wanted to change something, let's say in the checkout script, then re-run to execute it, that functionality was not there. They would've had to edit something in their configuration and start over.

Issue ticket number and link (if applicable)

https://github.com/orgs/NOAA-GFDL/projects/32?pane=issue&itemId=85061800&issue=NOAA-GFDL%7Cfre-cli%7C221

Checklist before requesting a review

  • I ran my code
  • I tried to make my code readable
  • I tried to comment my code
  • I wrote a new test, if applicable
  • I wrote new instructions/documentation, if applicable
  • I ran pytest and inspected it's output
  • I ran pylint and attempted to implement some of it's feedback

…eckout-and-compile

-also fix decorator function in `run_fremake.py`
- code was repeated if `--force-compile` was used
- code was repeated if `--force-checkout`, `--force-compile` or `--force-dockerfile` was used
- code would be duplicated if `--force-dockerfile` option is used
@singhd789 singhd789 requested a review from rem1776 December 11, 2024 21:52
@singhd789 singhd789 marked this pull request as ready for review January 9, 2025 18:46
@ilaflott
Copy link
Member

Looks fairly well thought out to me here- any tests coming?

maybe add quick desc of what the PR adds in plain english when you can!

@singhd789
Copy link
Collaborator Author

singhd789 commented Jan 10, 2025

Looks fairly well thought out to me here- any tests coming?

maybe add quick desc of what the PR adds in plain english when you can!

Oh wait! I can totally add test to test_run_fremake since that's in there already. (I can also add to the compile test I have going in a PR and work with Avery to add tests for checkout). Maybe the compile test can be merged in first - then I can add to it to test this functionality. Also good idea on the description, I think I meant to add to it when I took it out of draft but then forgot

@singhd789 singhd789 marked this pull request as draft January 10, 2025 21:19
@singhd789
Copy link
Collaborator Author

@ilaflott Thanks for taking a look in your spare time btw

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