mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-01-06 08:49:53 -06:00
* Add gzip compression init * revert * Feat: Initial cross-domain identify setup (#2533) * feat: initial setup * fix: factor out * chore: lint * fix: xss vuln * feat: set up properly * fix: lint * fix: key * fix: keys, cleanup * Fix: use sessionStorage instead of localStorage (#2541) * chore(deps): bump golang.org/x/crypto from 0.44.0 to 0.45.0 (#2545) Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.44.0 to 0.45.0. - [Commits](https://github.com/golang/crypto/compare/v0.44.0...v0.45.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-version: 0.45.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml (#2547) Bumps [google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml](https://github.com/google/osv-scanner-action) from 2.2.4 to 2.3.0. - [Release notes](https://github.com/google/osv-scanner-action/releases) - [Commits](https://github.com/google/osv-scanner-action/compare/v2.2.4...v2.3.0) --- updated-dependencies: - dependency-name: google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml dependency-version: 2.3.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [Go SDK] Resubscribe and get a new listener stream when gRPC connections fail (#2544) * fix listener cache issue to resubscribe when erroring out * worker retry message clarification (#2543) * add another retry layer and add comments * fix loop logic * make listener channel retry * Compression test utils, and add log to indicate its enabled * clean + fix * more fallbacks * common pgxpool afterconnect method (#2553) * remove * lint * lint * add cpu monitor during test * fix background monitor and lint * Make envvar to disable compression * cleanup monitoring * PR Feedback * Update paths in compression tests + bump package versions * path issue on test script --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: matt <mrkaye97@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mohammed Nafees <hello@mnafees.me>
63 lines
1.9 KiB
Bash
Executable File
63 lines
1.9 KiB
Bash
Executable File
#!/bin/bash
|
|
# collect_results.sh - Collect and aggregate results from all test runs
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
TEST_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
RESULTS_DIR="$TEST_DIR/results"
|
|
|
|
if [ ! -d "$RESULTS_DIR/disabled" ] || [ ! -d "$RESULTS_DIR/enabled" ]; then
|
|
echo "Error: Results directories not found"
|
|
echo "Please run tests first: ./scripts/run_all_tests.sh disabled && ./scripts/run_all_tests.sh enabled"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Collecting results..."
|
|
|
|
# Function to parse bytes from summary file
|
|
parse_bytes() {
|
|
local file=$1
|
|
if [ -f "$file" ]; then
|
|
source "$file"
|
|
echo "$TOTAL_BYTES"
|
|
else
|
|
echo "0"
|
|
fi
|
|
}
|
|
|
|
# Collect results for each SDK
|
|
declare -A baseline_results
|
|
declare -A compressed_results
|
|
|
|
for SDK in go typescript python; do
|
|
baseline_file="$RESULTS_DIR/disabled/${SDK}_network.log.summary"
|
|
compressed_file="$RESULTS_DIR/enabled/${SDK}_network.log.summary"
|
|
|
|
baseline_results[$SDK]=$(parse_bytes "$baseline_file")
|
|
compressed_results[$SDK]=$(parse_bytes "$compressed_file")
|
|
done
|
|
|
|
# Calculate totals
|
|
baseline_total=0
|
|
compressed_total=0
|
|
|
|
for SDK in go typescript python; do
|
|
baseline_total=$(echo "$baseline_total + ${baseline_results[$SDK]}" | bc)
|
|
compressed_total=$(echo "$compressed_total + ${compressed_results[$SDK]}" | bc)
|
|
done
|
|
|
|
# Save aggregated results
|
|
{
|
|
echo "BASELINE_TOTAL=$baseline_total"
|
|
echo "COMPRESSED_TOTAL=$compressed_total"
|
|
echo "GO_BASELINE=${baseline_results[go]}"
|
|
echo "GO_COMPRESSED=${compressed_results[go]}"
|
|
echo "TYPESCRIPT_BASELINE=${baseline_results[typescript]}"
|
|
echo "TYPESCRIPT_COMPRESSED=${compressed_results[typescript]}"
|
|
echo "PYTHON_BASELINE=${baseline_results[python]}"
|
|
echo "PYTHON_COMPRESSED=${compressed_results[python]}"
|
|
} > "$RESULTS_DIR/aggregated_results.txt"
|
|
|
|
echo "Results collected and saved to: $RESULTS_DIR/aggregated_results.txt"
|