Skip to content

Commit

Permalink
fix: remove a true tag in table init test
Browse files Browse the repository at this point in the history
  • Loading branch information
MyaLongmire committed Oct 13, 2021
2 parents 390765c + 6108859 commit 34d34a7
Show file tree
Hide file tree
Showing 277 changed files with 16,766 additions and 2,435 deletions.
230 changes: 167 additions & 63 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,23 @@ executors:
GOFLAGS: -p=8

commands:
generate-config:
parameters:
os:
type: string
default: "linux"
steps:
- checkout
- attach_workspace:
at: '/build'
- run: ./scripts/generate_config.sh << parameters.os >>
- store_artifacts:
path: './new-config'
destination: 'new-config'
- persist_to_workspace:
root: './new-config'
paths:
- '*'
check-changed-files-or-halt:
steps:
- run: ./scripts/check-file-changes.sh
Expand Down Expand Up @@ -109,9 +126,6 @@ commands:
release:
type: boolean
default: false
nightly:
type: boolean
default: false
type:
type: string
default: ""
Expand All @@ -123,19 +137,13 @@ commands:
- when:
condition: << parameters.release >>
steps:
- run: 'mips=1 mipsel=1 arm64=1 amd64=1 static=1 armel=1 armhf=1 s390x=1 ppc641e=1 i386=1 windows=1 darwin=1 make package'
- when:
condition: << parameters.nightly >>
steps:
- run: 'mips=1 mipsel=1 arm64=1 amd64=1 static=1 armel=1 armhf=1 s390x=1 ppc641e=1 i386=1 windows=1 darwin=1 NIGHTLY=1 make package'
- run: 'make upload-nightly'
- run: 'make package'
- unless:
condition:
or:
- << parameters.nightly >>
- << parameters.release >>
steps:
- run: '<< parameters.type >>=1 make package'
- run: 'make package include_packages="$(make << parameters.type >>)"'
- store_artifacts:
path: './build/dist'
destination: 'build/dist'
Expand Down Expand Up @@ -215,11 +223,11 @@ jobs:
steps:
- package-build:
type: i386
ppc641e-package:
executor: go-1_17
ppc64le-package:
executor: go-1_16
steps:
- package-build:
type: ppc641e
type: ppc64le
s390x-package:
executor: go-1_17
steps:
Expand Down Expand Up @@ -269,8 +277,17 @@ jobs:
nightly:
executor: go-1_17
steps:
- package-build:
nightly: true
- attach_workspace:
at: '/build'
- run:
command: |
aws s3 sync /build/dist s3://dl.influxdata.com/telegraf/nightlies/ \
--exclude "*" \
--include "*.tar.gz" \
--include "*.deb" \
--include "*.rpm" \
--include "*.zip" \
--acl public-read
package-consolidate:
executor:
name: win/default
Expand Down Expand Up @@ -335,6 +352,81 @@ jobs:
PR=${CIRCLE_PULL_REQUEST##*/}
printf -v payload '{ "pullRequestNumber": "%s" }' "$PR"
curl -X POST "https://182c7jdgog.execute-api.us-east-1.amazonaws.com/prod/shareArtifacts" --data "$payload"
generate-config:
executor: go-1_17
steps:
- generate-config
generate-config-win:
executor:
name: win/default
shell: bash.exe
steps:
- generate-config:
os: windows
update-config:
executor: go-1_17
steps:
- checkout
- attach_workspace:
at: '/new-config'
- run: ./scripts/update_config.sh ${UPDATE_CONFIG_TOKEN}

commonjobs:
- &test-awaiter
'test-awaiter':
requires:
- 'test-go-1_16'
- 'test-go-1_16-386'
- 'test-go-1_17'
- 'test-go-1_17-386'
- &windows-package
'windows-package':
requires:
- 'test-go-windows'
- &darwin-package
'darwin-package':
requires:
- 'test-go-mac'
- &i386-package
'i386-package':
requires:
- 'test-awaiter'
- &ppc64le-package
'ppc64le-package':
requires:
- 'test-awaiter'
- &s390x-package
's390x-package':
requires:
- 'test-awaiter'
- &armel-package
'armel-package':
requires:
- 'test-awaiter'
- &amd64-package
'amd64-package':
requires:
- 'test-awaiter'
- &arm64-package
'arm64-package':
requires:
- 'test-awaiter'
- &armhf-package
'armhf-package':
requires:
- 'test-awaiter'
- &static-package
'static-package':
requires:
- 'test-awaiter'
- &mipsel-package
'mipsel-package':
requires:
- 'test-awaiter'
- &mips-package
'mips-package':
requires:
- 'test-awaiter'

workflows:
version: 2
Expand Down Expand Up @@ -376,52 +468,45 @@ workflows:
filters:
tags:
only: /.*/
- 'test-awaiter':
requires:
- 'test-go-1_16'
- 'test-go-1_16-386'
- 'test-go-1_17'
- 'test-go-1_17-386'
- 'windows-package':
requires:
- 'test-go-windows'
- 'darwin-package':
requires:
- 'test-go-mac'
- 'i386-package':
requires:
- 'test-awaiter'
- 'ppc641e-package':
requires:
- 'test-awaiter'
- 's390x-package':
requires:
- 'test-awaiter'
- 'armel-package':
- *test-awaiter
- *windows-package
- *darwin-package
- *i386-package
- *ppc64le-package
- *s390x-package
- *armel-package
- *amd64-package
- *arm64-package
- *armhf-package
- *static-package
- *mipsel-package
- *mips-package
- 'generate-config':
requires:
- 'test-awaiter'
- 'amd64-package':
requires:
- 'test-awaiter'
- 'arm64-package':
requires:
- 'test-awaiter'
- 'armhf-package':
requires:
- 'test-awaiter'
- 'static-package':
requires:
- 'test-awaiter'
- 'mipsel-package':
- 'amd64-package'
filters:
branches:
only:
- master
- 'generate-config-win':
requires:
- 'test-awaiter'
- 'mips-package':
- 'windows-package'
filters:
branches:
only:
- master
- 'update-config':
requires:
- 'test-awaiter'
- 'generate-config-win'
- 'generate-config'
filters:
branches:
only:
- master
- 'share-artifacts':
requires:
- 'i386-package'
- 'ppc641e-package'
- 'ppc64le-package'
- 's390x-package'
- 'armel-package'
- 'amd64-package'
Expand Down Expand Up @@ -479,14 +564,33 @@ workflows:
- 'deps'
- 'test-go-mac'
- 'test-go-windows'
- 'nightly':
- *test-awaiter
- *windows-package
- *darwin-package
- *i386-package
- *ppc64le-package
- *s390x-package
- *armel-package
- *amd64-package
- *arm64-package
- *armhf-package
- *static-package
- *mipsel-package
- *mips-package
- nightly:
requires:
- 'test-go-windows'
- 'test-go-mac'
- 'test-go-1_16'
- 'test-go-1_16-386'
- 'test-go-1_17'
- 'test-go-1_17-386'
- 'i386-package'
- 'ppc64le-package'
- 's390x-package'
- 'armel-package'
- 'amd64-package'
- 'mipsel-package'
- 'mips-package'
- 'darwin-package'
- 'windows-package'
- 'static-package'
- 'arm64-package'
- 'armhf-package'
triggers:
- schedule:
cron: "0 7 * * *"
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ show completion. -->

- [ ] Updated associated README.md.
- [ ] Wrote appropriate unit tests.
- [ ] Pull request title or commits are in [conventional commit format](https://www.conventionalcommits.org/en/v1.0.0/#summary) (e.g. feat: or fix:)
- [ ] Pull request title or commits are in [conventional commit format](https://www.conventionalcommits.org/en/v1.0.0/#summary)

<!-- Link to issues that describe the need for the change. Issues
should include context that will help reviewers understand why the
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
.DS_Store
process.yml
/.vscode
/*.toml
/*.conf
Loading

1 comment on commit 34d34a7

@Hipska
Copy link
Contributor

@Hipska Hipska commented on 34d34a7 Oct 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not going to review this 😂 You seem to have rebased master or something.

Please sign in to comment.