Skip to content

RTECO-1006 - Optimize CLI installation: per-pipeline cache, cross-platform OS detection, stale sha256 cleanup#149

Merged
bhanurp merged 3 commits intomainfrom
RTECO-1006/binary-name-search-fix
Apr 14, 2026
Merged

RTECO-1006 - Optimize CLI installation: per-pipeline cache, cross-platform OS detection, stale sha256 cleanup#149
bhanurp merged 3 commits intomainfrom
RTECO-1006/binary-name-search-fix

Conversation

@bhanurp
Copy link
Copy Markdown

@bhanurp bhanurp commented Apr 10, 2026

Description

  • Add per-pipeline verification cache to eliminate repeated HTTP HEAD
    requests to Artifactory across stages. Jenkins calls performInstallation
    for every stage (tool + envVarsForTool), causing 10+ redundant checks
    per pipeline. Now only the first call per pipeline run does the full
    check; subsequent stages skip instantly.

  • Fix cross-platform OS mismatch in isCorrectVersion(). Previously used
    OsUtils.getOsDetails() on the controller, producing wrong URLs when
    controller and agent have different OS/arch (e.g., linux-amd64 controller

    • mac-arm64 agent). Now fetches agent OS via toolLocation.act() callable
      and includes node name in cache keys to prevent collisions between agents
      sharing identical tool paths but different architectures.
  • Clean up stale 0-byte sha256 files left by older plugin versions that
    wrote empty checksums when the SHA256 header was unavailable.

  • Add local e2e setup for multi-arch Jenkins agent testing with Docker
    containers (linux/amd64 + linux/arm64 JNLP agents).

@bhanurp bhanurp added the improvement Automatically generated release notes label Apr 10, 2026
@bhanurp bhanurp marked this pull request as ready for review April 10, 2026 12:31
Copy link
Copy Markdown

@itsmeleela itsmeleela left a comment

Choose a reason for hiding this comment

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

Added some questions/comments

@bhanurp bhanurp merged commit e6f640d into main Apr 14, 2026
5 of 7 checks passed
@bhanurp bhanurp deleted the RTECO-1006/binary-name-search-fix branch April 14, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants