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

feat(macros): add SetOptions { profile } command #1404

Merged
merged 7 commits into from
Jun 6, 2024

Conversation

Br1ght0ne
Copy link
Contributor

@Br1ght0ne Br1ght0ne commented Jun 3, 2024

Close #1360.

The command is optional, and defaults to release profile.

Checklist

  • I have linked to any relevant issues.
  • I have updated the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added necessary labels.
  • I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
  • I have requested a review from the relevant team or maintainers.

@Br1ght0ne Br1ght0ne self-assigned this Jun 3, 2024
@Br1ght0ne Br1ght0ne marked this pull request as ready for review June 3, 2024 10:26
Copy link
Contributor

@segfault-magnet segfault-magnet left a comment

Choose a reason for hiding this comment

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

Short and sweet, plugged in nicely at all the right places.

I'd remove strum and implement the conversion to string manually.

If it were a binary I wouldn't nitpick, but wouldn't like the dep to propagate to all users of the sdk because of "debug" and "release". Besides an extra dep, our version choice (whatever it is) might also cause headaches to any present strum dep.

@Br1ght0ne Br1ght0ne requested a review from segfault-magnet June 4, 2024 01:57
segfault-magnet
segfault-magnet previously approved these changes Jun 4, 2024
Copy link
Contributor

@segfault-magnet segfault-magnet left a comment

Choose a reason for hiding this comment

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

I wish there was an easy way to test this (this - i.e. that debug is going to use the debug build). An e2e would require compiling both debug and release builds, and that might be overkill.

MujkicA
MujkicA previously approved these changes Jun 4, 2024
Copy link
Contributor

@hal3e hal3e left a comment

Choose a reason for hiding this comment

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

Nicely done! I would add 2 ui tests. One where we use Option with something other than profile and another one when profile is something other than debug or release

@Br1ght0ne Br1ght0ne dismissed stale reviews from MujkicA and segfault-magnet via 8488643 June 5, 2024 16:34
Copy link
Member

@digorithm digorithm left a comment

Choose a reason for hiding this comment

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

Great job -- nice UI tests, too!

@Br1ght0ne Br1ght0ne enabled auto-merge (squash) June 5, 2024 18:06
Copy link
Contributor

@hal3e hal3e left a comment

Choose a reason for hiding this comment

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

Great work!

@Br1ght0ne Br1ght0ne merged commit 9f8d74f into master Jun 6, 2024
44 checks passed
@Br1ght0ne Br1ght0ne deleted the oleksii/setup_program_test/configurable_profile branch June 6, 2024 07:41
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.

Add build profile option tosetup_program_test!
6 participants