Skip to content

UNOMI-937: Diagnostic fixes that missed the merge window#765

Merged
sergehuber merged 3 commits into
masterfrom
UNOMI-937-followup-diagnostic-fixes
May 28, 2026
Merged

UNOMI-937: Diagnostic fixes that missed the merge window#765
sergehuber merged 3 commits into
masterfrom
UNOMI-937-followup-diagnostic-fixes

Conversation

@sergehuber
Copy link
Copy Markdown
Contributor

Summary

Two small diagnostic improvements committed to the local UNOMI-937-itests-hardening-ci branch after the PR was merged on GitHub, so they never landed in master.

  • GraphQLListIT.java: Add LOGGER.warn(e.getMessage()) inside the keepTrying poll supplier so failed HTTP attempts are visible in CI logs instead of timing out silently.
  • build.sh: Restore the failing command in handle_error output by reading $BASH_COMMAND inside the function (avoids ARG_MAX) and printing the first 200 chars.
  • setenv.sh: Capture Maven stderr to a temp file instead of 2>/dev/null so version detection failures print the actual error.

These were committed in response to Copilot review comments on #764 but were not pushed before the branch was merged and deleted.

The keepTrying supplier caught all exceptions silently and returned null,
so when polling timed out CI only showed the generic message with no root
cause. Now we log e.getMessage() at WARN on each failed attempt so
connection errors and parse failures are visible in CI logs.
… on version detection failure

build.sh: handle_error was stripped of the failing command to avoid
hitting ARG_MAX when $BASH_COMMAND expanded to a large mvn invocation.
Reading BASH_COMMAND inside the function (instead of passing it through
the trap) sidesteps the ARG_MAX issue while still printing the first 200
characters of the failing command, making CI failure triage easier.

setenv.sh: mvn stderr was redirected to /dev/null to avoid capturing
download noise into UNOMI_VERSION. On failure this silently discarded
the actual error message. Stderr is now captured to a temp file and
printed to stderr if version detection fails.
@sergehuber sergehuber merged commit f95d123 into master May 28, 2026
5 of 7 checks passed
@sergehuber sergehuber deleted the UNOMI-937-followup-diagnostic-fixes branch May 28, 2026 12:34
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.

1 participant