Skip to content

ci: integrate nemo-ci-triage with linear issues management for gitlab failures - #5881

Merged
balasaajay merged 5 commits into
NVIDIA:mainfrom
balasaajay:nemo-triage-integration
Jul 20, 2026
Merged

ci: integrate nemo-ci-triage with linear issues management for gitlab failures#5881
balasaajay merged 5 commits into
NVIDIA:mainfrom
balasaajay:nemo-triage-integration

Conversation

@balasaajay

@balasaajay balasaajay commented Jul 20, 2026

Copy link
Copy Markdown
Contributor
  • I, the PR author, have personally reviewed every line of this PR.

What does this PR do?

Integrate nemo-ci-triage into the internal Megatron-LM GitLab pipeline to:

  1. Collect structured functional-test failures.
  2. Reconcile failures against existing Linear issues.
  3. Create, update, and close Linear issues.
  4. Post the resulting Linear actions as a reply to the original Slack notification.

⚠️ For major changes (either in lines of code or in its impact), please make sure to first share a design doc with the team. If you're unsure what's the best way to do so, contact @NVIDIA/mcore-oncall.

Issue tracking

For PRs from open-source community contributors:

  • New features: a linked issue is required. Please open a feature request and reference it here before submitting the PR.
  • Small updates (bug fixes, minor improvements): a linked issue is recommended and will accelerate the PR review process.

Linked issue:

Contribution process

Pre-checks

  • I have added relevant unit tests
  • I have added relevant functional tests
  • I have added proper typing to my code Typing guidelines
  • I have added relevant documentation
  • I have run the autoformatter.sh on my PR

Code review

Feel free to message or comment @NVIDIA/mcore-oncall to help accelerate your merge into main. The less complex your PR is, the faster it will be approved and merged!

All PRs start as draft. If you open a non-draft PR, it will be automatically converted to draft.

Step 1: Mark PR as "Ready for Review"

  1. When your PR is ready, click Ready for Review.
  2. An oncall reviewer is auto-assigned and expert reviewers are notified based on your changes.
    • Some PRs may jump straight to step 2. This is determined by .github/CODEOWNERS.

⚠️ Only mark as ready once merge-conflicts are resolved and the CI is passing.
Final Review might get declined if these requirements are not fulfilled.

Step 2: Final Review

For PRs that change megatron/core, once all expert reviewers have approved, the Final Review label is applied automatically and final reviewers are assigned.

For PRs outside megatron/core, this step is skipped.

Step 3: Approved

Once all required reviewers have approved, the Approved label is applied automatically.

Merge

Any member of mcore-engineers will be able to merge your PR.

- Introduced a new triage stage in the CI pipeline.
- Added new variables for Linear issue reconciliation and reporting.
- Updated functional tests to output summary and failure bucket files.
- Modified Dockerfile to use a new commit for the triage component.
- Enhanced test utilities to support Linear reporting and notifications.

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>

ci: Update functional test notification rules

- Modified notification rules for smoke and functional tests to trigger for all pipelines, regardless of branch name or pipeline source.
- Expanded the functional test scope to include weekly and release pipelines.

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>

ci: Refine CI configuration for Linear issue reconciliation and test notifications

- Updated descriptions in the CI variables for clarity.
- Modified notification rules to trigger for all functional test pipelines.
- Added PYTHONPATH export to relevant scripts for improved module resolution.
- Adjusted conditions for Linear reconciliation jobs to apply to all functional pipelines.

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>

ci: Configure Linear failure-ticket project

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>

ci: Update MCORE_LINEAR_PROJECT variable value for clarity

- Changed the value of MCORE_LINEAR_PROJECT from a specific identifier to a more descriptive name "MCore CI Testing" for improved readability and understanding in the CI configuration.

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>

ci: Enhance Slack integration for Linear issue reporting

- Added functionality to post Linear action summaries to Slack, including tracking of opened, modified, and closed issues.
- Updated CI configuration to include Slack output artifacts and context for follow-up notifications.
- Enhanced test utilities to validate Slack notifications and ensure proper context is recorded for threaded replies.

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>

ci: Refactor Linear CI integration and introduce triage configuration

- Removed deprecated MCORE_LINEAR_TEAM_KEY and MCORE_LINEAR_PROJECT variables from CI configuration.
- Added NEMO_CI_TRIAGE_CONFIG variable to specify the new triage configuration file.
- Updated CI scripts to utilize the new configuration for Linear status and reconciliation processes.
- Introduced a new .gitlab/nemo-ci-triage.yml file to define project-specific settings for the triage module.
- Enhanced test utilities to validate the new configuration and ensure proper integration with the Linear workflow.

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>

ci: Update triage CI script and remove deprecated functions

- Replaced the Python script call in the triage CI configuration with a new command for improved integration.
- Updated the Dockerfile to reflect a new commit for the triage component.
- Removed deprecated `apply_linear_plan` function and related tests to streamline the codebase.

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>

ci: Update triage CI script commands for consistency

- Modified triage CI script commands to use consistent naming conventions for improved readability.
- Updated the Dockerfile to reflect a new commit hash for the triage component.

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>

ci: Update triage CI script and Dockerfile for improved Slack integration

- Replaced the Python script call in the triage CI configuration with a new command for posting Linear action summaries to Slack.
- Updated the Dockerfile to reflect a new commit hash for the triage component.
- Removed deprecated functions from the Linear CI integration to streamline the codebase.

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>
- Updated notification rules in the CI configuration to trigger based on specific branch names and pipeline sources for unit and functional tests.
- Adjusted conditions to ensure notifications are sent only for scheduled pipelines or specific branches, enhancing the clarity and relevance of test notifications.

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>
@balasaajay
balasaajay requested a review from a team as a code owner July 20, 2026 01:33
@svcnvidia-nemo-ci
svcnvidia-nemo-ci marked this pull request as draft July 20, 2026 01:33
@github-actions

Copy link
Copy Markdown
Contributor

This PR has been automatically converted to draft because all PRs must start as drafts.

When you are ready for review, click Ready for Review to begin the review process. This will:

  1. Add the oncall reviewer (optional reviewer)
  2. Add required review teams based on your changes

See the contribution guide for more details.

- Included 'env' command in the unit and functional test scripts to log environment variables during execution.
- Updated Dockerfile to reflect a new commit hash for the triage component.

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Jul 20, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@balasaajay balasaajay changed the title ci: integrate nemo-ci-triage with GitLab failure reporting ci: integrate nemo-ci-triage with linear issues management for gitlab failures Jul 20, 2026
- Refined notification rules for unit and functional tests to trigger based on specific conditions, enhancing clarity and relevance.
- Adjusted rules to ensure notifications are sent for merged results and specific test conditions.
- Updated Dockerfile to reflect a new commit hash for the triage component.
- Enhanced test utilities to validate notification rules and ensure comprehensive coverage of enabled test runs.

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>
- Updated notification rules in the CI configuration for unit and functional tests to trigger based on specific pipeline sources and branch names, enhancing clarity and relevance.
- Adjusted conditions to ensure notifications are sent for scheduled pipelines and specific branches, improving the accuracy of test notifications.
- Enhanced test utilities to validate the updated notification rules.

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>
@Phlip79

Phlip79 commented Jul 20, 2026

Copy link
Copy Markdown
Member

/claude review

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Phlip79 Phlip79 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looking forward to seeing this deployed!

@svcnvidia-nemo-ci svcnvidia-nemo-ci added the Approved All necessary approvals have been made label Jul 20, 2026
@balasaajay
balasaajay added this pull request to the merge queue Jul 20, 2026
@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started!

You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/29774508375

Merged via the queue into NVIDIA:main with commit e443bd3 Jul 20, 2026
96 of 98 checks passed
@balasaajay
balasaajay deleted the nemo-triage-integration branch July 20, 2026 20:45
terminator123 pushed a commit to 021ai/Megatron-LM that referenced this pull request Aug 3, 2026
… failures (NVIDIA#5881)

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>
svcnvidia-nemo-ci pushed a commit to dimapihtar/Megatron-LM that referenced this pull request Aug 4, 2026
… failures (NVIDIA#5881)

Signed-off-by: Ajay Balasa <abalasa@nvidia.com>
Signed-off-by: Dmytro Pykhtar <dpykhtar@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved All necessary approvals have been made complexity: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants