Skip to content

Conversation

@ktyagiapphelix2u
Copy link

@ktyagiapphelix2u ktyagiapphelix2u commented Jan 14, 2026

Description

Added jenkins_run_id parameter support for user retirement cleanup to enable traceability between Jenkins jobs and redacted retirement records.

Related Ticket

https://2u-internal.atlassian.net/browse/BOMS-293

Copilot AI review requested due to automatic review settings January 14, 2026 11:30
Copy link

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

This PR adds support for tracking Jenkins build numbers when cleaning up user retirement data in the LMS. The change enables the retirement cleanup process to associate a specific Jenkins job run with the retirement records being processed.

Changes:

  • Added optional jenkins_run_id parameter to track the Jenkins BUILD_NUMBER during retirement cleanup operations
  • Updated the cleanup functions to pass the Jenkins run ID through to the LMS API

Reviewed changes

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

File Description
tubular/scripts/retirement_archive_and_cleanup.py Added jenkins_run_id parameter to archive_and_cleanup CLI command and _cleanup_retirements_or_exit function
tubular/edx_api.py Modified bulk_cleanup_retirements method to accept and conditionally include jenkins_run_id in API request payload

💡 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants