Skip to content

Commit

Permalink
chore: initial migration from https://github.com/elastic/apm-pipeline…
Browse files Browse the repository at this point in the history
  • Loading branch information
kuisathaverat committed Feb 16, 2024
1 parent d8e42a4 commit 698fbbd
Show file tree
Hide file tree
Showing 51 changed files with 1,713 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.asciidoc]
trim_trailing_whitespace = false

[Jenkinsfile]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.groovy]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.dsl]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{Makefile,**.mk}]
# Use tabs for indentation (Makefiles require tabs)
indent_style = tab
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# GitHub CODEOWNERS definition
# See: https://help.github.com/articles/about-codeowners

* @kuisathaverat
14 changes: 14 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## What does this PR do?

<!-- Comment:
Here you can explain the changes made on the PR.
-->

## Why is it important?

<!-- Comment:
Here you can explains how this changes will impact in users or in the application
-->

## Related issues
Closes #ISSUE
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
version: 2
updates:
# Enable version updates for pytest_otel
- package-ecosystem: "pip"
directory: "/"
# Check for updates once a month
schedule:
interval: "weekly"
day: "sunday"
time: "22:00"
reviewers:
- "kuisathaverat"
38 changes: 38 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bug'
- title: '📚 Documentation'
labels:
- 'docs'
- 'question'
- title: '🧰 Maintenance'
label:
- 'chore'
- 'ci'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
### Changes
$CHANGES
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
60 changes: 60 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
## continous deployment workflow
name: cd

on:
# push:
# branches:
# - main
workflow_dispatch:

permissions:
contents: read

jobs:
lint:
name: Run linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint
run: make lint
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: false
ref: ${{ github.sha || 'main' }}
- uses: actions/setup-python@v5
with:
python-version-file: .python-version
cache: 'pip'
cache-dependency-path: requirements.txt
- name: test
run: make test
- name: it-test
run: make it-test
release:
runs-on: ubuntu-latest
permissions:
# write permission is required to create a github release
contents: write
steps:
- name: Release
id: release
run: |
make publish
grep "version = " setup.cfg | tr -d " " >> ${GITHUB_OUTPUT}
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
- uses: release-drafter/release-drafter@v6
with:
version: ${{ steps.release.outputs.version }}
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
## continous integration workflow
name: ci

on:
pull_request:

permissions:
contents: read

jobs:
lint:
name: Run linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: false
ref: ${{ github.sha || 'main' }}
- name: Lint
run: make lint
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: false
ref: ${{ github.sha || 'main' }}
- uses: actions/setup-python@v5
with:
python-version-file: .python-version
cache: 'pip'
cache-dependency-path: requirements.txt
- name: test
run: make test
- name: it-test
run: make it-test
- uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: test-results
path: "**/junit-*.xml"

13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
__init__.py
.gradle
.idea
.venv
.vscode
*.bck
*.iml
**/__pycache__
build
gha-creds-*.json
release.properties
target
venv
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11
79 changes: 79 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# version 1.4.1

* Move to a new repository

# version 1.4.0

* Remove support for Python 3.6 and 3.7 [2015](https://github.com/elastic/apm-pipeline-library/pull/2015)
* add support for Python 3.11 [2015](https://github.com/elastic/apm-pipeline-library/pull/2015)
* Bump OpenTelemetry SDK to 1.15.0 [2015](https://github.com/elastic/apm-pipeline-library/pull/2015)
* Update Elastic demo to 8.6.0 [2015](https://github.com/elastic/apm-pipeline-library/pull/2015)

# version 1.3.0

* Bump OpenTelemetry SDK to 1.13.0 [#1917](https://github.com/elastic/apm-pipeline-library/pull/1917)
* Update the Demo to Elastic Stack 8.4.2 [#1917](https://github.com/elastic/apm-pipeline-library/pull/1917)
* chore(deps): bump coverage in /resources/scripts/pytest_otel [#1916](https://github.com/elastic/apm-pipeline-library/pull/1916)
* chore(deps): bump mypy in /resources/scripts/pytest_otel [#1915](https://github.com/elastic/apm-pipeline-library/pull/1915)
* chore(deps): bump pytest in /resources/scripts/pytest_otel [#1892](https://github.com/elastic/apm-pipeline-library/pull/1892)

# version 1.2.1

* fix: pytest_otel: pytest.fail is not captured as an error [#1840](https://github.com/elastic/apm-pipeline-library/pull/1840) [#1843](https://github.com/elastic/apm-pipeline-library/pull/1843)
* fix: update the pytest_otel demo [#1804](https://github.com/elastic/apm-pipeline-library/pull/1804)

* chore(deps): bump mypy in /resources/scripts/pytest_otel [#1893](https://github.com/elastic/apm-pipeline-library/pull/1893)
* chore(deps): bump pytest-docker in /resources/scripts/pytest_otel [#1894](https://github.com/elastic/apm-pipeline-library/pull/1894)
* chore(deps): bump pre-commit in /resources/scripts/pytest_otel [#1877](https://github.com/elastic/apm-pipeline-library/pull/1877)
* chore(deps): bump coverage in /resources/scripts/pytest_otel [#1891](https://github.com/elastic/apm-pipeline-library/pull/1891)
* chore(deps): bump psutil in /resources/scripts/pytest_otel [#1879](https://github.com/elastic/apm-pipeline-library/pull/1879)
* chore: bump Otel 1.12.0 [#1890](https://github.com/elastic/apm-pipeline-library/pull/1890)
* pytest_otel: add hard dependencies [#1841](https://github.com/elastic/apm-pipeline-library/pull/1841)

# Version 1.1.1

* fix: Update setup.cfg dependencies.

# Version 1.1.0

* feat: Update OpenTelemetry SDK to 1.11.0 [#1664](https://github.com/elastic/apm-pipeline-library/pull/1664)
* fix: pytest-otel seems to be broken on Python >= 3.10.0 [#1687](https://github.com/elastic/apm-pipeline-library/issues/1687)

# Version 1.0.3

* fix: remove pytest timing import [#1623](https://github.com/elastic/apm-pipeline-library/pull/1623)

# Version 1.0.2

* fix: show traces only on debug mode [#1621](https://github.com/elastic/apm-pipeline-library/pull/1621)
* fix: use different tests for the demos [#1523](https://github.com/elastic/apm-pipeline-library/pull/1523)

# Version 1.0.1

* fix: Pytest update attr [#1521](https://github.com/elastic/apm-pipeline-library/pull/1521)

# Version 1.0.0

* feat: update the attribute references [#1496](https://github.com/elastic/apm-pipeline-library/pull/1496)
* Update main [#1468](https://github.com/elastic/apm-pipeline-library/pull/1468)
* fix: Otel avoid conflicts [#1464](https://github.com/elastic/apm-pipeline-library/pull/1464)

# Version 0.0.6

* fix: improve attributes access [#1462](https://github.com/elastic/apm-pipeline-library/pull/1462)

# Version 0.0.4

* fix: fix pytest_otel authentication [#1452](https://github.com/elastic/apm-pipeline-library/pull/1452)

# Version 0.0.3

* feat: add demos [#1441](https://github.com/elastic/apm-pipeline-library/pull/1441)

# Version 0.0.3

* feat: publish pytest_otel [#1392](https://github.com/elastic/apm-pipeline-library/pull/1392)

# Version 0.0.2

* feat: Otel pytest plugin [#1217](https://github.com/elastic/apm-pipeline-library/pull/1217)
Loading

0 comments on commit 698fbbd

Please sign in to comment.