troubleshooting
Skill by tosun-si
Explains how to find and fix why a BigTesty run fails. It covers assertion diffs, config and test file errors, GCP authentication and BigQuery errors, and datasets left behind. Written for developers running bigtesty test, pytest with BigTesty, or bigtesty infra create.
Install troubleshooting
Built from the published package, never by AI.
git clone --depth 1 https://github.com/tosun-si/bigtesty /tmp/bigtesty && mkdir -p ~/.claude/skills && cp -r /tmp/bigtesty/src/bigtesty/plugin/skills/troubleshooting ~/.claude/skills/troubleshootingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/tosun-si/bigtesty /tmp/bigtesty && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/bigtesty/src/bigtesty/plugin/skills/troubleshooting ~/.gemini/antigravity-cli/skills/troubleshootingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a troubleshooting guide for BigTesty, a tool for testing BigQuery SQL. It starts from the exit code and the first error line, then tells the assistant to reproduce the failing scenario with verbose output or a JSON report. Each exit code and common error message has a listed fix. The guide covers failed assertions, invalid config or test files (exit code 2), GCP authentication and permission problems, location and CMEK errors, queries over max_bytes_billed, and SQL references that were not rewritten.
The skill also explains how to keep test datasets for inspection with the cleanup option set to never, and how to remove them afterward with bigtesty infra destroy or bigtesty gc. It includes notes on pytest and BigTestyInfra, such as collection errors and shared infra data. It is written for developers and data engineers who run BigTesty tests and need to diagnose failures.
Written from the project's SKILL.md and checked against it.
What it can do
- Exit code triageMaps exit codes and first error lines to the likely cause and the next step.
- Assertion diff readingExplains changed, missing and unexpected rows in a failed then block.
- Config and test file fixesLists exit code 2 messages with the fix for each, such as a missing project or location.
- Authentication and permission helpCovers GCP authentication errors and BigQuery access denied errors with the required roles.
- Location and CMEK checksExplains dataset location mismatches and the CMEK key location and service account requirements.
- BigQuery error guidanceCovers bytes billed limits, unrewritten dataset references, missing parameters and template syntax errors.
- Scenario reproductionShows how to rerun one scenario with verbose output and a JSON report to read failures as data.
- Dataset cleanupExplains keeping datasets for inspection and removing them with bigtesty infra destroy or bigtesty gc.
- pytest and BigTestyInfra issuesDescribes setup errors, collection errors and shared data problems when using pytest.
What you need
- BigTesty installed
- A Google Cloud project with BigQuery
- Google Cloud application default credentials or a CI auth step
- Access to the test project with roles/bigquery.user
Try asking
- Why did my bigtesty test run exit with code 2?
- Read the failed assertion diff for my monitoring scenario and explain it.
- Help me fix a BigQuery Access Denied 403 error from bigtesty test.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: src/bigtesty/plugin/skills/troubleshooting/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to troubleshooting
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
troubleshooting: common questions
What does BigTesty exit code 1 mean?
Exit code 1 means an assertion failed. The report shows the changed, missing and unexpected rows for each then block.
How do I keep the test datasets to inspect them in BigQuery?
Run bigtesty test with --cleanup never. Then delete them later with bigtesty infra destroy --run-id, using the run ID from the report.
Why does a query fail with a location mismatch?
All datasets used by one query must be in the same location. Set location per dataset if needed.
How do I install troubleshooting?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is troubleshooting free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is troubleshooting safe to use?
It scores 67 of 100. Grades: maintenance A, licence A, quality B. 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 troubleshooting?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
