Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DEVELOPER_GUID, Add Coverage + go ling to Makefile, Run CI tests on all branches #392

Merged
merged 3 commits into from
Oct 13, 2023

Conversation

Jakob3xD
Copy link
Collaborator

Description

Some minor changes that I did in my feature branch that are not directly related to it and are okay to merge upstream.
Adjust workflows to run tests on all branches that are pushed to upstream, test against Opensearch 2.9 and 2.10.

Made some Makefile adjustments for linters (golangci-lint) to work, adjust coverage generation to get the coverage of all units and integration tests and not only the unit once.

Issues Resolved

No Issue related

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
dblock
dblock previously approved these changes Oct 12, 2023
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

Super nit, merge after that one.

@@ -104,6 +103,30 @@ To check the markdown files, run the following command:
make lint.markdown
```

### Golang lint
Copy link
Member

Choose a reason for hiding this comment

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

Add these to TOC? Capitalize Like The Rest of It?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Add my changes to TOC. Also added a vim section to Editors section and changed the golangci-linter in the Makefile to run via Docker, so users don't need to install it first and we all run the same linter version.

…r, change coverage generation

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
@Jakob3xD Jakob3xD changed the title Misc Update DEVELOPER_GUID, Add Coverage + go ling to Makefile, Run CI tests on all branches Oct 13, 2023
@dblock dblock merged commit 5b040f0 into opensearch-project:main Oct 13, 2023
48 checks passed
VachaShah pushed a commit to VachaShah/opensearch-go that referenced this pull request Oct 19, 2023
…ts on all branches (opensearch-project#392)

* .github: run test workflows for all branches, test against 2.9,2.10

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>

* Makefile: use docker golangci-lint, run integration test on `.` folder, change coverage generation

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>

* Update DEVELOPER_GUIDE

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>

---------

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
VachaShah pushed a commit to VachaShah/opensearch-go that referenced this pull request Oct 19, 2023
…ts on all branches (opensearch-project#392)

* .github: run test workflows for all branches, test against 2.9,2.10

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>

* Makefile: use docker golangci-lint, run integration test on `.` folder, change coverage generation

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>

* Update DEVELOPER_GUIDE

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>

---------

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>
dblock added a commit that referenced this pull request Oct 23, 2023
* tannerjones4075- update developer guide (#385)

* Updating DEVELOPER_GUIDE.md file to include docker build instructions

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

* Updating DEVELOPER_GUIDE.md file to include docker build instructions

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

* Updating DEVELOPER_GUIDE.md file and CHANGELOG

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

* Removed link from localhost:9200

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

---------

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Bump github.com/aws/aws-sdk-go from 1.45.20 to 1.45.24 (#387)

* Bump github.com/aws/aws-sdk-go from 1.45.20 to 1.45.24

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.45.20 to 1.45.24.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](aws/aws-sdk-go@v1.45.20...v1.45.24)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>

* Bump github.com/aws/aws-sdk-go-v2 from 1.21.0 to 1.21.1 (#388)

* Bump github.com/aws/aws-sdk-go-v2 from 1.21.0 to 1.21.1

Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) from 1.21.0 to 1.21.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](aws/aws-sdk-go-v2@v1.21.0...v1.21.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>

* Bump github.com/aws/aws-sdk-go-v2/config from 1.18.43 to 1.18.44 (#389)

* Bump github.com/aws/aws-sdk-go-v2/config from 1.18.43 to 1.18.44

Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.18.43 to 1.18.44.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](aws/aws-sdk-go-v2@config/v1.18.43...config/v1.18.44)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/config
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>

* Bump golang.org/x/net from 0.7.0 to 0.17.0 (#391)

* Bump golang.org/x/net from 0.7.0 to 0.17.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.7.0 to 0.17.0.
- [Commits](golang/net@v0.7.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>

* Update DEVELOPER_GUID, Add Coverage + go ling to Makefile, Run CI tests on all branches (#392)

* .github: run test workflows for all branches, test against 2.9,2.10

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>

* Makefile: use docker golangci-lint, run integration test on `.` folder, change coverage generation

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>

* Update DEVELOPER_GUIDE

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>

---------

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Updated linter version to 1.54.2 (#394)

* Updated linter version to 1.54.2

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

* Updated CHANGELOG.md

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

* Updated CHANGELOG.md

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

* Updated CHANGELOG.md - moved linter update to Dependencies Bumps

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

---------

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>
Signed-off-by: Daniel (dB.) Doubrovkine <dblock@dblock.org>
Co-authored-by: Daniel (dB.) Doubrovkine <dblock@dblock.org>
Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Deprecate legacy API (#390)

* deprecated legacy REST API /_template

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

* deprecated legacy REST API /_template

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

* removed deprecated header at the top of the doc

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

* added deprecated notes to the CHANGELOG.md

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

* Corrected deprecation statement

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

* Update CHANGELOG.md

Co-authored-by: Jakob <jakob.hahn@hetzner.com>
Signed-off-by: Tanner Jones <78619684+tannerjones4075@users.noreply.github.com>

* Updated deprecated message on api.indices.put_template.go

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

* Added deprecated message on api.indices.exists_template.go

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

* Added deprecated message on api.indices.delete_template.go

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

* Added deprecated message on api.indices.get_template.go

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

* Updated deprecated message on api.indices.exists_template.go and added back in IndicesExistsTemplate that was delete by mistake

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>

---------

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>
Signed-off-by: Tanner Jones <78619684+tannerjones4075@users.noreply.github.com>
Co-authored-by: Jakob <jakob.hahn@hetzner.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Bump github.com/aws/aws-sdk-go-v2/config from 1.18.44 to 1.19.0 (#398)

* Bump github.com/aws/aws-sdk-go-v2/config from 1.18.44 to 1.19.0

Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.18.44 to 1.19.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/v1.19.0/CHANGELOG.md)
- [Commits](aws/aws-sdk-go-v2@config/v1.18.44...v1.19.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/config
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>

* Bump github.com/aws/aws-sdk-go from 1.45.24 to 1.45.26 (#397)

* Bump github.com/aws/aws-sdk-go from 1.45.24 to 1.45.26

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.45.24 to 1.45.26.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](aws/aws-sdk-go@v1.45.24...v1.45.26)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>

* Bump client version to 2.4.0

Signed-off-by: Vacha Shah <vachshah@amazon.com>

---------

Signed-off-by: Tanner Jones <alltechguyblog@gmail.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
Signed-off-by: Daniel (dB.) Doubrovkine <dblock@dblock.org>
Signed-off-by: Tanner Jones <78619684+tannerjones4075@users.noreply.github.com>
Co-authored-by: Tanner Jones <78619684+tannerjones4075@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jakob <jakob.hahn@hetzner.com>
Co-authored-by: Daniel (dB.) Doubrovkine <dblock@dblock.org>
@Jakob3xD Jakob3xD deleted the misc branch November 20, 2023 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants