Closed 0xRichardH closed 3 months ago
Hi @joshmedeski Do you know why the bench tests keep failing? Do you think it is a GitHub action resource issue?
It might be timing out due to the long test.
Now that you've tested where the dropoff point is, let's remove the bigger performance tests so the testing can be sped up.
Maybe we just need to test that two works.
I cannot figure out why the beach tests still fail on CI. The bench tests will fail even if I set the test input to 0 (which means not loading the extended/additional configs). So I disabled running bench tests for ParseConfigFile for now.
It appears to be working now. Thanks for creating the tests, I mostly just wanted some awareness for where this feature drops off in performance, and we now have that answer.
I'll look over the code again and do some manual testing then I can merge and ship it, thanks!
I've got some more work to do this week, so I probably will do a release on Friday. Nice work!
@0xRichardH did you play around with the built-in import feature from toml?
import = ["~/code/my_compay/sesh.toml"]
It didn't work on my first try, but this seems more simple and more inline with how toml works rather than us trying to create a brand new pattern.
We could even convert what we did to an array instead of grouping by [[extended_configs]]
.
What do you think? I want this to be as simple as possible before documenting and shipping it.
https://github.com/toml-lang/toml/issues/397
@0xRichardH did you play around with the built-in import feature from toml?
import = ["~/code/my_compay/sesh.toml"]
It didn't work on my first try, but this seems more simple and more inline with how toml works rather than us trying to create a brand new pattern.
We could even convert what we did to an array instead of grouping by
[[extended_configs]]
.What do you think? I want this to be as simple as possible before documenting and shipping it.
The toml itself doesn't support import
feature https://github.com/toml-lang/toml/issues/397 . but it will be more elegant to use import
to replace extended_configs
. I will create a new PR to make a change.
import = ["~/code/my_compay/sesh.toml"]
Thanks! I'll look it over.
Background
dotfiles
, but I don't want to commit some sensitive information to the public GitHub repository. For example:startup_scripts
config, but I don't want to add the sensitive info (company name)~/code/my_compay
to my Github repositoryUsage
default_startup_script = "default"
[[startup_scripts]] session_path = "~/dev/first_session" script_path = "~/.config/sesh/scripts/first_script"
[[startup_scripts]] session_path = "~/dev/second_session" script_path = "~/.config/sesh/scripts/second_script"
[[extended_configs]] path = "~/.config/sesh/local/sesh.toml"
Test Cases