Skip to content

fix: strip trailing slash from PACKAGE_DIR in scanner-env.sh to fix w… - #8764

Merged
cdeepali merged 1 commit into
ppc64le:masterfrom
stutiibm:change_file_fix
Sep 9, 2026
Merged

fix: strip trailing slash from PACKAGE_DIR in scanner-env.sh to fix w…#8764
cdeepali merged 1 commit into
ppc64le:masterfrom
stutiibm:change_file_fix

Conversation

@stutiibm

@stutiibm stutiibm commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

…heel build CI

Problem

Wheel build jobs always skipped with Skipping - no .sh changes even when a .sh file was changed.

Root Cause

PACKAGE_DIR was read from build_info.json without stripping the trailing slash (e.g. "n/nbconvert/"), causing the wheel job grep to expand as:

grep -E "^n/nbconvert//.*.sh$" ← double slash, never matches

Fix

Added PACKAGE_DIR="${PACKAGE_DIR%/}" in the "Create scanner-env.sh" step, mirroring what the "Set job control flags" step already does correctly.

Checklist

  • Have you checked and followed all the points mention in the CONTRIBUTING.MD
  • Have you validated script on UBI 9 container
  • Did you run the script(s) on fresh container with set -e option enabled and observe success ?
  • Did you have Legal approvals for patch files ?

…heel build CI

## Problem
Wheel build jobs always skipped with `Skipping - no .sh changes` even when
a `.sh` file was changed.

## Root Cause
`PACKAGE_DIR` was read from `build_info.json` without stripping the trailing
slash (e.g. `"n/nbconvert/"`), causing the wheel job grep to expand as:

  grep -E "^n/nbconvert//.*\.sh$"   ← double slash, never matches

## Fix
Added `PACKAGE_DIR="${PACKAGE_DIR%/}"` in the "Create scanner-env.sh" step,
mirroring what the "Set job control flags" step already does correctly.
@cdeepali
cdeepali merged commit 14c543f into ppc64le:master Sep 9, 2026
16 checks passed
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