Skip to content

fix: generateDistributedTracingHeaders and createSpan hex encoding #30

fix: generateDistributedTracingHeaders and createSpan hex encoding

fix: generateDistributedTracingHeaders and createSpan hex encoding #30

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
linux:
runs-on: ubuntu-latest
name: "PHP ${{ matrix.php }}"
strategy:
fail-fast: false
matrix:
php: ["8.2", "8.3", "8.4", "8.5"]
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq libcurl4-openssl-dev
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: none
extensions: curl, pdo, sqlite3, session, mbstring
- name: Build extension
run: |
phpize
./configure --enable-akari
make -j$(nproc)
- name: Verify extension loads
run: |
php -d extension=$PWD/modules/akari.so \
-d akari.enable=1 \
-r '
echo "akari version: " . phpversion("akari") . "\n";
$fns = ["enable","createSpan","setTransactionName","addTag",
"getTags","logException","generateDistributedTracingHeaders",
"isProfiling","getSpansJson"];
foreach ($fns as $f) {
echo " " . (function_exists("Akari\\$f") ? "✓" : "✗") . " $f\n";
}
'
- name: Run tests
run: |
TEST_PHP_EXECUTABLE=$(which php) make test
- name: Show failures
if: failure()
run: |
echo "=== Failed test output ==="
for f in tests/*.out; do
[ -f "$f" ] && echo "--- $(basename $f) ---" && cat "$f"
done
echo ""
echo "=== Diffs ==="
for f in tests/*.diff; do
[ -f "$f" ] && echo "--- $(basename $f) ---" && cat "$f"
done
echo ""
echo "=== Test result summary ==="
cat tests/*.log 2>/dev/null | grep -E 'FAIL|PASS' | head -20