Skip to content

test: fix -Werror=format in test-arg-parser download test#80

Merged
khosravipasha merged 1 commit into
prismfrom
fix/arg-parser-format
Jul 17, 2026
Merged

test: fix -Werror=format in test-arg-parser download test#80
khosravipasha merged 1 commit into
prismfrom
fix/arg-parser-format

Conversation

@bri-prism

Copy link
Copy Markdown

What

Format the HTTP status code in the test-arg-parser download-skip message with %ld instead of %d.

Why

common_remote_get_content() returns the status as long (std::pair<long, std::vector<char>>). The skip-path printf used %d, which fails to build under -Werror=format on the CUDA CI toolchain:

tests/test-arg-parser.cpp:199:46: error: format '%d' expects argument of type 'int',
but argument 2 has type 'long int' [-Werror=format=]

This breaks the cuda build job (and cascades the self-hosted GPU/CPU jobs into cancellation) on any branch built on prism, independent of that branch's own changes.

How

One-line change: %d -> %ld at the call site. No behavior change.

common_remote_get_content() returns the HTTP status as long, but the
skip-message printf used %d. Format it with %ld so the build does not
fail under -Werror=format on the CUDA CI toolchain.
@khosravipasha
khosravipasha requested a review from Copilot July 17, 2026 00:22
@khosravipasha
khosravipasha merged commit e373b73 into prism Jul 17, 2026
14 of 29 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a format-type mismatch in the argument-parser download test.

Changes:

  • Uses %ld to print the long HTTP status code.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants