-
Notifications
You must be signed in to change notification settings - Fork 343
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
Med: cts: Add missing crm_simulate regression tests back to cts-cli. #3823
base: main
Are you sure you want to change the base?
Conversation
Marked as a draft because these are going to fail, and there's no point wasting CI resources on that. They fail like so:
And the reason for each of these failures is that in Back in So, there's several things going on here:
|
There is precedent for changing the mappings outside of a minor release: Probably more -- I stopped there. I feel like if even Ken approved these, as cautious as he was about changing user-facing behavior, then it's probably fine. Just tag the commit with "API:" and ensure it goes in the change log. I don't think remapping the return code in Alternatively, if we wanted to be extra cautious, we could COMPAT notes to results.c and cts-cli.in, noting that we should do the remapping at a compatibility break; and use
Correct: see 2c4737b. The schema transform to 4.0 adds |
6a925de
to
2a6b2d1
Compare
These were dropped during the conversion from shell to python.
2a6b2d1
to
6731ec9
Compare
If there are differences from expected output when running under CI, it's useful to be able to see them instead of having to track down the files.
This helps to capture the output from the tests if problems are encountered when running under CI.
Now that I think about it, that is interesting though. Because on the flip side, we've often been very cautious about changing exit codes of CLI tools. For example, we want So another option would be:
|
Yeah, I could do that if you think it's worth it. I am a little less worried about changing exit codes when it's really a bug fix which I'd consider this to be. Looking through the history of the results code, we've had some sort of cib_corrupt value for a very long time, but our initial Over time we've introduced additional codes and improved the mapping, but for whatever reason, this value in particular has never been added. There may be others. I haven't looked because they didn't affect what I was trying to do in this PR. |
I'm not terribly concerned about backward compatibility of the particular error codes that a CLI tool returns. It's just something that we've been sticklers about in the past, right or wrong. (And we are often surprised by finding things that depend on particular user-facing behavior where it doesn't even make sense to do so lol.) If we want to continue doing that, it's not too hard to add COMPAT notes, etc. Just mildly annoying. I'm not bothered either way. I agree it seems like a bug fix. So would returning |
These were dropped during the conversion from shell to python.