[SPARK-56415][INFRA] Simplify create_spark_jira.py for LLM-driven JIRA ticket creation#55281
Open
cloud-fan wants to merge 9 commits intoapache:masterfrom
Open
[SPARK-56415][INFRA] Simplify create_spark_jira.py for LLM-driven JIRA ticket creation#55281cloud-fan wants to merge 9 commits intoapache:masterfrom
cloud-fan wants to merge 9 commits intoapache:masterfrom
Conversation
…A ticket creation Co-authored-by: Isaac
- Remove CLI version flag; auto-detect latest unreleased version instead - Split preflight into check_jira_access() and detect_affected_version() - Hint in AGENTS.md to review versions after ticket creation Co-authored-by: Isaac
…ssues only Co-authored-by: Isaac
cloud-fan
commented
Apr 9, 2026
Contributor
Author
There was a problem hiding this comment.
I can add back the old script if people still need it, but with a different name, as create_spark_jira.py should only create ticket.
Co-authored-by: Isaac
Co-authored-by: Isaac
Co-authored-by: Isaac
Contributor
Author
Member
|
Thank you for pinging me. Let me try today. |
|
|
||
| parser = argparse.ArgumentParser(description="Create a Spark JIRA issue.") | ||
| parser.add_argument("title", nargs="?", help="Title of the JIRA issue") | ||
| parser.add_argument("-p", "--parent", help="Parent JIRA ID for subtasks") |
Member
There was a problem hiding this comment.
I'm alway using this parent JIRA ID feature. Please recover this, @cloud-fan .
Co-authored-by: Isaac
…xclusive Co-authored-by: Isaac
Co-authored-by: Isaac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Simplifies
dev/create_spark_jira.pyto focus on JIRA ticket creation only, making it suitable for use by LLM agents. Also updatesAGENTS.mdwith instructions for automated ticket creation.Changes to the script:
create_and_checkout_branch(),create_commit(),run_cmd(), and interactivechoose_components()— the script now only creates a JIRA ticket and prints the ticket key.-c(component) required instead of falling back to an interactive prompt.--list-componentsflag to query valid component names from JIRA.jiralibrary orJIRA_ACCESS_TOKENis missing, the script prints a helpful message directing the user to create the ticket manually, instead of a raw error.Changes to
AGENTS.md:Why are the changes needed?
Previously,
AGENTS.mdtold LLM agents to ask the user to create JIRA tickets manually. Thecreate_spark_jira.pyscript existed but included interactive prompts and git side effects (branch creation, committing) that made it unsuitable for automated use. This change makes the script LLM-friendly so agents can create tickets as part of the PR workflow.Does this PR introduce any user-facing change?
No. The script's CLI interface is simplified but the core JIRA creation functionality is preserved.
How was this patch tested?
#55280 was created with this new prompt.
Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code