Fix auto-triage user_confirm accepting unrecognized keys as default answer#63579
Conversation
|
Hey @choo121600, good find — accidentally approving workflow runs by pressing a random key is definitely a safety concern for the triage tool. The One thing to watch out for: there's a merge conflict with current main. Commit 7cea0b8 landed a refactor that replaced A couple of other thoughts:
The logic itself looks correct to me across all the edge cases I checked (Enter with/without default, case sensitivity, quit_allowed=False, special characters). Clean and well-scoped fix. |
I don't know why AI goes with As your entire message looks fully AI generated, so I assume AI suggested the approach without you spending any time on reviewing the actual code to easily say it is the best approach to use |
|
Hey @bugraoz93, appreciate you taking the time to share your thoughts, that's a fair concern in general about That said, I think the context here makes it a pretty safe choice:
And yeah, fair enough on the AI comment, I do use AI tools as part of my workflow and polishing the content(eg: comments, asking questions to improve grammar before publishing, I think most of us do these days to some degree). But I did read through the file and trace the code paths before commenting. Things like the merge conflict with |
The current state of the code can work and there could be no problem which I wasn't stated that the current code is flaky nor have incomplete checks. My observation is more on future, lots of different people touching each of the code pieces. This doesn't mean we always see all the exits clearly via just looking at the code you need to expand entire method to ensure all new exits align with all others. That was my concern where we missed an I would say if you checked the code yourself, the best way to express it not tagging me to tell the PR owners to close my comment, rather answer in the comment, share your thoughts then we can discuss the solution while all of us can improve while Airflow is improving. Even answering to the comment with I stated as a small nit not a blocker already gives the PR owner to either discuss with me or close the thread with thoughts. This was pretty clear while if AI wasn't generated all, you would also skip and left the part to PR author if you don't have objection to it. If you have lets discuss in the threads as humans rather pointing the ideas are wrong from AI context (with AI help is always okay until it do everything for you which makes you losing the human behavior). |
40a5b99 to
998e722
Compare
e8dd7cd to
2c5916f
Compare
|
I think many of us contribute here because we enjoy discussing different ideas and improving Airflow together as a community. From my perspective, both points raised here are valuable — @Vamsi-klu provided helpful context on why the In situations like this, continuing the discussion in the comment thread can sometimes help keep the context clearer and make the communication flow more naturally. Discussions like this are one of the things that make open source collaboration valuable 😉 |
Backport failed to create: v3-1-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker 3155c29 v3-1-testThis should apply the commit to the v3-1-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
During
breeze pr auto-triage, when approving workflow runs,user_confirmsilently treats unrecognized keys as the default answer.Since the approval prompt defaults to YES (when no sensitive changes are detected), pressing a wrong key unintentionally approves workflow runs.
Change
user_confirmto re-prompt on unrecognized input instead of falling through to the default.Before
After
Was generative AI tooling used to co-author this PR?
claude opus 4.6
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.