Skip to content

COMP: Trigger the analysis workflow on the branch that exists - #27

Closed
gdevenyi wants to merge 1 commit into
InsightSoftwareConsortium:masterfrom
gdevenyi:pr/ci-workflow-trigger
Closed

gdevenyi wants to merge 1 commit into
InsightSoftwareConsortium:masterfrom
gdevenyi:pr/ci-workflow-trigger

Conversation

@gdevenyi

@gdevenyi gdevenyi commented Aug 15, 2026 •

Copy link
Copy Markdown

The "Build and Test" workflow fires on branch main; this repository's
default branch is master. Every job in it -- coverage, valgrind
memcheck, clang scan-build, ASan+UBSan -- has therefore never executed
once since the workflow was added.

Also updates two things that would fail even with the trigger fixed:
macos-11 has been retired by GitHub, and actions/checkout@v3 is
deprecated.

This alone is not enough to make the workflow pass; see the following
commits.


Interface impact: none. On the union of all these changes, configured with USE_FSL_CODE=ON and USE_CIFTI_CODE=ON: all 448 exported symbols across libniftiio, libnifti2, libznz, libfslio, libnifticdf and libcifti are identical to master under nm -D --defined-only, and all ten installed headers are identical under gcc -E -P. Under gcc -dM -E one macro definition differs, intentionally and only in text: #61 makes FSL_RADIOLOGICAL read (-1) so it is safe inside an expression. Its value is still -1, checked by compiling against each installed fslio.h and printing it.

Verification. This branch: builds with gcc 16.1.1, ctest unchanged from master (2 of 345 fail on master itself in this environment; #31 and #29 each fix one). The union of all the PRs: 0 errors under both gcc 16.1.1 and clang 22.1.8, ctest 345/345 under each, and the whole suite under valgrind memcheck with --trace-children=yes gives 484 traced processes with no invalid access, no uninitialised value and no leak in any nifti binary.

Coordination. Every line of every branch was compared, whitespace-normalised, against the diffs of the open PRs (#11, #21, #22, #23, #24). Where one of those already changes a line, the line was left alone, and the few deliberate overlaps are named in the text above. What survives is 17 compiler warnings, all of them on those lines: 9 -Wsign-conversion (5 in fslio.c for #22, 2 in nifti2_io.c and 2 in nifti_tester001.c for #24) and 8 -Wcalloc-transposed-args in nifti_findhdrname and nifti_findimgname, which #11 rewrites. No formatting changes appear anywhere, to stay clear of #10 and #12.

One of a set of independent, single-purpose PRs. Each bases on master and can be merged on its own, in any order.

The full set of PRs (35)

The union of all of them is on the fork as all-changes, if you want to build and test the lot at once.

CI and build

Configuration and documentation

Defects

Warning and check classes

The "Build and Test" workflow fires on branch `main`; this repository's
default branch is `master`.  Every job in it -- coverage, valgrind
memcheck, clang scan-build, ASan+UBSan -- has therefore never executed
once since the workflow was added.

Also updates two things that would fail even with the trigger fixed:
macos-11 has been retired by GitHub, and actions/checkout@v3 is
deprecated.

This alone is not enough to make the workflow pass; see the following
commits.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KSPnbwpDjVcAYqDdVqLkMU
This was referenced Aug 15, 2026
@gdevenyi

Copy link
Copy Markdown
Author

Folded into #57. This fix alone makes a broken workflow start running and fail -- every job dies in the Travis dashboard script -- so the trigger fix and the job rewrite belong in one PR. #57 now carries both commits and stands alone against master.

@gdevenyi gdevenyi closed this Aug 15, 2026
@gdevenyi
gdevenyi deleted the pr/ci-workflow-trigger branch August 15, 2026 05:23
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