Skip to content

DEV-6236: Test K8s pod agent (k8s-test-2204-8)#42

Open
vemulaanvesh wants to merge 3 commits intomasterfrom
DEV-6236/k8s-pod-test
Open

DEV-6236: Test K8s pod agent (k8s-test-2204-8)#42
vemulaanvesh wants to merge 3 commits intomasterfrom
DEV-6236/k8s-pod-test

Conversation

@vemulaanvesh
Copy link
Copy Markdown
Contributor

@vemulaanvesh vemulaanvesh commented May 4, 2026

Jira

https://liveramp.atlassian.net/browse/DEV-6236

Summary

Test PR to validate the new common K8s pod agent (k8s-test-2204-8) as a drop-in replacement for the GCE Jenkins agent jenkins-agent-hub-ubuntu-2204-n1-standard-8.

Changes

  • Points shared library to DEV-6236/k8s-shared-library branch (K8s pipeline steps)
  • Switches from mvnBuildPipelinemvnBuildPipelineK8s
  • Replaces agentLabel = 'jenkins-agent-hub-ubuntu-2204-n1-standard-8'agentLabel = 'k8s-test-2204-8'

K8s pod spec (from kubernetes-deployments#6337)

  • jnlp: jenkins-agent-2204-k8s:stable (built by linux-provisioning#139) — JDK 8/11/17/21, Docker CLI, gcloud, kubectl, Ruby, Node
  • dind sidecar: docker:27-dind privileged — replaces the GCE VM's native Docker daemon

Test plan

  • Trigger this build manually
  • Confirm pod starts on k8s-test-2204-8 label (replacing GCE jenkins-agent-hub-ubuntu-2204-n1-standard-8)
  • Maven build + test passes with Java 8
  • No regressions vs. GCE baseline

DO NOT MERGE — test branch only. Will be closed once K8s agent is validated.

Summary by CodeRabbit

  • Chores
    • Updated CI pipeline build environment selection to optimize build processing and compatibility.
    • Minor pipeline configuration adjustments to align builds with updated infrastructure.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 4, 2026

Walkthrough

Jenkinsfile: the Maven pipeline's agentLabel was changed from jenkins-agent-hub-ubuntu-2204-n1-standard-8 to k8s-test-2204-8. No other pipeline changes are present in this PR.

Changes

Jenkins agent label update

Layer / File(s) Summary
Pipeline Block
Jenkinsfile
Within mvnBuildPipeline { ... }, agentLabel value changed from jenkins-agent-hub-ubuntu-2204-n1-standard-8 to k8s-test-2204-8.
Tests / Docs
none
No test or documentation changes included.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically summarizes the main change: testing a new Kubernetes pod agent as a replacement for the GCE Jenkins agent. It includes the relevant ticket reference (DEV-6236) and the new agent label.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Review rate limit: 6/10 reviews remaining, refill in 22 minutes and 16 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@vemulaanvesh vemulaanvesh added the change/standard Trivial / minor changes that are low-impact, low risk label May 4, 2026
@vemulaanvesh vemulaanvesh marked this pull request as ready for review May 4, 2026 09:33
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@Jenkinsfile`:
- Around line 2-7: Replace the test-scoped library and agent references with
their production equivalents: change the `@Library` invocation that currently uses
"liveramp-base@DEV-6236/k8s-shared-library" to the canonical production tag
(e.g., "liveramp-base@master" or the appropriate release tag) and update the
mvnBuildPipelineK8s block's agentLabel (currently 'k8s-test-2204-8') to the
standard CI agent label (e.g., 'k8s-build' or your org's production agent);
ensure the changes are made where the `@Library`(...) declaration and the
agentLabel = 'k8s-test-2204-8' appear so the pipeline references supported,
non-test resources before merging.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0aadd74c-3f21-4ef1-a21d-91736009116c

📥 Commits

Reviewing files that changed from the base of the PR and between a54ba9e and b5b1e1d.

📒 Files selected for processing (1)
  • Jenkinsfile

Comment thread Jenkinsfile Outdated
Comment on lines +2 to +7
@Library("liveramp-base@DEV-6236/k8s-shared-library") _

env.JAVA_HOME = '/usr/lib/jvm/java-8-openjdk-amd64'

mvnBuildPipeline {
agentLabel = 'jenkins-agent-hub-ubuntu-2204-n1-standard-8'
mvnBuildPipelineK8s {
agentLabel = 'k8s-test-2204-8'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

jf="$(fd -a '^Jenkinsfile$' | head -n1)"
echo "Checking: $jf"
nl -ba "$jf" | sed -n '1,20p'

if rg -n 'DEV-6236/k8s-shared-library|k8s-test-2204-8' "$jf"; then
  echo "BLOCKER: Jenkinsfile still contains test-only refs. Revert to stable refs before merge."
  exit 1
fi

echo "OK: no test-only refs found."

Repository: LiveRamp/daemon_lib

Length of output: 165


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Find and read the Jenkinsfile
jf="$(fd -a '^Jenkinsfile$' | head -n1)"
echo "=== Jenkinsfile Location: $jf ==="
echo ""

# Display first 20 lines with line numbers using sed
echo "=== First 20 lines of Jenkinsfile ==="
sed -n '1,20p' "$jf" | cat -n

echo ""
echo "=== Checking for test-only references ==="

# Check for the specific test references mentioned in review
if grep -n 'DEV-6236/k8s-shared-library' "$jf"; then
  echo "✓ Found test library reference"
else
  echo "✗ Test library reference NOT found"
fi

if grep -n 'k8s-test-2204-8' "$jf"; then
  echo "✓ Found test agent label"
else
  echo "✗ Test agent label NOT found"
fi

Repository: LiveRamp/daemon_lib

Length of output: 591


Test-only library and agent references must be reverted before merging to master.

Lines 2 and 7 reference test-scoped resources (DEV-6236/k8s-shared-library and k8s-test-2204-8). If merged to master, the CI pipeline will break once the DEV branch is removed and the test agent is decommissioned after validation.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Jenkinsfile` around lines 2 - 7, Replace the test-scoped library and agent
references with their production equivalents: change the `@Library` invocation
that currently uses "liveramp-base@DEV-6236/k8s-shared-library" to the canonical
production tag (e.g., "liveramp-base@master" or the appropriate release tag) and
update the mvnBuildPipelineK8s block's agentLabel (currently 'k8s-test-2204-8')
to the standard CI agent label (e.g., 'k8s-build' or your org's production
agent); ensure the changes are made where the `@Library`(...) declaration and the
agentLabel = 'k8s-test-2204-8' appear so the pipeline references supported,
non-test resources before merging.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

♻️ Duplicate comments (1)
Jenkinsfile (1)

6-8: ⚠️ Potential issue | 🟠 Major

Revert the test-only agent label before merging.

k8s-test-2204-8 is a validation pod, not a production CI agent. Leaving this in master makes the pipeline dependent on a test resource that may be decommissioned after validation.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Jenkinsfile` around lines 6 - 8, The Jenkinsfile currently sets a test-only
agent label in the mvnBuildPipeline block (agentLabel = 'k8s-test-2204-8');
revert this by replacing the test validation pod label with the standard CI
agent label or removing the override so mvnBuildPipeline uses the
default/production agent, ensuring the pipeline doesn't depend on the temporary
'k8s-test-2204-8' resource.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@Jenkinsfile`:
- Around line 6-8: The Jenkinsfile currently sets a test-only agent label in the
mvnBuildPipeline block (agentLabel = 'k8s-test-2204-8'); revert this by
replacing the test validation pod label with the standard CI agent label or
removing the override so mvnBuildPipeline uses the default/production agent,
ensuring the pipeline doesn't depend on the temporary 'k8s-test-2204-8'
resource.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 2a4a2ec5-0ccd-4aff-863a-4ac8590dd751

📥 Commits

Reviewing files that changed from the base of the PR and between b5b1e1d and 82ccc0e.

📒 Files selected for processing (1)
  • Jenkinsfile

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

Labels

change/standard Trivial / minor changes that are low-impact, low risk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant