Skip to content

Conversation

@zebreus
Copy link
Contributor

@zebreus zebreus commented Jan 15, 2026

This PR adds copilot setup to give it access to cargo fmt, wasixcc, our clang builds, clippy, and some other tools. This PR also adds copilot instructions that tell it to be diligent and to actually run cargo fmt and cargo clippy.

Copilot AI review requested due to automatic review settings January 15, 2026 10:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds GitHub Copilot configuration to the Wasmer repository to help developers with code suggestions and ensure CI compliance. The changes provide setup instructions and a workflow to validate the development environment.

Changes:

  • Added GitHub Copilot instructions document with coding standards and CI requirements
  • Created a new workflow for validating Copilot setup steps with Rust toolchain, LLVM, and wasixcc installation

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/copilot-instructions.md Defines coding standards, best practices, and CI validation commands for GitHub Copilot to follow
.github/workflows/copilot-setup-steps.yml Workflow that sets up the development environment with required dependencies and validates the setup works

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

@zebreus zebreus marked this pull request as ready for review January 15, 2026 14:47
@zebreus zebreus requested review from marxin and theduke January 15, 2026 14:47
- name: Ensure the setup works
run: |
cargo fmt --check || true
RUSTFLAGS="-D dead-code -D nonstandard-style -D unused-imports -D unused-mut -D unused-variables -D unused-unsafe -D unreachable-patterns -D bad-style -D improper-ctypes -D unused-allocation -D unused-comparisons -D while-true -D unconditional-recursion -D bare-trait-objects -D function_item_references -D clippy::uninlined_format_args " cargo clippy --all --exclude wasmer-swift --locked --allow-dirty -- -D clippy::all || true
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the || true intentional here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, kind of yes, so it does not fail to setup if there are formatting errors. However, considering that, running those commands here is quite useless. I'll remove them tomorrow.

@marxin
Copy link
Contributor

marxin commented Jan 15, 2026

Btw. is this PR somehow related to #5922?

@zebreus
Copy link
Contributor Author

zebreus commented Jan 16, 2026

Yes, this fixes #5922

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