-
Notifications
You must be signed in to change notification settings - Fork 95
fix(RELEASE-1910): timing issue in promotion report generation #1504
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
base: development
Are you sure you want to change the base?
Conversation
I assume there is no Jira opened for this fix. |
Hi Elena, The Problem:
The Solution:
Since this was a quick fix for an immediate issue, I didn't create a JIRA. Would you like me to create one for better tracking? I can create one quickly. |
Changes: - Add commit capture step before promotion - Add --commit-range parameter to script - Add error handling to prevent workflow failure - Add manual recovery instructions Signed-off-by: Happy Bhati <[email protected]>
@elenagerman updated the title and description and added the Jira as requested. |
# Generate the promotion report | ||
python .github/scripts/generate_promotion_report.py $FROM_BRANCH $TO_BRANCH | ||
# Generate the promotion report using captured commit range | ||
python .github/scripts/generate_promotion_report.py $FROM_BRANCH $TO_BRANCH --commit-range "$COMMIT_RANGE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't it be COMMITS instead of COMMIT_RANGE?
python .github/scripts/generate_promotion_report.py $FROM_BRANCH $TO_BRANCH --commit-range "$COMMIT_RANGE" | |
python .github/scripts/generate_promotion_report.py $FROM_BRANCH $TO_BRANCH --commit-range "$COMMITS" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Elena,
No, we should use COMMIT_RANGE
here. Here's why:
COMMIT_RANGE
=origin/production..origin/staging
(git range format)COMMITS
= multi-line list of individual commit hashes
The script's get_commits_with_diff()
method expects a git range format (e.g., origin/production..origin/staging
) to work with the git log
command.
The COMMITS
variable is stored primarily for reference and potential future use in manual recovery scenarios, but the script uses the range format for automated execution.
Thanks a lot! Now it's all much clearer |
Describe your changes
Fix timing issue in promotion report generation
Problem: Report generation fails after promotion because both branches become identical, resulting in "No commits found" error.
Solution: Capture commit range before promotion and use pre-captured data for report generation after promotion succeeds.
Changes:
Relevant Jira
Checklist before requesting a review
do not merge
label if there's a dependency PRrelease-service-maintainers
handle if you are unsure who to tagSigned-off-by: My name <email>
.github/scripts/readme_generator.sh
and verified the results using.github/scripts/check_readme.sh