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
Bug: meltano config meltano set
should always set a value
#6015
Comments
This also seemed odd, but may be complicated by the fact that I have tracking disabled through an env var. Still shouldn't break setting it in
This ended up removing
This didn’t add |
@aaronsteers I've set the urgency to "Higher" here because this could be a bad bug. |
@DouweM - Makes sense. I'm not sure when this started but it's on my radar too. Thanks. |
My guess is we have two bugs here:
The second issue, I think, is the bigger issue we should tackle. The first issue might only be affecting this particular code path and (if so) might be best resolved by not trying to infer a hierarchy at all. As a user, if I tell Meltano to store a setting, I don't want Meltano to second guess whether it actually needs to be set. I'll take a deeper look tonight and @kgpayne I might assign to you since this is a part of the codebase I know you are very familiar with. |
meltano config meltano set
doesn't work as expectedmeltano config meltano set
should always set a value
meltano config meltano set
should always set a value meltano config meltano set
should always set a value
@aaronsteers Note that the title here now only reflects the issue in #6015 (comment), not #6015 (comment), which I think its the more urgent issue and possibly new bug. |
@DouweM - The more I've looked into this, the more I think these appear to be the same issue. "Nowhere to be found" seems to be a symptom of the write operation being short-circuited before writing - and 'removing conditional write with bad checks' would by definition solve the 'nowhere to be found' issue. Regardless of the circumstances in which we call
Some of your sample cases (from your logs, at least) are definitely failing the 2nd and 3rd steps. They may also be failing the fourth step if they are printing bad information about what the effective value is after the set operation - but that I'm less sure of as of now. If there's more to address, can you clarify? |
@aaronsteers I haven't tested #6025 yet to see if it actually resolved my first issue, but I don't understand how it would, as the code being removed there compares the new value against the default or current value, but in my case the new value ( Were you able to reproduce my first issue and verify that this changed solved it? If so, disregard anything I said here, although I'd still be concerned about Chesterton's fence (#6025 (comment)). If you have trouble reproducing the issue let me know, and I can dig into it some more. |
@DouweM - We're getting a little deep into philosophy here 🧠 😅 (TIL) but I appreciate the points. What I'm not sure of is if we're on the same page regarding the symptom we want to solve. I have a few other PRs that need my attention but I'll come back to this when I can. While I appreciate the Chesterson's fence argument, we can also just decide that the simpler and more obvious behavior is the better one: said simply:
All of the symptoms you are describing are (I think) encompassed in those requirements, and in the 4 bullets I posted above. |
@aaronsteers All I want is for $ meltano init 6015-test
# [snip output]
$ cd 6015-test
$ cat meltano.yml
version: 1
default_environment: dev
send_anonymous_usage_stats: false
environments:
- name: dev
- name: staging
- name: prod
$ meltano config meltano set discovery_url http://localhost:4000/discovery.yml
2022-06-05T18:25:24.365695Z [info ] Environment 'dev' is active
Meltano setting 'discovery_url' was set in `meltano_environment`: 'http://localhost:4000/discovery.yml'
Current value is still: 'https://discovery.meltano.com/discovery.yml' (from the default)
$ cat meltano.yml
version: 1
default_environment: dev
send_anonymous_usage_stats: false
environments:
- name: dev
- name: staging
- name: prod If #6025 indeed fixes that, let's discuss the merits of that behavior change more, but otherwise I don't think we need to try to get that resolved before 2.0. |
@aaronsteers Let me know if you'd like me to look into this myself! I think I still know this part of the codebase pretty well. |
Fixed in #6034! |
I'd expect this to store
discovery_url: http://localhost:4000/discovery.yml
inmeltano.yml
, but it's nowhere to be found.The text was updated successfully, but these errors were encountered: