Skip to content

Conversation

@jnmandal
Copy link
Contributor

@jnmandal jnmandal commented Mar 13, 2025

Goal here is to be able to run mix bless --seed 12345 and have it work intuitively. Tried to keep the code in a way where different args could be added easily later if we decide there are more we care about. Unfortunately its not possible to pass through all the args as some of the tasks will fail w/ unknown args.

connect #8

@jnmandal jnmandal force-pushed the sinsemilla branch 4 times, most recently from a2a51b1 to 41730af Compare March 13, 2025 17:29
@jnmandal jnmandal changed the title Sinsemilla Allow pass through of certain args Mar 13, 2025
@jnmandal jnmandal requested a review from a team March 13, 2025 17:43
{:chaps, ">= 0.15.0", only: :test, optional: true},
{:credo, ">= 0.0.0", only: :test, runtime: false, optional: true}
{:chaps, ">= 1.0.0", only: :test, optional: true},
{:credo, ">= 1.7.0", only: :test, runtime: false, optional: true}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are the most recent. I'm not clear if this could be really painful in consumer applications... If so, may need to lower these to more reasonable versions? I didn't notice any problems in agora, which I tested against this.

@@ -1,2 +1,2 @@
elixir 1.10.3-otp-21
erlang 21.0
elixir 1.14.0-otp-25

Choose a reason for hiding this comment

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

hm...not sure if older apps that use bless all can safely use elixir 1.14 🤔 could it not have stayed on 1.10 for these changes?

Choose a reason for hiding this comment

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

How would we even check? Yikes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I assumed 1.10 was way out of date b/c I didnt have it on my galacticon's asdf listing. Its possible that is still the best version to use though; I didn't spend that much time sussing this out

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah what's funny @electricshaman is that this is controlled somewhere in harness or maybe another dependency. I was editing the mix.exs directly and bypassing harness in agora to test my change. I haven't gotten far enough to see where I would bump the version to take advantage of this but this is not a huge advantageous change that would be urgent for consumers to adopt so maybe its OK to bump elixir version a bit? I'm not sure how to reason about it.

Copy link

@electricshaman electricshaman Mar 13, 2025

Choose a reason for hiding this comment

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

@jnmandal First thing that popped into my head was to search for Elixir 1.9 versions (or lower) either in mix.exs directly or harness.exs across NFIBrokerage and see what that list looks like.

Choose a reason for hiding this comment

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

but we can check on invoice_emailing_pm that is harnessed on an older harness pm version (cause of wkhtml2pdf) and runs on elixir 1.11

Choose a reason for hiding this comment

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

harness itself is on elixir 1.11.0-otp-22
erlang 22.3

Choose a reason for hiding this comment

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

I can yeet an RC for bless with this updated elixir and see if harness complains ¯_(ツ)_/¯

Copy link
Contributor Author

Choose a reason for hiding this comment

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

TBH I am fine with rolling it back to 1.10. The only reason I chose 1.14 was because I didn't want to download another version into my asdf and in hindsight that seems like a poor reason to bump versions

Choose a reason for hiding this comment

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

yup, works in harness on 1.11 with RC from this branch. I just have PR that makes sure that we can publish a hex package with RC in the name

Copy link
Contributor

@tonyvanriet tonyvanriet left a comment

Choose a reason for hiding this comment

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

tyty

coulda swore I had successfully used seed with bless before... maybe that was an earlier incarnation that was not this library. anyway, thx <3

@jnmandal
Copy link
Contributor Author

tyty

coulda swore I had successfully used seed with bless before... maybe that was an earlier incarnation that was not this library. anyway, thx <3

Think this was when we first added the cool color highlighting and stuff. It did used to work! But then I think one of the sub tasks started erroring when we passed unknown args.

@jnmandal
Copy link
Contributor Author

close in favor of #11

@jnmandal jnmandal closed this Mar 21, 2025
@tonyvanriet tonyvanriet deleted the sinsemilla branch December 22, 2025 20:20
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.

5 participants