-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Import from internal repository
This is an import of the source code that had been authored on internal repositories.
- Loading branch information
Showing
146 changed files
with
14,400 additions
and
10 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 @@ | ||
* @xxyggoqtpcmcofkc/Developers |
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,33 @@ | ||
name: "\U0001F41B Bug Report" | ||
description: Report a bug | ||
title: "Bug: TITLE" | ||
labels: ["bug"] | ||
body: | ||
- type: textarea | ||
id: expected_behaviour | ||
attributes: | ||
label: Expected Behaviour | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: current_behaviour | ||
attributes: | ||
label: Current Behaviour | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: reproduction_steps | ||
attributes: | ||
label: Reproduction Steps | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: code_snippet | ||
attributes: | ||
label: Code Snippet | ||
validations: | ||
required: true | ||
|
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 @@ | ||
blank_issues_enabled: false |
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,13 @@ | ||
|
||
name: "📕 Documentation Issue" | ||
description: Issue in the documentation | ||
title: "Docs: TITLE" | ||
labels: ["documenation"] | ||
body: | ||
- type: textarea | ||
id: documentation_issue | ||
attributes: | ||
label: Documentation Issue | ||
description: Describe the issue | ||
validations: | ||
required: true |
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,17 @@ | ||
name: "\U0001F680 Feature Request" | ||
description: Request a new feature | ||
title: "Feature request: TITLE" | ||
labels: ["feature"] | ||
body: | ||
- type: textarea | ||
id: use_case | ||
attributes: | ||
label: Use Case | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: proposed_solution | ||
attributes: | ||
label: Proposed Solution | ||
validations: | ||
required: true |
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,17 @@ | ||
name: "🛠️ Maintenance" | ||
description: Some type of improvement | ||
title: "Maintenance: TITLE" | ||
labels: ["feature"] | ||
body: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: solution | ||
attributes: | ||
label: Solution | ||
validations: | ||
required: true |
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 @@ | ||
### What was the problem/requirement? (What/Why) | ||
|
||
### What was the solution? (How) | ||
|
||
### What is the impact of this change? | ||
|
||
### How was this change tested? | ||
|
||
### Was this change documented? | ||
|
||
### Is this a breaking change? | ||
|
||
---- | ||
|
||
*By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.* |
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 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" | ||
day: "monday" | ||
commit-message: | ||
prefix: "chore(deps):" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" | ||
day: "monday" | ||
commit-message: | ||
prefix: "chore(github):" |
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 @@ | ||
name: Dependabot auto-approve | ||
on: pull_request | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
dependabot: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
steps: | ||
- name: Dependabot metadata | ||
id: metadata | ||
uses: dependabot/fetch-metadata@v1 | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Approve a PR | ||
run: gh pr review --approve "$PR_URL" | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,17 @@ | ||
name: Code Quality | ||
|
||
on: | ||
pull_request: | ||
branches: [ mainline ] | ||
workflow_call: | ||
inputs: | ||
branch: | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
TestPython: | ||
name: Code Quality | ||
uses: ./.github/workflows/reuse_python_build.yml | ||
secrets: inherit | ||
|
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,51 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version_to_publish: | ||
description: "Version to be release" | ||
required: false | ||
|
||
jobs: | ||
TestMainline: | ||
name: Test Mainline | ||
uses: ./.github/workflows/code_quality.yml | ||
with: | ||
branch: mainline | ||
secrets: inherit | ||
|
||
Merge: | ||
needs: TestMainline | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: release | ||
fetch-depth: 0 | ||
token: ${{ secrets.CI_TOKEN }} | ||
- name: Set Git config | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "client-software-ci" | ||
- name: Update Release | ||
run: git merge --ff-only origin/mainline -v | ||
- name: Push new release | ||
if: ${{ inputs.version_to_publish}} | ||
run: | | ||
git tag -a ${{ inputs.version_to_publish }} -m "Release ${{ inputs.version_to_publish }}" | ||
git push origin release ${{ inputs.version_to_publish }} | ||
- name: Push post release | ||
if: ${{ !inputs.version_to_publish}} | ||
run: git push origin release | ||
|
||
TestRelease: | ||
needs: Merge | ||
name: Test Release | ||
uses: ./.github/workflows/code_quality.yml | ||
with: | ||
branch: release | ||
secrets: inherit | ||
|
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,62 @@ | ||
name: Python Build | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
branch: | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
Python: | ||
# We've seen some deadlocks in tests run on the CI. Hard-cap the job runtime | ||
# to prevent those from running too long before being terminated. | ||
timeout-minutes: 15 | ||
runs-on: ${{ matrix.os }} | ||
permissions: | ||
id-token: write | ||
contents: read | ||
strategy: | ||
matrix: | ||
python-version: ['3.9', '3.10', '3.11'] | ||
os: [ubuntu-latest, macOS-latest] | ||
env: | ||
PYTHON: ${{ matrix.python-version }} | ||
CODEARTIFACT_REGION: "us-west-2" | ||
CODEARTIFACT_DOMAIN: ${{ secrets.CODEARTIFACT_DOMAIN }} | ||
CODEARTIFACT_ACCOUNT_ID: ${{ secrets.CODEARTIFACT_ACCOUNT_ID }} | ||
CODEARTIFACT_REPOSITORY: ${{ secrets.CODEARTIFACT_REPOSITORY }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
if: ${{ !inputs.branch }} | ||
|
||
- uses: actions/checkout@v3 | ||
if: ${{ inputs.branch }} | ||
with: | ||
ref: ${{ inputs.branch }} | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v3 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_CODEARTIFACT_ROLE }} | ||
aws-region: us-west-2 | ||
mask-aws-account-id: true | ||
|
||
- name: Install Hatch | ||
run: | | ||
CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token --domain ${{ secrets.CODEARTIFACT_DOMAIN }} --domain-owner ${{ secrets.CODEARTIFACT_ACCOUNT_ID }} --query authorizationToken --output text --region us-west-2) | ||
echo "::add-mask::$CODEARTIFACT_AUTH_TOKEN" | ||
echo CODEARTIFACT_AUTH_TOKEN=$CODEARTIFACT_AUTH_TOKEN >> $GITHUB_ENV | ||
pip install --upgrade -r requirements-development.txt | ||
- name: Run Linting | ||
run: hatch run lint | ||
|
||
- name: Run Tests | ||
run: hatch run test |
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,24 @@ | ||
*~ | ||
*# | ||
*.swp | ||
|
||
*.DS_Store | ||
|
||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
*.egg-info/ | ||
|
||
/.coverage | ||
/.coverage.* | ||
/.cache | ||
/.pytest_cache | ||
/.mypy_cache | ||
/.ruff_cache | ||
/.attach_pid* | ||
/.venv | ||
|
||
/doc/_apidoc/ | ||
/build | ||
/dist | ||
_version.py |
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 |
---|---|---|
|
@@ -6,7 +6,6 @@ documentation, we greatly value feedback and contributions from our community. | |
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary | ||
information to effectively respond to your bug report or contribution. | ||
|
||
|
||
## Reporting Bugs/Feature Requests | ||
|
||
We welcome you to use the GitHub issue tracker to report bugs or suggest features. | ||
|
@@ -19,8 +18,12 @@ reported the issue. Please try to include as much information as you can. Detail | |
* Any modifications you've made relevant to the bug | ||
* Anything unusual about your environment or deployment | ||
|
||
## Development | ||
|
||
Please see [DEVELOPMENT.md](./DEVELOPMENT.md) for more information. | ||
|
||
## Contributing via Pull Requests | ||
|
||
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that: | ||
|
||
1. You are working against the latest source on the *main* branch. | ||
|
@@ -39,18 +42,20 @@ To send us a pull request, please: | |
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and | ||
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/). | ||
|
||
|
||
## Finding contributions to work on | ||
|
||
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start. | ||
|
||
|
||
## Code of Conduct | ||
|
||
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). | ||
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact | ||
[email protected] with any additional questions or comments. | ||
|
||
|
||
## Security issue notifications | ||
|
||
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue. | ||
|
||
|
||
|
Oops, something went wrong.