Commit Graph

24 Commits

Author SHA1 Message Date
Alex Boten a9ce74ba59
[chore] add semconvkit to reduce toil (#9057)
This code, copied from the opentelemetry-go repo, allows to generate
schema.go automatically as well, reducing effort needed to generate
semantic convention packages in the future

---------

Signed-off-by: Alex Boten <aboten@lightstep.com>
2023-12-08 13:59:17 -08:00
Alex Boten a82663e41b
remove generated jsonschema code (#8620)
This code will live in the opentelemetry-go-contrib repo in the future.

This depends on
https://github.com/open-telemetry/opentelemetry-go-contrib/pull/4376

---------

Signed-off-by: Alex Boten <aboten@lightstep.com>
2023-11-16 11:01:08 -08:00
Mackenzie 78b1833853
[chore] Replace checkdoc by checkfile (#8144)
**Description:**
Follow up to:
https://github.com/open-telemetry/opentelemetry-go-build-tools/pull/348

**Link to tracking Issue:**
(https://github.com/open-telemetry/opentelemetry-go-build-tools/issues/349)
2023-08-03 10:30:41 -07:00
Alex Boten 33d86327ce
add auto-generated configuration code (#7679)
This is generated from the opentelemetry-configuration repository using
gojsonschema. Updated makefile to support this w/ `make genjsonschema`

Follow up to
https://github.com/open-telemetry/opentelemetry-collector/pull/7678

---------

Signed-off-by: Alex Boten <aboten@lightstep.com>
2023-06-22 12:51:26 -07:00
Alex Boten 0b88ff9686
[chore] remove unnecessary additional tools (#7852)
This is replicating the setup in the contrib repo that doesn't use
go-acc & gcovmerge for coverage. It uses tools built into go 1.20
instead

---------

Signed-off-by: Alex Boten <aboten@lightstep.com>
2023-06-21 14:33:15 -07:00
Alex Boten 4d38f10036
[chore] install tool envsubst (#7860)
This is needed to run the builder tests.

Signed-off-by: Alex Boten <aboten@lightstep.com>
2023-06-09 10:59:21 -07:00
Alex Boten 80d704deb4
[chore] use license shortform (#7694)
* [chore] use license shortform

To remain consistent w/ contrib repo, see https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/22052

Signed-off-by: Alex Boten <aboten@lightstep.com>

* make goporto

Signed-off-by: Alex Boten <aboten@lightstep.com>

---------

Signed-off-by: Alex Boten <aboten@lightstep.com>
2023-05-18 13:11:17 -07:00
Dmitrii Anoshin 9f776d0dbc
[chore] Add an automation to skip release if there no changes (#7559)
Update the release process to skip releasing the stable set of modules if there are no changes since the last version
2023-05-05 15:18:25 -07:00
Piotr Lucinski b302ace4ae
[chore] Add govulncheck scan (as a new job in build-and-test workflow) (#7526) 2023-05-04 22:16:22 -07:00
Alex Boten 955d47751b
[chore] remove ghr (#7038)
This repo does not use ghr.

Signed-off-by: Alex Boten <aboten@lightstep.com>

Signed-off-by: Alex Boten <aboten@lightstep.com>
2023-01-26 15:52:40 -08:00
Alex Boten f24a6ac30f
[chore] add chloggen for changelog (#6062)
This change updates the changelog process in this repo to match the process in the contrib repo.
2022-10-13 08:38:17 -07:00
bryan-aguilar e0eea95c1a
Add crosslink tool (#6237)
* Add crosslink info to contributing.md

* Add crosslink

* Remove install-tools requirement

* Add crosslink to check gha

* Add prune flag to crosslink
2022-10-05 09:32:37 -07:00
Bogdan Drutu 7e4a7e359f
Use go:embed instead of generate using esc (#4356)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-11-03 12:51:26 -07:00
alrex 4480a74ac8
add multimod tool and makefile targets to repo (#4229)
* add multimod tool and makefile targets to repo

* cleanup go.mod
2021-10-20 12:12:11 -07:00
José Carlos Chávez 9d3a8a4608
Adds vanity import check (#4180)
* chore: adds porto and fixes vanity imports.

* chore: fixes target overriding.

* chore: fixes install of porto.

* chore: includes porto as a tool.

* chore: upgrades porto to check internals.

* chore: rebase and update vanity import.

* chore: removes unnecessary space.

* chore: rollsback vanity import in generated files.
2021-10-12 13:47:36 -07:00
Bogdan Drutu 71eaf3a596
Re-enable codecov for test coverage (#4125)
Codecov was disabled here due to security concerns: https://github.com/open-telemetry/opentelemetry-collector/pull/3014/files

This new PR no longer downloads the codecov script from a remote location so is no longer susceptible to the same problem.
2021-09-27 14:53:02 -04:00
Bogdan Drutu 6db25f570e
Cleanup github actions unittests (#4124)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-09-27 09:24:07 -07:00
Anthony Mirabella 058edeabd4
Use `checkdoc` from go-build-tools, remove `issuegenerator` (#3900)
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
2021-08-26 14:59:03 -07:00
Eyal Maderer 2116719e97
Upgrade to Go 1.17 (#3887) 2021-08-25 13:49:09 -07:00
Anthony Mirabella b336d3df8b
translator/conventions: replace with conventions generated from spec v1.5.0 (#3494)
* translator/conventions: replace with conventions generated from spec v1.4.0

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* integrate semantic convention generation in Makefile

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* update semconvgen dependency

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Move semantic convention generator template to an internal location

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* conventions: update to v1.5.0, move to versioned import path

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Restore accidentally deleted line

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
2021-08-04 12:18:49 -07:00
Anthony Mirabella dea2f6e19f
Enable generation and comparison of public API snapshots (#3081)
* Add `apidiff` to internal/tools

* Add Makefile target for building apidiff snapshots

* Add Makefile target for comparing API snapshots

* Update apidiff comparison to only output when changes are detected

* Fix missing newline at end of Makefile

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Tidy mods in internal/tools

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
2021-05-11 14:11:49 -07:00
Bogdan Drutu fb36c26c63
Avoid running staticchek twice, once in golangci and one directly (#2578)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-02 14:20:51 -08:00
Bogdan Drutu a263ced270
Remove gosec from tools, we use the one from golangci (#2337)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-01-07 12:15:27 -05:00
Bogdan Drutu d885cb20e1
Move tools to internal, create module to avoid dependency problems (#2131)
* Move tools to internal, create module to avoid dependency problems

This way we avoid dependency conflicts between tools and main codebase.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Add dependabot entry for the new module

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Fix build

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Add makefile in internal/tools

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Re-enable coverage

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-19 09:12:14 -08:00