Skip to content

feat(libcurl): implement curl_formget - #17661

Closed
alvaroelpob wants to merge 9 commits into
boykopovar:mainfrom
alvaroelpob:feat/libcurl-formget
Closed

alvaroelpob wants to merge 9 commits into
boykopovar:mainfrom
alvaroelpob:feat/libcurl-formget

Conversation

@alvaroelpob

@alvaroelpob alvaroelpob commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

What

Implement curl_formget with the bundled curl 7.81.0 serializer (formdata.c): guest LP64 form nodes are copied to host nodes and the guest append callback is bridged. File-backed parts, which curl would open on the host, and lengths that do not fit a host long throw.

Tested

Linux: suite.py feat/libcurl-formget at d741d5f: CTest 6574/6574 passed; conventions passed.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@alvaroelpob
alvaroelpob marked this pull request as ready for review November 9, 2026 08:21
@JJenkx

JJenkx commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Windows check of head 665559e097, merged onto main c3112f0c0f (373598eefa, clean merge).

Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.

  • guest_curl, guest_curl_strings pass in 3 of 3 runs, none skipped.

AI-assisted: yes.

@alvaroelpob alvaroelpob mentioned this pull request Nov 9, 2026
12 tasks done
@alvaroelpob

Copy link
Copy Markdown
Contributor Author

Fixed the Windows compile failure by declaring both form callbacks with APS5_VABI, matching guest_curl_formget_callback. Commit: 2ea39837272. Validation on the final head: libcurl build passed, guest_curl_slistmime passed, conventions passed, and the full suite passed (4668/4668).

@alvaroelpob

Copy link
Copy Markdown
Contributor Author
  • 90d007e: parts marked CURL_HTTPPOST_FILENAME or READFILE now throw. curl would open that path, or stdin for -, on the host. A length that does not fit a host long throws std::out_of_range instead of returning CURLE_BAD_FUNCTION_ARGUMENT, which upstream never returns there.
  • 716e9ce: dropped the test of that error code.
  • 8ccb806: the debt entry moved out of "Unimplemented exports" and states the gaps first.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 12, 2026
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 22996 core/libs/prx/libcurl/Export.cpp L1096
core/libs/prx/libcurl/tests/CurlSlistMime.cpp L11, L18
docs/dev/debt/changes/feat-libcurl-formget.md
docs/dev/debt/changes/feat-libcurl-formget.md

@alvaroelpob

Copy link
Copy Markdown
Contributor Author

Rebased onto main (9eff0ca3b7) and dropped the maintainer merge of main. Main takes debt changes only through fragments now, so the debt edit moved to docs/dev/debt/changes/feat-libcurl-formget.md (d741d5f): it removes the throwing curl_formget entry and adds the Functional one. The curl_formget check in CurlSlistMime.cpp is now its own block, like main's form tests next to it. #17529, #17603 and #17657 are merged, so Depends on is now none.

suite.py at d741d5f: CTest 6574/6574 passed, conventions passed.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 22, 2026

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed — no blocking findings

The implementation and all changed files were reviewed at d741d5fcae4ef13435b076807403859e2afcb547; no concrete blocking defect was found, but checks were not run here.

What I ran

Read the prepared diff and all changed files at the pinned head. No test or build commands were run.

Results

Check Result Note
Diff and changed files passed All three changed files read
Tests and build not run The description reports a Linux test run; not independently verified
Negative control not run No test mutation performed

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

  • The author-reported Linux test and conventions results were not run or confirmed here.
  • No changed files were excluded; all three files listed as reviewed were read.

To get this to a good state

Nothing is required. Optional: run the reported Linux test and conventions checks on this head.

@ycbuzi

ycbuzi commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Tested d741d5fcae merged into main, with the whole ctest suite on each machine below. Nothing fails that does not also fail on main on the same machine.

  • Windows Server 2022 (GitHub-hosted runner), full build, WinLibs GCC 15.2.0: 99% tests passed, 3 tests failed out of 6688; 99% tests passed, 4 tests failed out of 6688. 3 of the failing tests fail on main too. run
  • Windows Server 2025 (GitHub-hosted runner), full build, WinLibs GCC 15.2.0: 99% tests passed, 1 tests failed out of 6688; 99% tests passed, 1 tests failed out of 6688. run

AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@alvaroelpob I am closing this as a duplicate of #22996, which implements curl_formget the same way and is the one we are taking forward. Your work here (the LP64 form translation and the callback tests) was reviewed and passed on d741d5f, and it helped shape that review. If #22996 stalls or misses a case your version covers, say so here and this can reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants