-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: major cleanup of the code and build
There should no functional changes, code was put through `Kres` for automated builds. Go bumped, protobuf & grpc libraries bumped, linting errors fixed, etc. Signed-off-by: Andrey Smirnov <[email protected]>
- Loading branch information
Showing
34 changed files
with
2,386 additions
and
1,451 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,18 @@ | ||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. | ||
# | ||
# Generated on 2021-03-25T21:15:43Z by kres 424ae88-dirty. | ||
|
||
codecov: | ||
require_ci_to_pass: false | ||
|
||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: 50% | ||
threshold: 0.5% | ||
base: auto | ||
if_ci_failed: success | ||
patch: off | ||
|
||
comment: 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,22 @@ | ||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. | ||
# | ||
# Generated on 2021-03-25T21:16:46Z by kres 424ae88-dirty. | ||
|
||
policies: | ||
- type: commit | ||
spec: | ||
dco: true | ||
gpg: false | ||
spellcheck: | ||
locale: US | ||
maximumOfOneCommit: true | ||
header: | ||
length: 89 | ||
imperative: true | ||
case: lower | ||
invalidLastCharacters: . | ||
body: | ||
required: true | ||
conventional: | ||
types: ["chore","docs","perf","refactor","style","test","release"] | ||
scopes: ["*"] |
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,12 @@ | ||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. | ||
# | ||
# Generated on 2021-03-25T21:15:43Z by kres 424ae88-dirty. | ||
|
||
** | ||
!proxy | ||
!testservice | ||
!go.mod | ||
!go.sum | ||
!.golangci.yml | ||
!README.md | ||
!.markdownlint.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
--- | ||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. | ||
# | ||
# Generated on 2021-03-25T21:15:43Z by kres 424ae88-dirty. | ||
|
||
kind: pipeline | ||
type: kubernetes | ||
name: default | ||
|
||
platform: | ||
os: linux | ||
arch: amd64 | ||
|
||
steps: | ||
- name: setup-ci | ||
pull: always | ||
image: autonomy/build-container:latest | ||
commands: | ||
- sleep 5 | ||
- git fetch --tags | ||
- install-ci-key | ||
- docker buildx create --driver docker-container --platform linux/amd64 --name local --use unix:///var/outer-run/docker.sock | ||
- docker buildx inspect --bootstrap | ||
environment: | ||
SSH_KEY: | ||
from_secret: ssh_key | ||
volumes: | ||
- name: outer-docker-socket | ||
path: /var/outer-run | ||
- name: docker-socket | ||
path: /var/run | ||
- name: buildx | ||
path: /root/.docker/buildx | ||
- name: ssh | ||
path: /root/.ssh | ||
|
||
- name: base | ||
pull: always | ||
image: autonomy/build-container:latest | ||
commands: | ||
- make base | ||
volumes: | ||
- name: outer-docker-socket | ||
path: /var/outer-run | ||
- name: docker-socket | ||
path: /var/run | ||
- name: buildx | ||
path: /root/.docker/buildx | ||
- name: ssh | ||
path: /root/.ssh | ||
depends_on: | ||
- setup-ci | ||
|
||
- name: unit-tests | ||
pull: always | ||
image: autonomy/build-container:latest | ||
commands: | ||
- make unit-tests | ||
volumes: | ||
- name: outer-docker-socket | ||
path: /var/outer-run | ||
- name: docker-socket | ||
path: /var/run | ||
- name: buildx | ||
path: /root/.docker/buildx | ||
- name: ssh | ||
path: /root/.ssh | ||
depends_on: | ||
- base | ||
|
||
- name: unit-tests-race | ||
pull: always | ||
image: autonomy/build-container:latest | ||
commands: | ||
- make unit-tests-race | ||
volumes: | ||
- name: outer-docker-socket | ||
path: /var/outer-run | ||
- name: docker-socket | ||
path: /var/run | ||
- name: buildx | ||
path: /root/.docker/buildx | ||
- name: ssh | ||
path: /root/.ssh | ||
depends_on: | ||
- base | ||
|
||
- name: coverage | ||
pull: always | ||
image: autonomy/build-container:latest | ||
commands: | ||
- make coverage | ||
environment: | ||
CODECOV_TOKEN: | ||
from_secret: CODECOV_TOKEN | ||
volumes: | ||
- name: outer-docker-socket | ||
path: /var/outer-run | ||
- name: docker-socket | ||
path: /var/run | ||
- name: buildx | ||
path: /root/.docker/buildx | ||
- name: ssh | ||
path: /root/.ssh | ||
depends_on: | ||
- unit-tests | ||
|
||
- name: lint | ||
pull: always | ||
image: autonomy/build-container:latest | ||
commands: | ||
- make lint | ||
volumes: | ||
- name: outer-docker-socket | ||
path: /var/outer-run | ||
- name: docker-socket | ||
path: /var/run | ||
- name: buildx | ||
path: /root/.docker/buildx | ||
- name: ssh | ||
path: /root/.ssh | ||
depends_on: | ||
- base | ||
|
||
services: | ||
- name: docker | ||
image: docker:19.03-dind | ||
entrypoint: | ||
- dockerd | ||
commands: | ||
- --dns=8.8.8.8 | ||
- --dns=8.8.4.4 | ||
- --mtu=1500 | ||
- --log-level=error | ||
privileged: true | ||
volumes: | ||
- name: outer-docker-socket | ||
path: /var/outer-run | ||
- name: docker-socket | ||
path: /var/run | ||
- name: buildx | ||
path: /root/.docker/buildx | ||
- name: ssh | ||
path: /root/.ssh | ||
|
||
volumes: | ||
- name: outer-docker-socket | ||
host: | ||
path: /var/ci-docker | ||
- name: docker-socket | ||
temp: | ||
medium: memory | ||
- name: buildx | ||
temp: | ||
medium: memory | ||
- name: ssh | ||
temp: | ||
medium: memory | ||
|
||
--- | ||
kind: pipeline | ||
type: kubernetes | ||
name: notify | ||
|
||
platform: | ||
os: linux | ||
arch: amd64 | ||
|
||
clone: | ||
disable: true | ||
|
||
steps: | ||
- name: slack | ||
image: plugins/slack | ||
settings: | ||
channel: proj-talos-maintainers | ||
link_names: true | ||
template: "{{#if build.pull }}\n*{{#success build.status}}✓ Success{{else}}✕ Fail{{/success}}*: {{ repo.owner }}/{{ repo.name }} - <https://github.com/{{ repo.owner }}/{{ repo.name }}/pull/{{ build.pull }}|Pull Request #{{ build.pull }}>\n{{else}}\n*{{#success build.status}}✓ Success{{else}}✕ Fail{{/success}}: {{ repo.owner }}/{{ repo.name }} - Build #{{ build.number }}* (type: `{{ build.event }}`)\n{{/if}}\nCommit: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commit/{{ build.commit }}|{{ truncate build.commit 8 }}>\nBranch: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commits/{{ build.branch }}|{{ build.branch }}>\nAuthor: {{ build.author }}\n<{{ build.link }}|Visit build page>" | ||
webhook: | ||
from_secret: slack_webhook | ||
when: | ||
status: | ||
- success | ||
- failure | ||
|
||
trigger: | ||
status: | ||
- success | ||
- failure | ||
|
||
depends_on: | ||
- default | ||
|
||
... |
This file was deleted.
Oops, something went wrong.
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,26 +1,5 @@ | ||
.idea | ||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. | ||
# | ||
# Generated on 2021-03-25T21:15:43Z by kres 424ae88-dirty. | ||
|
||
# Compiled Object files, Static and Dynamic libs (Shared Objects) | ||
*.o | ||
*.a | ||
*.so | ||
|
||
# Folders | ||
_obj | ||
_test | ||
|
||
# Architecture specific extensions/prefixes | ||
*.[568vq] | ||
[568vq].out | ||
|
||
*.cgo1.go | ||
*.cgo2.c | ||
_cgo_defun.c | ||
_cgo_gotypes.go | ||
_cgo_export.* | ||
|
||
_testmain.go | ||
|
||
*.exe | ||
*.test | ||
*.prof | ||
_out |
Oops, something went wrong.