Skip to content

chore(NODE-7694): Successful lint tasks can precede integration tests as a dependency - #5049

Open
PavelSafronov wants to merge 6 commits into
mainfrom
node-7694
Open

chore(NODE-7694): Successful lint tasks can precede integration tests as a dependency#5049
PavelSafronov wants to merge 6 commits into
mainfrom
node-7694

Conversation

@PavelSafronov

@PavelSafronov PavelSafronov commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Description

Summary of Changes

Gate all Evergreen tasks on the lint task, so source with lint errors never runs tests.

Notes for Reviewers

This PR has a commit that introduces a lint error. The build for that version failed quickly:

Screenshot 2026-09-04 at 12 56 35 PM

The lint error will be fixed and the full suite of tests will run. This PR is part of the testing of this task.

What is the motivation for this change?

Lint errors should prevent expensive tests from running unnecessarily.

Double check the following

  • Lint is passing (npm run check:lint)
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

Whitespace-only prettier violation. Fails `prettier --check .evergreen/*.js`
in run-lint-checks.sh while leaving config.yml byte-identical, so the task
matrix is unchanged and the gate is the only variable.

Revert before merge.
# Conflicts:
#	.evergreen/config.yml
@PavelSafronov
PavelSafronov marked this pull request as ready for review September 4, 2026 20:14
@PavelSafronov
PavelSafronov requested a review from a team as a code owner September 4, 2026 20:14
Copilot AI lite review requested due to automatic review settings September 4, 2026 20:14

Copilot AI 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.

🟢 Approval recommended

The changes consistently add a lint dependency across tasks via the generator and the regenerated Evergreen config reflects that update without introducing an invalid task graph.

Pull request overview

Updates the Evergreen task graph so that all tasks depend on the run-lint-checks task (in the lint buildvariant), preventing test workloads from running when lint fails.

Changes:

  • Add a post-processing step in the Evergreen config generator to append a depends_on entry pointing to run-lint-checks for every task.
  • Regenerate .evergreen/config.yml so tasks include the new lint dependency.
File summaries
File Description
.evergreen/generate_evergreen_tasks.js Appends a cross-variant depends_on gate on run-lint-checks for all generated tasks.
.evergreen/config.yml Regenerated output reflecting the new depends_on lint gate across tasks.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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