Skip to content

Feat!: GitHub/Gerrit closed loop testing fixes#58

Merged
tykeal merged 1 commit intolfreleng-actions:mainfrom
modeseven-lfreleng-actions:sync-updates
Jan 14, 2026
Merged

Feat!: GitHub/Gerrit closed loop testing fixes#58
tykeal merged 1 commit intolfreleng-actions:mainfrom
modeseven-lfreleng-actions:sync-updates

Conversation

@ModeSevenIndustrialSolutions
Copy link
Copy Markdown
Contributor

@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions commented Dec 4, 2025

Feat!: GitHub/Gerrit closed loop testing fixes

  • Abandoned Gerrit changes are now closed automatically in GitHub
  • Closed/superceded GitHub pull requests are now closed in Gerrit

Also:

  • Converted some INFO messages to DEBUG to reduce console/job output noise
  • Fixed max_workers calculation when no work to perform
  • Ensure full/complete exception error propagation
  • Test isolation improvements related to processing changes
  • Minor markdown formatting/linting updates in documentation
  • Various output message/console logging updates/improvements
  • Minor changes to typer/exception handling and exit status
  • Filter HTML and markdown when copying Github comments to Gerrit

Flow/logic was optimised to:

  1. Reconcile first: Determine reuse_ids before preparing commits
  2. Single preparation: Prepare commits once with correct reuse_ids

Breaking change due to change in default behaviour:

  • ALLOW_DUPLICATES now default set true

This comment was marked as outdated.

This comment was marked as duplicate.

@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions force-pushed the sync-updates branch 2 times, most recently from e5411ba to 993f715 Compare December 7, 2025 13:27
Copilot AI review requested due to automatic review settings December 7, 2025 13:27

This comment was marked as outdated.

This comment was marked as duplicate.

This comment was marked as duplicate.

This comment was marked as outdated.

@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions force-pushed the sync-updates branch 2 times, most recently from 1545ba6 to 3cb26be Compare January 6, 2026 15:14
Copilot AI review requested due to automatic review settings January 6, 2026 15:14
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 30 out of 31 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/github2gerrit/core.py Outdated
@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions force-pushed the sync-updates branch 2 times, most recently from da9d630 to b7cc513 Compare January 6, 2026 15:56
Copilot AI review requested due to automatic review settings January 6, 2026 15:56

This comment was marked as outdated.

@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions force-pushed the sync-updates branch 2 times, most recently from a6eea20 to 82ce1fe Compare January 6, 2026 16:19
Copilot AI review requested due to automatic review settings January 6, 2026 16:19

This comment was marked as outdated.

@ModeSevenIndustrialSolutions
Copy link
Copy Markdown
Contributor Author

ModeSevenIndustrialSolutions commented Jan 6, 2026

Tested here:
https://github.com/lfit/sandbox/actions/runs/20754622633/job/59593147679

Also see:
lfit/sandbox#37

Run # Run github2gerrit Python CLI
Running:python -m github2gerrit.cli
🏷️  github2gerrit version 0.0.0+dev
                       GitHub2Gerrit Configuration                       
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Property                  ┃ Value                                     ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ GITHUB_MODE               │ ✅ GitHub Actions mode                    │
│ USE_PR_AS_COMMIT          │ True                                      │
│ GERRIT_SSH_USER_G2G       │ lfit.gh2gerrit                            │
│ GERRIT_SSH_USER_G2G_EMAIL │ releng+lfit-gh2gerrit@linuxfoundation.org │
│ ORGANIZATION              │ lfit                                      │
│ PRESERVE_GITHUB_PRS       │ True                                      │
│ ISSUE_ID                  │ ❎ Not provided                           │
│ GERRIT_SERVER             │ gerrit.lfit.org                           │
│ GERRIT_KNOWN_HOSTS        │ ✅                                        │
│ GERRIT_SSH_PRIVKEY_G2G    │ ✅                                        │
│ GITHUB_TOKEN              │ ✅                                        │
│ SSH_AGENT                 │ ❎ Unavailable, Unused                    │
│ CLEANUP_ABANDONED         │ ☑️                                         │
│ CLEANUP_GERRIT            │ ☑️                                         │
└───────────────────────────┴───────────────────────────────────────────┘
🔄 Merged Gerrit change: 
https://gerrit.linuxfoundation.org/infra/c/sandbox/+/74043
☑️ No action required: Gerrit change did NOT originate in GitHub
⛔️ Checking for abandoned Gerrit changes
               Abandoned Pull Request Details               
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Property      ┃ Value                                    ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ Repository    │ lfit/sandbox                             │
│ PR Number     │ 37                                       │
│ Title         │ Chore: Second test                       │
│ Author        │ ModeSevenIndustrialSolutions             │
│ Base Branch   │ master                                   │
│ SHA           │ 351b7fea5efa8e59cbcdc15565ca7b69c748363e │
│ URL           │ https://github.com/lfit/sandbox/pull/37  │
│ Files Changed │ 2                                        │
└───────────────┴──────────────────────────────────────────┘
🛑 Closed pull request #37 with abandoned Gerrit change 74039

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

@ModeSevenIndustrialSolutions
Copy link
Copy Markdown
Contributor Author

Needs: #100

- Abandoned Gerrit changes are now closed automatically in GitHub
- Closed/superceded GitHub pull requests are now closed in Gerrit

Also:
- Converted some INFO messages to DEBUG to reduce console/job output noise
- Fixed max_workers calculation when no work to perform
- Ensure full/complete exception error propagation
- Test isolation improvements related to processing changes
- Minor markdown formatting/linting updates in documentation
- Various output message/console logging updates/improvements
- Minor changes to typer/exception handling and exit status
- Filter HTML and markdown when copying Github comments to Gerrit

Flow/logic was optimised to:
1. Reconcile first: Determine `reuse_ids` before preparing commits
2. Single preparation: Prepare commits once with correct `reuse_ids`

Breaking changes due to change in default behaviour:
- ALLOW_DUPLICATES default set from false -> true
- SIMILARITY_FILES default set from false -> true

ALLOW_DUPLICATES was primarily used during testing, has little effect in
production workflows. SIMILARITY_FILES affects how commits are matched
during pull request updates and changes reconcilliation behaviour.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 30 out of 30 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change Change potentially breaks upgrades feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants