-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from sourcenetwork/release/0.2.0
Release v.0.2
- Loading branch information
Showing
255 changed files
with
25,679 additions
and
3,010 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{ range .Versions }} | ||
<a name="{{ .Tag.Name }}"></a> | ||
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} | ||
|
||
> {{ datetime "2006-01-02" .Tag.Date }} | ||
{{ range .CommitGroups -}} | ||
### {{ .Title }} | ||
|
||
{{ range .Commits -}} | ||
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} | ||
{{ end }} | ||
{{ end -}} | ||
|
||
{{- if .NoteGroups -}} | ||
{{ range .NoteGroups -}} | ||
### {{ .Title }} | ||
|
||
{{ range .Notes }} | ||
{{ .Body }} | ||
{{ end }} | ||
{{ end -}} | ||
{{ end -}} | ||
{{ end -}} |
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,41 @@ | ||
style: github | ||
template: CHANGELOG.tpl.md | ||
info: | ||
title: CHANGELOG | ||
repository_url: https://github.com/sourcenetwork/defradb | ||
options: | ||
commits: | ||
filters: | ||
Type: | ||
- feat | ||
- fix | ||
- perf | ||
- refactor | ||
commit_groups: | ||
title_maps: | ||
feat: Features | ||
fix: Bug fixes | ||
perf: Performance | ||
refactor: Refactoring | ||
ci: Continous integration | ||
docs: Documentation | ||
test: Testing | ||
sort_by: Custom | ||
title_order: | ||
- feat | ||
- fix | ||
- docs | ||
- test | ||
- perf | ||
- refactor | ||
- ci | ||
- chore | ||
header: | ||
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$" | ||
pattern_maps: | ||
- Type | ||
- Scope | ||
- Subject | ||
notes: | ||
keywords: | ||
- BREAKING CHANGE |
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,77 @@ | ||
name: benchmark-ec2-runner | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
|
||
start-runner: | ||
name: Start self-hosted EC2 runner | ||
runs-on: ubuntu-latest | ||
outputs: | ||
label: ${{ steps.start-ec2-runner.outputs.label }} | ||
ec2-instance-id: ${{ steps.start-ec2-runner.outputs.ec2-instance-id }} | ||
|
||
steps: | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Start EC2 runner | ||
id: start-ec2-runner | ||
uses: machulav/ec2-github-runner@v2 | ||
with: | ||
mode: start | ||
github-token: ${{ secrets.REPO_SCOPE_PAT }} | ||
ec2-image-id: ${{ secrets.EC2_IMAGE_ID }} | ||
ec2-instance-type: t3.xlarge | ||
subnet-id: ${{ secrets.SUBNET_ID }} | ||
security-group-id: ${{ secrets.SECURITY_GROUP_ID }} | ||
## iam-role-name: my-role-name # optional, requires additional permissions | ||
## aws-resource-tags: > # optional, requires additional permissions | ||
## [ | ||
## {"Key": "Name", "Value": "ec2-github-runner"}, | ||
## {"Key": "GitHubRepository", "Value": "${{ github.repository }}"} | ||
## ] | ||
|
||
benchmark-ec2-runner: | ||
|
||
name: Run the benchmarks on the started EC2 runner | ||
needs: start-runner # required to start the main job when the runner is ready | ||
|
||
runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner | ||
|
||
steps: | ||
- name: Setup benchmarks | ||
run: echo 'Replace with Johns Benchmarking Command Steps' | ||
|
||
stop-runner: | ||
|
||
name: Stop self-hosted EC2 runner | ||
needs: | ||
- start-runner # required to get output from the start-runner job | ||
- benchmark-ec2-runner # required to wait when the main job is done | ||
|
||
runs-on: ubuntu-latest | ||
|
||
if: ${{ always() }} # required to stop the runner even if the error happened in the previous jobs | ||
|
||
steps: | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Stop EC2 runner | ||
uses: machulav/ec2-github-runner@v2 | ||
with: | ||
mode: stop | ||
github-token: ${{ secrets.REPO_SCOPE_PAT }} | ||
label: ${{ needs.start-runner.outputs.label }} | ||
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }} |
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: Code Test Coverage | ||
|
||
on: [push] | ||
|
||
jobs: | ||
code-test-coverage: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.17.5' | ||
|
||
- name: Generate full test coverage report using go-acc | ||
run: make test:coverage-full | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: true | ||
files: ./coverage-full.txt | ||
flags: defra-tests | ||
name: codecov-umbrella | ||
verbose: true | ||
# path_to_write_report: ./coverage/codecov_report.txt | ||
# directory: ./coverage/reports/ |
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,59 @@ | ||
name: golangci-lint | ||
|
||
on: | ||
pull_request: | ||
|
||
push: | ||
tags: | ||
- v* | ||
branches: | ||
- master | ||
- develop | ||
|
||
permissions: | ||
# Optional: allow read access to pull request. Need this if we use the `only-new-issues` option. | ||
pull-requests: read | ||
contents: read | ||
|
||
jobs: | ||
golangci: | ||
strategy: | ||
matrix: | ||
go-version: [1.17.5] | ||
os: [ubuntu-latest] | ||
|
||
name: lint | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
|
||
with: | ||
# Required: the version of golangci-lint is required. | ||
# Note: The version should not pick the patch version as the latest patch | ||
# version is what will always be used. | ||
version: v1.43 | ||
|
||
# Optional: working directory, useful for monorepos or if we wanted to run this | ||
# on a non-root directory. | ||
# working-directory: ./ | ||
|
||
# Optional: golangci-lint command line arguments. | ||
# Note: we can set `--issues-exit-code=0` if we want a successcode always, | ||
# indicating that the linter ran successfully (weather or not linter errors | ||
# exist or not doesn't matter). But the good think is that the annotations | ||
# will still show up. I think this can be useful if we don't want the pipeline | ||
# to stop just because we had some linter errors. | ||
args: --issues-exit-code=1 --config .golangci.sourceinc.yaml | ||
|
||
# Optional: we can set the below to `true` if we only want to see newly introduced | ||
# linter errors, however I found that in practive that option is a bit gimmicky, | ||
# as it passes the linter check despite having new linter errors in some cases. | ||
# So we opt in for all annotations of linter errors to show up, this is actually | ||
# nicer because we suppress our linter errors manually anyways so there shouldn't | ||
# be any linter errors anyways. The enforces us to always have a clean lint state. | ||
only-new-issues: 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
cli/defradb/defradb | ||
cli/defradb/defradb.exe | ||
build/defradb-* | ||
build/defradb* | ||
cover.out | ||
coverage-full.txt | ||
coverage-quick.txt | ||
bench/*.log | ||
bench/*.svg |
Oops, something went wrong.