Files
hatchet/hack/dev/compression-test/scripts/setup.sh
Sid Premkumar 709dd89a18 Add gzip compression (#2539)
* 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>
2025-11-26 17:14:38 -05:00

58 lines
1.7 KiB
Bash
Executable File

#!/bin/bash
# setup.sh - Initial setup script
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
TEST_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
echo "Setting up compression test environment..."
# Create results directories
mkdir -p "$TEST_DIR/results/baseline"
mkdir -p "$TEST_DIR/results/enabled"
# Note: Using host network mode, so no network creation needed
# Check for required tools
echo ""
echo "Checking for required tools..."
MISSING_TOOLS=()
if ! command -v docker >/dev/null 2>&1; then
MISSING_TOOLS+=("docker")
fi
if ! command -v docker-compose >/dev/null 2>&1 && ! docker compose version >/dev/null 2>&1; then
MISSING_TOOLS+=("docker-compose")
fi
if [ ${#MISSING_TOOLS[@]} -gt 0 ]; then
echo "Error: Missing required tools: ${MISSING_TOOLS[*]}"
exit 1
fi
echo "✓ All required tools are installed"
echo ""
echo "Setup complete!"
echo ""
echo "Next steps:"
echo "1. Build baseline images (main branch):"
echo " git checkout main"
echo " docker build -t go-disabled-compression -f Dockerfile.client-go .."
echo " docker build -t typescript-disabled-compression -f Dockerfile.client-ts .."
echo " docker build -t python-disabled-compression -f Dockerfile.client-python .."
echo ""
echo "2. Build compression images (current branch):"
echo " git checkout <your-compression-branch>"
echo " docker build -t go-enabled-compression -f Dockerfile.client-go .."
echo " docker build -t typescript-enabled-compression -f Dockerfile.client-ts .."
echo " docker build -t python-enabled-compression -f Dockerfile.client-python .."
echo ""
echo "3. Start engine and run tests:"
echo " ./scripts/run_all_tests.sh disabled"
echo " ./scripts/run_all_tests.sh enabled"
echo " ./scripts/generate_report.sh"