Skip to content

Commit

Permalink
add hypertrace-core-graphql directory
Browse files Browse the repository at this point in the history
  • Loading branch information
skjindal93 committed Jun 21, 2024
2 parents 37ecebf + 15da6ec commit 3931395
Show file tree
Hide file tree
Showing 321 changed files with 15,787 additions and 1 deletion.
1 change: 0 additions & 1 deletion hypertrace-core-graphql
Submodule hypertrace-core-graphql deleted from 15da6e
7 changes: 7 additions & 0 deletions hypertrace-core-graphql/.github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Each line is a file pattern followed by one or more owners.

# global
* @hypertrace/graphql

# GH action
.github/ @hypertrace/ci-owners
25 changes: 25 additions & 0 deletions hypertrace-core-graphql/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Description
Please include a summary of the change, motivation and context.

<!--
- **on a feature**: describe the feature and how this change fits in it, e.g. this PR makes kafka message.max.bytes configurable to better support batching
- **on a refactor**: describe why this is better than previous situation e.g. this PR changes logic for retry on healthchecks to avoid false positives
- **on a bugfix**: link relevant information about the bug (github issue or slack thread) and how this change solves it e.g. this change fixes #99999 by adding a lock on read/write to avoid data races.
-->


### Testing
Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.

### Checklist:
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] Any dependent changes have been merged and published in downstream modules

### Documentation
Make sure that you have documented corresponding changes in this repository or [hypertrace docs repo](https://github.com/hypertrace/hypertrace-docs-website) if required.

<!--
Include __important__ links regarding the implementation of this PR.
This usually includes and RFC or an aggregation of issues and/or individual conversations that helped put this solution together. This helps ensure there is a good aggregation of resources regarding the implementation.
-->
30 changes: 30 additions & 0 deletions hypertrace-core-graphql/.github/workflows/merge-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: merge-publish
on:
push:
branches:
- main
workflow_dispatch:

jobs:
merge-publish:
runs-on: ubuntu-22.04
steps:
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_READ_USER }}
password: ${{ secrets.DOCKERHUB_READ_TOKEN }}

- name: push docker image
uses: hypertrace/github-actions/gradle@main
with:
args: dockerPushImages
env:
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_PUBLISH_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_PUBLISH_TOKEN }}
45 changes: 45 additions & 0 deletions hypertrace-core-graphql/.github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: build and validate
on:
push:
branches:
- main
pull_request_target:
branches:
- main

jobs:
build:
runs-on: ubuntu-22.04
steps:
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
- name: Check out code
uses: actions/checkout@v3
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
fetch-depth: 0

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_READ_USER }}
password: ${{ secrets.DOCKERHUB_READ_TOKEN }}

- name: Build with Gradle
uses: hypertrace/github-actions/gradle@main
with:
args: assemble dockerBuildImages

validate-helm-charts:
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
fetch-depth: 0

- name: validate charts
uses: hypertrace/github-actions/validate-charts@main

39 changes: 39 additions & 0 deletions hypertrace-core-graphql/.github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: test
on:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ubuntu-22.04
steps:
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Unit test and other verification
uses: hypertrace/github-actions/gradle@main
with:
args: check jacocoTestReport

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
name: unit test reports
flags: unit

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
files: ./**/build/test-results/**/*.xml
dependency-check:
runs-on: ubuntu-22.04
steps:
- name: Dependency Check
uses: hypertrace/github-actions/dependency-check@main
48 changes: 48 additions & 0 deletions hypertrace-core-graphql/.github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Publish artifacts
on:
# Will only run when release is published.
release:
types:
- created
workflow_dispatch:

jobs:
publish-artifacts:
runs-on: ubuntu-22.04
steps:
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_READ_USER }}
password: ${{ secrets.DOCKERHUB_READ_TOKEN }}

- name: publish docker image
uses: hypertrace/github-actions/gradle@main
with:
args: dockerPushImages
env:
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_PUBLISH_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_PUBLISH_TOKEN }}

publish-helm-charts:
needs: publish-artifacts
runs-on: ubuntu-22.04
steps:
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: package and release charts
uses: hypertrace/github-actions/helm-gcs-publish@main
with:
helm-gcs-credentials: ${{ secrets.HELM_GCS_CREDENTIALS }}
helm-gcs-repository: ${{ secrets.HELM_GCS_REPOSITORY }}

30 changes: 30 additions & 0 deletions hypertrace-core-graphql/.github/workflows/update-locks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Update Locks
on:
workflow_dispatch:
schedule:
- cron: '12 12 * * 5'
jobs:
update-versions:
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Calculate simple repository name
id: repo-basename
shell: bash
run: |
echo "value=`basename ${{ github.repository }}`" >> $GITHUB_OUTPUT
- name: Get Token from Github App
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.GH_CI_APP_ID }}
private_key: ${{ secrets.GH_CI_APP_PRIVATE_KEY }}
repositories: >-
[${{ toJson(steps.repo-basename.outputs.value) }}]
- name: Update locks if needed
uses: hypertrace/github-actions/raise-lock-pr@main
with:
token: ${{ steps.generate-token.outputs.token }}
7 changes: 7 additions & 0 deletions hypertrace-core-graphql/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Ignore Gradle project-specific cache directory
.gradle

# Ignore Gradle build output directory
build

.idea
Loading

0 comments on commit 3931395

Please sign in to comment.