Skip to content

Commit

Permalink
Merge branch 'main' into add-mutation-testing-with-cosmic-ray
Browse files Browse the repository at this point in the history
  • Loading branch information
WillGibson committed Nov 20, 2024
2 parents 0a663c5 + 7b56c5e commit c1ee6ae
Show file tree
Hide file tree
Showing 35 changed files with 1,573 additions and 5,314 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Owned by the Platform team
* @uktrade/platform
4 changes: 1 addition & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
Addresses [DBTP-<ticket>](https://uktrade.atlassian.net/browse/DBTP-<ticket>)

Please add any relevant context for you pull request here, or delete this if none needed.

---
## Checklist:

Expand All @@ -15,4 +13,4 @@ Please add any relevant context for you pull request here, or delete this if non
- [ ] Includes any applicable changes to the documentation in this code base
- [ ] Includes link(s) to any applicable changes to the documentation in the [DBT Platform Documentation](https://platform.readme.trade.gov.uk/) (can be to a pull request)
### Tasks:
- [ ] [Trigger the pull request regression tests for this branch](https://github.com/uktrade/platform-tools?tab=readme-ov-file#regression-tests) and confirm that they are passing
- [ ] [Run the end to end tests for this branch]([https://github.com/uktrade/platform-tools?tab=readme-ov-file#regression-tests](https://github.com/uktrade/platform-end-to-end-tests?tab=readme-ov-file#running-the-tests)) and confirm that they are passing
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ tests/platform_helper/test-application-deploy/copilot

dist

.platform-helper-config.yml
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ repos:
- id: trufflehog
name: TruffleHog
description: Detect secrets in your data.
entry: bash -c 'trufflehog git file://. --since-commit HEAD --no-verification --fail --exclude-paths=.trufflehogignore'
entry: bash -c 'trufflehog filesystem . --no-verification --fail --exclude-paths=.trufflehogignore'
language: system
stages: ["commit", "push"]
3 changes: 0 additions & 3 deletions .trufflehogignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@
node_modules
poetry.lock
venv

# See https://github.com/trufflesecurity/trufflehog/issues/3602
tests/platform_helper/utils/test_aws.py
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ For an optional manual check, install the package locally and test everything wo

#### Merging to main

- Merging to `main` will trigger the `pull-request-regression-tests` pipeline in the _platform-tools_ AWS account to run regression tests
- Merging to `main` will trigger the `pull-request-end-to-end-tests` pipeline in the _platform-tools_ AWS account to run regression tests
- We use the `release-please` GitHub action to create and update a _release PR_ when changes are merged to `main`
- The _release PR_ will automatically update the _pyproject.toml_ version number and generate release notes based on the commits merged since the last release
- Merging the _release PR_ will create a draft GitHub release for the next version with release notes
Expand All @@ -153,7 +153,7 @@ For an optional manual check, install the package locally and test everything wo

Publishing a GitHub release should automatically:

- Run the full `pull-request-regression-tests` pipeline
- Run the full `pull-request-end-to-end-tests` pipeline
- Trigger a CodeBuild project called `platform-tools-build` in the _platform-tools_ AWS account to run. This runs the _buildspec-pypi.yml_ file which contains the build steps to publish the new `platform-helper` package version to PyPI
- Trigger a rebuild of the DBT Platform Documentation, so it includes the latest release documentation (currently WIP)
- Push a notification to the development community via the #developers channel in Slack
Expand Down
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ codecov:
after_n_builds: 4

ignore:
- "tests"
- "**/tests/**"
6 changes: 2 additions & 4 deletions dbt_platform_helper/COMMANDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ platform-helper codebase build --app <application> --codebase <codebase>
- `--app <text>`
- AWS application name
- `--codebase <text>`
- The codebase name as specified in the pipelines.yml file
- The codebase name as specified in the platform-config.yml file
- `--commit <text>`
- GitHub commit hash
- `--help <boolean>` _Defaults to False._
Expand All @@ -232,8 +232,6 @@ platform-helper codebase build --app <application> --codebase <codebase>

[↩ Parent](#platform-helper-codebase)

Trigger a CodePipeline pipeline based deployment.

## Usage

```
Expand All @@ -248,7 +246,7 @@ platform-helper codebase deploy --app <application> --env <environment> --codeba
- `--env <text>`
- AWS Copilot environment
- `--codebase <text>`
- The codebase name as specified in the pipelines.yml file
- The codebase name as specified in the platform-config.yml file
- `--commit <text>`
- GitHub commit hash
- `--help <boolean>` _Defaults to False._
Expand Down
Loading

0 comments on commit c1ee6ae

Please sign in to comment.