-
Notifications
You must be signed in to change notification settings - Fork 733
Adding Bug Report Guide #1292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+151
−18
Merged
Adding Bug Report Guide #1292
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,140 @@ | ||
| # How to file effective bug reports | ||
|
|
||
| This guide helps you collect the essential information needed to file effective bug reports. Providing complete and accurate information helps maintainers reproduce and fix issues faster. | ||
|
|
||
| 💡 **Example of a good bug report**: [Issue #1094](https://github.com/apple/container/issues/1094) demonstrates many of the best practices outlined in this guide. | ||
|
|
||
| ## Steps to reproduce | ||
|
|
||
| Clear reproduction steps are essential for maintainers to understand and fix the issue. | ||
|
|
||
| ### What to include | ||
| 1. **Starting state**: What was your setup before the issue? | ||
| - Fresh installation or existing project? | ||
| - Any specific configuration files? | ||
| - Previous commands that led to this state? | ||
| - Has your machine recently been restarted? | ||
|
|
||
| 2. **Exact commands**: Copy-paste the exact commands you ran | ||
| - Include all flags and arguments | ||
| - Use code blocks for clarity | ||
|
|
||
| 3. **Reproducibility**: Does it happen every time or intermittently? | ||
| - Always reproducible | ||
| - Happens sometimes (describe conditions) | ||
| - Only happened once | ||
|
ajemory marked this conversation as resolved.
|
||
|
|
||
| ### Example | ||
| ``` | ||
| 1. Create new container: `container create --name test-app ubuntu:latest` | ||
| 2. Start the container: `container start test-app` | ||
| 3. Container fails during bootstrap with error: | ||
| "failed to bootstrap container test-app" | ||
| 4. Container exits with code 1 | ||
| ``` | ||
|
|
||
| ## Problem description | ||
|
|
||
| Provide a comprehensive description of your problem. Include what currently happens (the bug), what you expect should happen instead, and any relevant log output. | ||
|
|
||
| ### What to include | ||
|
|
||
| #### Current behavior | ||
| - Exact error messages (copy-paste, don't paraphrase) | ||
| - Exit codes or status indicators | ||
| - Performance issues (slowness, hangs, crashes) | ||
| - Unexpected outputs or results | ||
|
|
||
| #### Expected behavior | ||
| - The correct output or result you anticipated | ||
| - Reference to documentation if available | ||
| - How it works in previous versions (if applicable) | ||
| - Logical expectations based on the command or action | ||
|
|
||
| #### Relevant logs | ||
| Include any log output that helps illustrate the problem: | ||
| - Error messages or stack traces | ||
| - Warning messages related to your issue | ||
| - Output from failed commands | ||
| - Use verbose/debug flags to capture detailed information (see [Log Information](#log-information) section below for how to gather logs) | ||
|
|
||
| ## Environment information | ||
|
|
||
| ### Operating system details | ||
| Run this command in Terminal to get your macOS version: | ||
| ```bash | ||
| sw_vers | ||
| ``` | ||
|
|
||
| Example output: | ||
| ``` | ||
| ProductName: macOS | ||
| ProductVersion: 26.0 | ||
| BuildVersion: 12A345 | ||
| ``` | ||
|
|
||
| ### Xcode version | ||
| Get your Xcode version with: | ||
| ```bash | ||
| xcodebuild -version | ||
| ``` | ||
|
|
||
| Example output: | ||
| ``` | ||
| Xcode 15.0 | ||
| Build version 15A240d | ||
| ``` | ||
|
|
||
| ### Container CLI version | ||
| Check your Container CLI version: | ||
| ```bash | ||
| container --version | ||
| ``` | ||
|
|
||
| Example output: | ||
| ``` | ||
| container CLI version 0.10.0-27-g9fd15f0 (build: debug, commit: 9fd15f0) | ||
| ``` | ||
|
|
||
| ## Log information | ||
|
|
||
| ### Finding relevant logs | ||
| When reporting issues, include logs that show: | ||
| - Error messages or stack traces | ||
| - Warning messages related to your issue | ||
| - Output from failed commands | ||
|
|
||
| ### Getting container logs | ||
| For Container CLI issues, run commands with verbose output: | ||
| ```bash | ||
| container --debug <command> | ||
| ``` | ||
|
|
||
| You can also use the `container logs` command to get logs from running containers. See the [container logs](command-reference.md#container-logs) documentation for full details. | ||
| ```bash | ||
| container logs <container-id> | ||
| ``` | ||
|
|
||
| ### System logs | ||
| For system-level container issues, use the built-in system logs command. See the [container system logs](command-reference.md#container-system-logs) documentation for full details. | ||
| ```bash | ||
| container system logs | ||
| ``` | ||
|
|
||
| ## Common information gaps | ||
|
|
||
| ### Missing context | ||
| - What were you trying to accomplish? | ||
| - What changed recently in your setup? | ||
| - Does the issue occur in a fresh installation from main? | ||
|
|
||
| ### Incomplete error information | ||
| - Full error messages (not just the last line) | ||
| - Stack traces where relevant | ||
| - Related warning messages | ||
|
|
||
| ### Environment variations | ||
| - Does it work with a new instance of the container? | ||
| - Does it work with a fresh install of the Container package? | ||
| - Have your network settings changed? | ||
| - Have your Xcode or macOS versions changed? | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.