Skip to content

Fix jemalloc-ctl compilation errors: enable stats feature and fix error handling#6

Merged
Itsusinn merged 3 commits intomainfrom
copilot/fix-action-run-issue
Feb 1, 2026
Merged

Fix jemalloc-ctl compilation errors: enable stats feature and fix error handling#6
Itsusinn merged 3 commits intomainfrom
copilot/fix-action-run-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 1, 2026

CI build was failing with E0432: unresolved import jemalloc_ctl::stats and E0599: wrap_err trait bounds not satisfied in controller.rs:207-217.

Changes

uniffi/clash-android-ffi/Cargo.toml

  • Enable stats feature for jemalloc-ctl dependency (module is feature-gated)

uniffi/clash-android-ffi/src/controller.rs

  • Replace .wrap_err() with .map_err(|e| eyre::eyre!()) since tikv_jemalloc_ctl::Error doesn't implement std::error::Error
// Before
epoch::advance().wrap_err("Failed to advance jemalloc epoch")?;

// After
epoch::advance()
    .map_err(|e| eyre::eyre!("Failed to advance jemalloc epoch: {}", e))?;

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https /usr/lib/apt/methods/https --64 -o (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

fix https://github.com/Watfaq/clash-android/actions/runs/21564339789/job/62133312328


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 1, 2026 14:42
Co-authored-by: Itsusinn <30529002+Itsusinn@users.noreply.github.com>
Co-authored-by: Itsusinn <30529002+Itsusinn@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue in action run identified by ID 21564339789 Fix jemalloc-ctl compilation errors: enable stats feature and fix error handling Feb 1, 2026
Copilot AI requested a review from Itsusinn February 1, 2026 14:51
@Itsusinn Itsusinn marked this pull request as ready for review February 1, 2026 15:27
@Itsusinn Itsusinn merged commit 95c4fb2 into main Feb 1, 2026
1 check passed
@Itsusinn Itsusinn deleted the copilot/fix-action-run-issue branch February 2, 2026 15:26
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.

2 participants