-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into VisibleSpecifierChanges
- Loading branch information
Showing
13 changed files
with
277 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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 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,69 @@ | ||
name: Bug Report | ||
description: Create a report to help us reproduce and fix a bug | ||
labels: | ||
- "type: bug" | ||
- "status: triage" | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
#### Thank you for contributing! Before reporting a bug, please make sure it has no duplicate and has not already been addressed by searching through [the existing and past issues](https://github.com/BerkeleyLearnVerify/Scenic/issues) | ||
- type: textarea | ||
attributes: | ||
label: System Details | ||
description: | | ||
Please provide the following system information to help us diagnose the bug. | ||
1. Python Version (e.g. Python 3.11.7) | ||
2. Scenic Version (e.g. Scenic 3.0.0b2) | ||
3. Operating System / Platform (e.g. Apple M2 Pro macOS Sonoma 14.2.1) | ||
4. Simulator Version (Optional, only applies if bug is simulator specific) (e.g. CARLA 0.9.14) | ||
placeholder: | | ||
1. Python Version: `python --version` | ||
2. Scenic Version: `scenic --version` | ||
3. Operating System / Platform: get from system preferences | ||
4. Simulator Version: simulator version | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Detailed Description | ||
description: | | ||
Please provide a clear and concise description of what the bug is and paste the error log below. Please rerun your simulation error with the **`-b`** parameter for a full stack trace. | ||
It helps improving readability if the error log is wrapped in ```triple quotes blocks```. | ||
placeholder: | | ||
A clear and concise description of what the bug is. You can rerun your Scenic simulation with `-b` to get a full stack trace. | ||
``` | ||
# error full stack trace | ||
``` | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Steps To Reproduce | ||
description: | | ||
Please provide a minimal example to help us reproduce the bug. Code should be wrapped with ```triple quotes blocks``` to improve readability. | ||
If it is not possible to reproduce the bug with a short self-contained Scenic or Python file, for example if a specific mesh is required, you can attach any required files below or include a link to them. | ||
placeholder: | | ||
1. First step to reproduce bug | ||
2. Second step, etc | ||
... | ||
``` | ||
# sample code to reproduce the bug | ||
``` | ||
validations: | ||
required: true | ||
|
||
- type: checkboxes | ||
attributes: | ||
label: Issue Submission Checklist | ||
options: | ||
- label: I am reporting an issue, not asking a question | ||
required: true | ||
- label: I checked the open issues, forum, etc. and have not found any solution | ||
- label: I have provided all necessary code, etc. to reproduce the issue |
This file contains 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,35 @@ | ||
name: Documentation | ||
description: Report an issue or enhancement related to https://scenic-lang.readthedocs.io/ | ||
labels: | ||
- "type: documentation" | ||
- "status: triage" | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
#### Thank you for contributing! Before submitting a doc issue, please make sure it has no duplicate and has not already been addressed by searching through [the existing and past issues](https://github.com/BerkeleyLearnVerify/Scenic/issues) | ||
- type: textarea | ||
attributes: | ||
label: Describe the doc issue or enhancement | ||
description: > | ||
Please provide a clear and concise description of what content in https://scenic-lang.readthedocs.io/ has an issue or needs enhancement. | ||
placeholder: | | ||
Link to location in the docs: https://scenic-lang.readthedocs.io/ | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Fix suggestion | ||
description: > | ||
Tell us how we could improve the documentation in this regard. | ||
- type: checkboxes | ||
attributes: | ||
label: Issue Submission Checklist | ||
options: | ||
- label: I am reporting an issue, not asking a question | ||
required: true | ||
- label: I checked the open issues, forum, etc. and have not found any solution |
This file contains 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,31 @@ | ||
name: Feature Request | ||
description: Submit a request for new Scenic features | ||
labels: | ||
- "type: feature" | ||
- "status: triage" | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
#### Thank you for contributing! Before submitting a feature request, please make sure it has no duplicate and has not already been addressed by searching through [the existing and past issues](https://github.com/BerkeleyLearnVerify/Scenic/issues) | ||
- type: textarea | ||
attributes: | ||
label: Describe the feature and motivation | ||
description: | | ||
Please provide a clear and concise proposal of the feature and outline the motivation. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Additional context | ||
description: | | ||
Add any other context, such as pseudo code, links, diagrams, screenshots, to help the community better understand the feature request. | ||
- type: checkboxes | ||
attributes: | ||
label: Issue Submission Checklist | ||
options: | ||
- label: I checked the open issues, forum, etc. and have not found any solution |
This file contains 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,5 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Questions | ||
url: https://forms.gle/uUhQNuPzQrvvBFJX9 | ||
about: Send your questions via Google Form |
This file contains 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,15 @@ | ||
### Description | ||
<!-- Provide a brief description of the changes introduced by this pull request --> | ||
|
||
### Issue Link | ||
<!-- Provide a link to the related issue on GitHub or another issue tracking system --> | ||
|
||
### Checklist | ||
- [ ] I have tested the changes locally via `pytest` and/or other means | ||
- [ ] I have added or updated relevant documentation | ||
- [ ] I have autoformatted the code with black and isort | ||
- [ ] I have added test cases (if applicable) | ||
|
||
### Additional Notes | ||
<!-- Add any additional information or context about the pull request --> | ||
<!-- Optionally reference a Jira ticket using the following format: [SCENIC-123] --> |
This file contains 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,65 @@ | ||
name: run_coverage | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
description: Git ref on which to run the tests. | ||
type: string | ||
required: true | ||
workflow_call: | ||
inputs: | ||
ref: | ||
description: Git ref on which to run the tests. | ||
type: string | ||
|
||
jobs: | ||
coverage: | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
python-version: ["3.11"] | ||
os: [ubuntu-latest] | ||
extras: ["test-full"] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout given ref | ||
uses: actions/checkout@v3 | ||
if: inputs.ref != '' | ||
with: | ||
ref: ${{ inputs.ref }} | ||
|
||
- name: Checkout current branch | ||
uses: actions/checkout@v3 | ||
if: inputs.ref == '' | ||
with: | ||
ref: ${{ github.ref }} | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
|
||
- name: Update pip | ||
run: | | ||
python -m pip install --upgrade pip | ||
- name: Install Scenic and dependencies | ||
run: | | ||
python -m pip install -e ".[${{ matrix.extras }}]" | ||
- name: Run and report code coverage | ||
run: | | ||
pytest --cov --cov-report json | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
slug: BerkeleyLearnVerify/Scenic |
This file contains 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 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,21 @@ | ||
codecov: | ||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "70...100" | ||
status: | ||
project: | ||
default: | ||
target: 80% | ||
threshold: 1% | ||
changes: | ||
target: 80% | ||
threshold: 1% | ||
comment: | ||
layout: "reach, diff, flags, files" | ||
behavior: default | ||
require_ci_to_pass: true | ||
cli: | ||
plugins: | ||
pycoverage: | ||
report_type: "json" |
This file contains 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 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 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 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