feat(libwebrtc): implement the EchoCanceller3Config default constructor #16894
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16894"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by AlexWhitehouse on 2026-11-07T20:52:43Z.
What
The libwebrtc default constructor
webrtc::EchoCanceller3Config::EchoCanceller3Config()(_ZN6webrtc20EchoCanceller3ConfigC1Ev, NIDyCY+mYatbQk) threwnot implemented. #15195 implemented the copy constructor and assignment and left the default constructor open. This PR implements it.Upstream defaults the constructor, so it applies the member initialisers of
echo_canceller3_config.hat M134 (8d78f5de). That header is byte-identical at M127 (e0b28a6a).size_t,int,floatandboolin the nestedBuffering,Delay,Filter,Erle,EpStrength,EchoAudibility,RenderLevels,EchoRemovalControl,EchoModel,ComfortNoise,SuppressorandMultiChannelstructs) at their offsets in the existing 608-byte layout. It leaves padding untouched.EchoCanceller3Config.hpp. They were checked by compiling the upstream header withstatic_asserts on every member'soffsetof. The expected values were generated from that header and compared with an upstream-constructed object.echo_canceller3_config.hhas.main).Tested
guest_webrtc_echo_canceller3_configis extended without changing its copy assertions. It default-constructs into 0xA5-filled storage with guard bytes, then checks:main, the test fails with_ZN6webrtc20EchoCanceller3ConfigC1Ev_nid_postfix not implemented;guest_webrtc_echo_canceller3_configincluded, with no compiler warnings in the changed files.suppressor.normal_tuning.mask_hf.enr_transparentfrom.07fto.3ffails the test, naming that member at offset 412.python3 tools/check_conventions.py --base origin/main: all checks passed.python3 tools/pr_overlap.py: no open PR editsEchoCanceller3Config.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-07T21:25:04Z.
Review: COMMENTED
Tests run — checks failed, not approved
The build passed; 1310 of 2961 passed; 1 failed (mimalloc_restart_log); 1650 aborted with an illegal instruction on a CPU missing guest instruction features (cause not confirmed). Not approved: Adaptive build and tests (merged preview): failed, and there is insufficient comparable base evidence to determine whether the PR caused it. The review identified behavior or claims it could not fully verif
What I ran
Head
886199bdc401fd8b840b6c93b5affb61a6f9e2c6; base4204951e771ee2ec2e71507e5390ee2c9b6e9238.Recorded local processing time: 27m 56s across no-build checks 21s, build and tests 27m 12s, AI diff review 23s. This sums task runtimes (which may overlap); GitHub Actions time is excluded.
Environment: Linux-6.1.0-54-amd64-x86_64-with-glibc2.36; Python 3.11.2; compiler c++ (Debian 12.2.0-14+deb12u1) 12.2.0.
Saved local build and test runs are listed below; their source and results are in the Test logs section.
I ran the repository's no-build precheck on this exact head and base:
Hosted CI results are read from GitHub; I did not run them.
I compared the full diff of 6 changed files (2,753 lines) with the pull request description. I ran nothing for this and looked at nothing outside the diff.
Results
Findings
Blocking
None in the diff of 6 changed files.
Non-blocking
None recorded.
Not verified
To get this to a good state
Test logs (13 entries; open to read)
build_and_compile: not run
Reason:
No output.
diff_check: passed (exit 0)
Command:
No output.
conventions_and_pr_template: passed (exit 0)
Command:
stdout:
changed_export_abi_audit: passed (exit 0)
Command:
stdout:
python_syntax: not applicable
Reason:
No output.
related_python_unit_tests: not applicable
Reason:
No output.
python_test_registration: not applicable
Reason:
No output.
live_dependency_and_mergeability_check: passed (exit 0)
Command:
stdout:
build_dependent_cpp_tests: not run
Reason:
No output.
test_quality_heuristics: passed (exit 0)
Command:
stdout:
negative_controls: not applicable
Reason:
No output.
Adaptive build and tests (merged preview): failed
Result:
Base commit:
Steps:
Tests that failed:
What did not run, and why:
All tests:
Complete output: 27,408 lines, 3.0 MB: not attached (it stays in the local report)
Hosted CI as GitHub shows it: pending
Jobs, newest run of each:
Overall:
Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-07T22:05:31Z.
Review: COMMENTED
Read
886199bdc4againstmain.The 134 defaults and offsets match
echo_canceller3_config.hat8d78f5de. I checked it by compiling the upstream header's default constructor (with the nested constructors from the.cc) and the PR's constructor with GCC at-O0, then comparing the two 608-byte results after0xA5and0x00prefills: no member differs, and the 76 bytes left untouched are exactly the struct's padding and the test'sdefaultPaddingranges.sizeof608 andalignof8 match.C1Evtaking the destination object is the right complete-object constructor shape. The test wouldn't build or pass onmain, and its padding and guard checks cover the "leaves padding untouched" claim.Count line.
mainnow lists 296 unknown exports, sodocs/dev/debt/libwebrtc.md:5should read 295 after the rebase; GitHub currently shows a conflict there.The PR's own tests weren't run here.
AI-assisted: yes.