Skip to content

fix: [OCISDEV-1706] resolve script path in run-e2e.sh on bash 5.3 - #13969

Closed
LukasHirt wants to merge 1 commit into
stable-12.3from
fix/run-e2e-script-path-stable-12.3
Closed

LukasHirt wants to merge 1 commit into
stable-12.3from
fix/run-e2e-script-path-stable-12.3

Conversation

@LukasHirt

Copy link
Copy Markdown
Collaborator

tests/e2e/run-e2e.sh resolved its own directory with cd "${SCRIPT_PATH_REL}". That variable isn't set at that point, so the script ran cd "". Older bash treats an empty cd as a no-op, and CI starts the script from tests/e2e, so the bug never showed. bash 5.3 on the ubuntu-26.04 runner rejects it:

run-e2e.sh: line 4: cd: null directory
find: ‘/cucumber/features/’: No such file or directory
ERR: Suite doesn't exist: 'smoke'

This uses ${SCRIPT_PATH} as intended, which matches the copy of the script in ocis.

Reproduced and verified in an ubuntu:26.04 container (bash 5.3.9) with pnpm stubbed: before, it fails as above; after, it resolves tests/e2e/cucumber/features/smoke.

Needed together with #13968 to get e2e running on ubuntu-26.04.

run-e2e.sh resolved its own directory via an unset variable, so it ran
`cd ""`. Older bash treats that as a no-op, but bash 5.3 on the
ubuntu-26.04 runner fails with "cd: null directory", leaving SCRIPT_PATH
empty and no suites found.

Signed-off-by: Lukas Hirt <info@hirt.cz>
@LukasHirt LukasHirt self-assigned this Nov 13, 2026
@update-docs

update-docs Bot commented Nov 13, 2026

Copy link
Copy Markdown

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@kw-security

kw-security commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@sonarqubecloud

Copy link
Copy Markdown

@LukasHirt

Copy link
Copy Markdown
Collaborator Author

Folded into #13968. Neither change can pass CI on ubuntu-26.04 without the other.

@LukasHirt LukasHirt closed this Nov 13, 2026
@LukasHirt
LukasHirt deleted the fix/run-e2e-script-path-stable-12.3 branch November 13, 2026 10:41
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