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

Open
wants to merge 45 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)

#221

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

@singhd789 singhd789 marked this pull request as ready for review January 15, 2025 19:34
@ilaflott ilaflott self-requested a review January 17, 2025 22:50
@ilaflott
Copy link
Member

i'd help resolve these conflicts, approve+merge whenever you're ready.

@singhd789
Copy link
Collaborator Author

i'd help resolve these conflicts, approve+merge whenever you're ready.

Thanks @ilaflott. I'll work on merge conflicts and probably ping you when I think everything's good

Dana Singh added 10 commits January 21, 2025 10:54
…rce-checkout-and-compile

- resolve merge conflicts
- these changes will be done in another issue
- instead of passing fremake object to run function, just pass compile script path to run
- this allows an already created compile script to also run in parallel (if not being created or if no `force-compile` is used)
@singhd789
Copy link
Collaborator Author

@ilaflott @uramirez8707 @rem1776 Ooook, had to iron out some things that I was doing that I actually didn't want to be doing, but I think this PR should be ok for reviews/tests now 🤞

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