Skip to content

Commit a0de393

Browse files
committed
first commit
0 parents  commit a0de393

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+5161
-0
lines changed

.circleci/config.yml

+193
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
version: 2.1
2+
3+
filters_always: &filters_always
4+
filters:
5+
tags:
6+
only: /.*/
7+
8+
filters_publish: &filters_publish
9+
filters:
10+
tags:
11+
only: /^v[0-9].*/
12+
branches:
13+
ignore: /.*/
14+
15+
orbs:
16+
python: circleci/[email protected]
17+
bats: circleci/[email protected]
18+
19+
default_python_version: &default_python_version "3.10"
20+
matrix_python_versions: &matrix_python_versions
21+
matrix:
22+
parameters:
23+
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
24+
25+
executors:
26+
github:
27+
docker:
28+
- image: cibuilds/github:0.13.0
29+
30+
jobs:
31+
lint:
32+
executor:
33+
name: python/default
34+
tag: *default_python_version
35+
steps:
36+
- checkout
37+
- python/install-packages:
38+
pkg-manager: poetry
39+
- run: make lint
40+
codestyle:
41+
executor:
42+
name: python/default
43+
tag: *default_python_version
44+
steps:
45+
- checkout
46+
- python/install-packages:
47+
pkg-manager: poetry
48+
- run: make style
49+
test:
50+
parameters:
51+
python_version:
52+
type: string
53+
default: *default_python_version
54+
executor:
55+
name: python/default
56+
tag: "<< parameters.python_version >>"
57+
steps:
58+
- checkout
59+
- python/install-packages:
60+
pkg-manager: poetry
61+
- run: make test
62+
- store_test_results:
63+
path: test-results
64+
- store_artifacts:
65+
path: htmlcov
66+
build:
67+
executor:
68+
name: python/default
69+
tag: *default_python_version
70+
steps:
71+
- checkout
72+
- python/install-packages:
73+
pkg-manager: poetry
74+
- run: mkdir -p ~/artifacts
75+
- run:
76+
name: "Build Package"
77+
command: make build
78+
- run:
79+
name: "Copy Artifacts"
80+
command: cp dist/* ~/artifacts
81+
- persist_to_workspace:
82+
root: ~/
83+
paths:
84+
- artifacts
85+
- store_artifacts:
86+
path: ~/artifacts
87+
88+
smoke_test:
89+
machine:
90+
image: ubuntu-2004:2023.04.2
91+
steps:
92+
- checkout
93+
- attach_workspace:
94+
at: ./
95+
- bats/install
96+
- run:
97+
name: What's the BATS?
98+
command: |
99+
which bats
100+
bats --version
101+
- run:
102+
name: Smoke Test
103+
command: make smoke-sdk
104+
- store_test_results:
105+
path: ./smoke-tests/
106+
- store_artifacts:
107+
path: ./smoke-tests/report.xml
108+
- store_artifacts:
109+
path: ./smoke-tests/collector/data-results
110+
- run:
111+
name: Extinguish the flames
112+
command: make unsmoke
113+
publish_github:
114+
executor: github
115+
steps:
116+
- attach_workspace:
117+
at: ~/
118+
- run:
119+
name: "Artifacts being published"
120+
command: |
121+
echo "about to publish to tag ${CIRCLE_TAG}"
122+
ls -l ~/artifacts/*
123+
- run:
124+
name: "Create GitHub Release Draft"
125+
command: ghr -draft -n ${CIRCLE_TAG} -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} ~/artifacts
126+
127+
publish_pypi:
128+
executor:
129+
name: python/default
130+
tag: *default_python_version
131+
steps:
132+
- checkout
133+
- python/install-packages:
134+
pkg-manager: poetry
135+
- attach_workspace:
136+
at: ~/
137+
- run:
138+
name: "Artifacts being published"
139+
command: |
140+
echo "copying artifacts to /dist"
141+
mkdir dist
142+
cp ~/artifacts/* dist
143+
echo "about to publish to tag ${CIRCLE_TAG}"
144+
ls -l dist/*
145+
- run:
146+
name: "Publish to PyPI"
147+
command: make publish
148+
149+
workflows:
150+
nightly:
151+
triggers:
152+
- schedule:
153+
cron: "0 0 * * *"
154+
filters:
155+
branches:
156+
only:
157+
- main
158+
jobs:
159+
- test:
160+
<<: *matrix_python_versions
161+
- smoke_test:
162+
requires:
163+
- test
164+
165+
build:
166+
jobs:
167+
- lint
168+
- codestyle:
169+
<<: *filters_always
170+
- test:
171+
<<: *matrix_python_versions
172+
<<: *filters_always
173+
- build:
174+
<<: *filters_always
175+
requires:
176+
- codestyle
177+
- test
178+
- smoke_test:
179+
<<: *filters_always
180+
requires:
181+
- test
182+
- publish_github:
183+
<<: *filters_publish
184+
context: Honeycomb Secrets for Public Repos
185+
requires:
186+
- smoke_test
187+
- build
188+
- publish_pypi:
189+
<<: *filters_publish
190+
context: Honeycomb Secrets for Public Repos
191+
requires:
192+
- smoke_test
193+
- build

.github/CODEOWNERS

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Code owners file.
2+
# This file controls who is tagged for review for any given pull request.
3+
4+
# For anything not explicitly taken by someone else:
5+
* @honeycombio/telemetry-team
6+

.github/ISSUE_TEMPLATE/bug_report.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Bug report
3+
about: Let us know if something is not working as expected
4+
title: ''
5+
labels: 'type: bug'
6+
assignees: ''
7+
8+
---
9+
10+
<!---
11+
Thank you for taking the time to report bugs!
12+
13+
We love code snippets and links to repositories that reproduce the issue, but understand if you don't have the time to add them. We'll do our best with the info you provide, and might ask follow-up questions.
14+
15+
Please see our [OSS process document](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md#) to get an idea of how we operate.
16+
--->
17+
18+
**Versions**
19+
20+
21+
**Steps to reproduce**
22+
23+
1.
24+
25+
**Additional context**
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: 'type: enhancement'
6+
assignees: ''
7+
8+
---
9+
10+
<!---
11+
Thank you for contributing an idea to this project!
12+
13+
Please see our [OSS process document](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md#) to get an idea of how we operate.
14+
--->
15+
16+
**Is your feature request related to a problem? Please describe.**
17+
18+
19+
**Describe the solution you'd like**
20+
21+
22+
**Describe alternatives you've considered**
23+
24+
25+
**Additional context**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Question/Discussion
3+
about: General question about how things work or a discussion
4+
title: ''
5+
labels: 'type: discussion'
6+
assignees: ''
7+
8+
---
9+
10+
<!---
11+
Thank you for taking the time to say hello!
12+
13+
Please see our [OSS process document](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md#) to get an idea of how we operate.
14+
--->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Security vulnerability report
3+
about: Let us know if you discover a security vulnerability
4+
title: ''
5+
labels: 'type: security'
6+
assignees: ''
7+
8+
---
9+
10+
<!---
11+
Thank you for taking the time to report security vulnerabilities!
12+
13+
Please see our [OSS process document](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md#) to get an idea of how we operate.
14+
--->
15+
**Versions**
16+
17+
**Description**
18+
19+
(Please include any relevant CVE advisory links)

.github/PULL_REQUEST_TEMPLATE.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!--
2+
Thank you for contributing to the project! 💜
3+
Please see our [OSS process document](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md#) to get an idea of how we operate.
4+
-->
5+
6+
## Which problem is this PR solving?
7+
8+
- Closes #<enter issue here>
9+
10+
## Short description of the changes
11+
12+
## How to verify that this has the expected result

.github/dependabot.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "pip" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "monthly"
12+
labels:
13+
- "type: dependencies"
14+
reviewers:
15+
- "honeycombio/telemetry-team"
16+
commit-message:
17+
prefix: "maint"
18+
include: "scope"

.github/release.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# .github/release.yml
2+
3+
changelog:
4+
exclude:
5+
labels:
6+
- no-changelog
7+
categories:
8+
- title: 💥 Breaking Changes 💥
9+
labels:
10+
- "version: bump major"
11+
- breaking-change
12+
- title: 💡 Enhancements
13+
labels:
14+
- "type: enhancement"
15+
- title: 🐛 Fixes
16+
labels:
17+
- "type: bug"
18+
- title: 🛠 Maintenance
19+
labels:
20+
- "type: maintenance"
21+
- title: 🤷 Other Changes
22+
labels:
23+
- "*"
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Add to project
2+
on:
3+
issues:
4+
types: [opened]
5+
pull_request_target:
6+
types: [opened]
7+
jobs:
8+
add-to-project:
9+
runs-on: ubuntu-latest
10+
name: Add issues and PRs to project
11+
steps:
12+
- uses: actions/add-to-project@main
13+
with:
14+
project-url: https://github.com/orgs/honeycombio/projects/11
15+
github-token: ${{ secrets.GHPROJECTS_TOKEN }}

.github/workflows/apply-labels.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Apply project labels
2+
on: [issues, pull_request_target, label]
3+
jobs:
4+
apply-labels:
5+
runs-on: ubuntu-latest
6+
name: Apply common project labels
7+
steps:
8+
- uses: honeycombio/oss-management-actions/labels@v1
9+
with:
10+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/auto-merge.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Dependabot auto-merge dev dependency patches
2+
on: pull_request
3+
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.actor == 'dependabot[bot]' }}
12+
steps:
13+
- name: Dependabot metadata
14+
id: metadata
15+
uses: dependabot/[email protected]
16+
with:
17+
github-token: "${{ secrets.GITHUB_TOKEN }}"
18+
- name: Enable auto-merge for Dependabot PRs for Dev Dependency Patch Updates
19+
if: ${{contains(steps.metadata.outputs.dependency-type, 'direct:development') && steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
20+
run: gh pr review --approve "$PR_URL" && gh pr merge --auto --squash "$PR_URL"
21+
env:
22+
PR_URL: ${{github.event.pull_request.html_url}}
23+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)