pysa-integration-tests
Skill by facebook
Guides an AI assistant through running, debugging, updating and creating Pysa end-to-end integration tests. It is for developers working on the Pysa taint analysis engine.
Install pysa-integration-tests
Built from the published package, never by AI.
git clone --depth 1 https://github.com/facebook/Pysa /tmp/Pysa && mkdir -p ~/.claude/skills && cp -r /tmp/Pysa/.llms/skills/pysa-integration-tests ~/.claude/skills/pysa-integration-testsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/facebook/Pysa /tmp/Pysa && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Pysa/.llms/skills/pysa-integration-tests ~/.gemini/antigravity-cli/skills/pysa-integration-testsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install pysa-integration-tests in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill covers the end-to-end integration tests for Pysa, a taint analysis engine. Each test is a .py file under source/interprocedural_analyses/taint/test/integration/. The tests run the full taint analysis pipeline and compare the output against expected files such as .models, .cg, .hofcg and .overrides.
When a test fails on output, the runner writes .actual files that can be compared with diff. The pysa-update-expected script then moves those .actual files into place once the changes are confirmed. The skill covers Meta's Buck setup and open-source OPAM and Dune builds, including the Pyrefly frontend. It is written for developers who work on the Pysa codebase.
Written from the project's SKILL.md and checked against it.
What it can do
- Run a single testRuns one Pysa integration test by setting the PYSA_INTEGRATION_TEST environment variable.
- Run all testsRuns the full integration test suite, optionally split into 16 shards with OUNIT_SHARDS.
- Debug failuresExplains how to diff expected output against the .actual files the runner creates.
- Update expected filesUses pysa-update-expected to replace expected outputs with the .actual files after review.
- Create a new testDescribes adding a .py test file with optional .pysa and .config files and generating expected output.
- Pyrefly frontendExplains running tests with the Pyrefly backend and overriding it with a custom binary.
What you need
- OCaml build setup with OPAM and Dune for open-source checkouts
- Buck build system for Meta internal use
- Run ./scripts/setup.sh --local --build-system=opam in an open-source checkout
Try asking
- Run the Pysa integration test for format.py and show me the failures
- Diff the failing format.py.models output against its .actual file
- Help me create a new Pysa integration test for a taint flow
Good to know
- Expected files are generated and should not be edited by hand.
- Default test models are used only when no .pysa or .config file is present.
- The dune commands must be run from the source/ directory.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .llms/skills/pysa-integration-tests/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to pysa-integration-tests
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
pysa-integration-tests: common questions
How do I run a single Pysa integration test?
Set PYSA_INTEGRATION_TEST to the test file name with its .py extension, such as format.py, and run the integrationTest executable with dune from the source directory. Using the name without .py is a common mistake.
How are expected Pysa test outputs updated?
After reviewing the differences, run facebook/scripts/in_path/pysa-update-expected. It moves each .actual file to its expected counterpart, and the source says to review the diff with sl diff afterwards.
Which frontend does Pysa use in tests?
In an open-source checkout set up with the OPAM build, Pyrefly is the default backend and tests use source/pyrefly.exe. A custom binary can be set with the PYREFLY_BINARY variable.
How do I install pysa-integration-tests?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pysa-integration-tests free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pysa-integration-tests safe to use?
It scores 67 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pysa-integration-tests?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
