Skip to content

fix: install node for data engineering jenkins - #363

Merged
rahulkanneri-2u merged 3 commits into
masterfrom
rahul/install-node-for-de-jenkins-health-check
Aug 4, 2026
Merged

fix: install node for data engineering jenkins#363
rahulkanneri-2u merged 3 commits into
masterfrom
rahul/install-node-for-de-jenkins-health-check

Conversation

@rahulkanneri-2u

@rahulkanneri-2u rahulkanneri-2u commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Make sure that the following steps are done before merging:

  • Have a Site Reliability Engineer review the PR if you don't own all of the services impacted.
  • If you are adding any new default values that need to be overridden when this change goes live, update internal repos and add an entry to the top of the CHANGELOG.
  • Performed the appropriate testing.

Copilot AI review requested due to automatic review settings August 3, 2026 11:25

Copilot AI left a comment

Copy link
Copy Markdown

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 updates the jenkins_data_engineering_new Ansible role to ensure Node.js is installed on the Data Engineering Jenkins hosts by configuring the NodeSource apt repository and adding a default Node.js major version.

Changes:

  • Add tasks to install the NodeSource GPG key, configure the NodeSource apt repository, and install the nodejs package.
  • Introduce a default JENKINS_DATA_ENGINEERING_NODE_VERSION (set to 20) used when configuring the NodeSource repository.

Reviewed changes

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

File Description
playbooks/roles/jenkins_data_engineering_new/tasks/main.yml Adds NodeSource key/repo setup and Node.js installation tasks for the Jenkins DE role.
playbooks/roles/jenkins_data_engineering_new/defaults/main.yml Adds a default Node.js major version used by the new repository configuration.
Suppressed comments (1)

playbooks/roles/jenkins_data_engineering_new/tasks/main.yml:34

  • Installing Node.js via apt can fail transiently (repo metadata races, network, lock contention). To reduce flaky runs, consider using the same register/until/retries pattern used in playbooks/roles/edxapp/tasks/main.yml:147-156. This also fixes the invalid tags indentation in this task.
- name: Install Node.js
  apt:
    name: nodejs
    state: present
    update_cache: yes
  tags:
  - jenkins


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

Comment thread playbooks/roles/jenkins_data_engineering_new/tasks/main.yml Outdated
Comment thread playbooks/roles/jenkins_data_engineering_new/tasks/main.yml
Copilot AI review requested due to automatic review settings August 3, 2026 11:39

Copilot AI left a comment

Copy link
Copy Markdown

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 2 out of 2 changed files in this pull request and generated no new comments.

Suppressed comments (1)

playbooks/roles/jenkins_data_engineering_new/tasks/main.yml:30

  • The NodeSource repository is added using apt_key (which relies on the deprecated apt-key mechanism on newer Debian/Ubuntu) and the repository line does not scope the key via signed-by. This can break on newer images where apt-key is removed, and it also makes it harder to avoid key collisions with other repos. Prefer the keyring + signed-by= pattern already used elsewhere in this repo (e.g., playbooks/roles/docker-tools/tasks/main.yml:53-68).
- name: Install the gpg key for Node.js
  apt_key:
    url: "https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key"
    state: present
  tags:

Copilot AI review requested due to automatic review settings August 3, 2026 11:42

Copilot AI left a comment

Copy link
Copy Markdown

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 2 out of 2 changed files in this pull request and generated no new comments.

Suppressed comments (1)

playbooks/roles/jenkins_data_engineering_new/tasks/main.yml:29

  • apt_key installs the NodeSource key into the global apt trusted keyring (apt-key), which is deprecated on modern Debian/Ubuntu and can cause warnings/failures as apt tightens key handling. This repo already uses per-repo keyrings + signed-by for apt sources (e.g., playbooks/roles/docker-tools/tasks/main.yml:53-67), which scopes trust to just that repository.
- name: Install the gpg key for Node.js
  apt_key:
    url: "https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key"
    state: present
  tags:
    - jenkins

- name: Install the Node.js repo
  apt_repository:
    repo: "deb https://deb.nodesource.com/node_{{ JENKINS_DATA_ENGINEERING_NODE_VERSION }}.x nodistro main"
    state: present
    update_cache: yes

@rahulkanneri-2u
rahulkanneri-2u merged commit 5985041 into master Aug 4, 2026
2 of 4 checks passed
@rahulkanneri-2u
rahulkanneri-2u deleted the rahul/install-node-for-de-jenkins-health-check branch August 4, 2026 07:11
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.

3 participants