Skip to content

CI: move no-verbose build from Circle CI to existing GHA jobs, with tests - #18797

Closed
vszakats wants to merge 7 commits into
curl:masterfrom
vszakats:noverb
Closed

vszakats wants to merge 7 commits into
curl:masterfrom
vszakats:noverb

Conversation

@vszakats

@vszakats vszakats commented Oct 1, 2025 •

Copy link
Copy Markdown
Member

To test it in GHA and catch issues at PR time. Before this patch,
Circle CI caught them after pushing to master (or non-fork PR
branches.) GHA also run runtests, pytests and static analysis on
these builds, after this patch.

  • GHA/linux: enable no-verbose in an existing job.
  • GHA/linux: enable no-verbose in the H3 scan-build job too.
  • GHA/macos: enable no-verbose in one build (= 3 jobs with different
    compilers).
  • GHA/codeql: enable no-verbose in the MultiSSL Linux build.
  • circleci: delete openssl no-verbose job in favor of the above.

@vszakats vszakats added build CI Continuous Integration labels Oct 1, 2025
@vszakats vszakats changed the title GHA: disable verbose strings in two jobs GHA: disable verbose strings in two jobs, fix fallout Oct 1, 2025
@vszakats vszakats changed the title GHA: disable verbose strings in two jobs, fix fallout GHA: disable verbose strings in two jobs, fix fallouts Oct 1, 2025
@github-actions github-actions Bot added the tests label Oct 1, 2025
@testclutch

This comment was marked as resolved.

@vszakats

vszakats commented Oct 1, 2025 •

Copy link
Copy Markdown
Member Author

Remaining issues:

 ../../lib/multi_ev.c:144:47: warning: Access to field 'mid' results in a dereference of a null pointer (loaded from variable 'data') [core.NullDereference]
  144 |   return Curl_uint_spbset_contains(&e->xfers, data->mid);
      |                                               ^~~~~~~~~
../../lib/multi_ev.c:158:42: warning: Access to field 'mid' results in a dereference of a null pointer (loaded from variable 'data') [core.NullDereference]
  158 |   return Curl_uint_spbset_add(&e->xfers, data->mid);
      |                                          ^~~~~~~~~
2 warnings generated.

https://github.com/curl/curl/actions/runs/18178272234/job/51748891885?pr=18797#step:33:285
https://github.com/curl/curl/actions/runs/18178272234/job/51748891862?pr=18797#step:33:1260

@vszakats
vszakats marked this pull request as draft October 2, 2025 00:39
@vszakats vszakats changed the title GHA: disable verbose strings in two jobs, fix fallouts GHA: move no-verbose job from Circle CI to existing GHA jobs Oct 2, 2025
vszakats added a commit that referenced this pull request Oct 2, 2025
- asyn-ares: fix compiler warning:
  ```
  lib/asyn-ares.c:751:17: error: code will never be executed [clang-diagnostic-unreachable-code,-warnings-as-errors]
    751 |     char *csv = ares_get_servers_csv(ares->channel);
        |                 ^~~~~~~~~~~~~~~~~~~~
  ```

- curl_trc: fix missing symbol:
  ```
  /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to `Curl_trc_timer'
  collect2: error: ld returned 1 exit status
  ```
  Ref: https://app.circleci.com/pipelines/github/curl/curl/15446/workflows/67afa113-9c49-4249-9180-f6f01fc7dfdd/jobs/149177
  Ref: https://github.com/curl/curl/actions/runs/18174250400/job/51736249444#step:33:623
  Follow-up to b022389 #18768

- multi: fix `-Wunreachable-code`:
  ```
  lib/multi.c:1107:28: error: code will never be executed [-Werror,-Wunreachable-code]
   1107 |     size_t timeout_count = Curl_llist_count(&data->state.timeoutlist);
        |                            ^~~~~~~~~~~~~~~~
  lib/multi.c:3054:35: error: code will never be executed [-Werror,-Wunreachable-code]
   3054 |       struct Curl_llist_node *e = Curl_llist_head(&data->state.timeoutlist);
        |                                   ^~~~~~~~~~~~~~~
  lib/multi.c:3380:7: error: code will never be executed [-Werror,-Wunreachable-code]
   3380 |       Curl_llist_head(&data->state.timeoutlist);
        |       ^~~~~~~~~~~~~~~
  ```

Cherry-picked from #18797
Closes #18799
vszakats added a commit that referenced this pull request Oct 2, 2025
To skip them when curl has verbose strings disabled, instead of failing.

Cherry-picked from #18797
Closes #18800
vszakats added a commit that referenced this pull request Oct 2, 2025
Detect via curlinfo if curl has verbose strings disabled, and skip
tests that require it.

Also:
- cmake: make pytests depend on curlinfo.

Cherry-picked from #18797
Closes #18801
@vszakats vszakats changed the title GHA: move no-verbose job from Circle CI to existing GHA jobs GHA: move no-verbose build from Circle CI to existing GHA jobs Oct 2, 2025
@vszakats
vszakats marked this pull request as ready for review October 2, 2025 09:53
@vszakats vszakats changed the title GHA: move no-verbose build from Circle CI to existing GHA jobs GHA: move no-verbose build from Circle CI to existing GHA jobs, with tests Oct 2, 2025
@vszakats vszakats changed the title GHA: move no-verbose build from Circle CI to existing GHA jobs, with tests CI: move no-verbose build from Circle CI to existing GHA jobs, with tests Oct 2, 2025
@vszakats vszakats closed this in af7900f Oct 2, 2025
@vszakats
vszakats deleted the noverb branch October 2, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build CI Continuous Integration tests

Development

Successfully merging this pull request may close these issues.

2 participants