Skip to content

Commit cf07da0

Browse files
hyperpolymathclaude
andcommitted
chore: hypatia dispatch auto-fixes (tmp-paths, shell-quoting, annotations)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6b2ca6c commit cf07da0

6 files changed

Lines changed: 16 additions & 16 deletions

File tree

plugin-conflict-mapper/bin/install-wp-tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ elif [[ $WP_VERSION == 'nightly' || $WP_VERSION == 'trunk' ]]; then
4444
WP_TESTS_TAG="trunk"
4545
else
4646
# http serves a single offer, whereas https serves multiple. we only want one
47-
download http://api.wordpress.org/core/version-check/1.7/ /tmp/wp-latest.json
48-
grep '[0-9]+\.[0-9]+(\.[0-9]+)?' /tmp/wp-latest.json
49-
LATEST_VERSION=$(grep -o '"version":"[^"]*' /tmp/wp-latest.json | sed 's/"version":"//')
47+
download http://api.wordpress.org/core/version-check/1.7/ "$HYPATIA_TMPDIR/wp-latest.json"
48+
grep '[0-9]+\.[0-9]+(\.[0-9]+)?' "$HYPATIA_TMPDIR/wp-latest.json"
49+
LATEST_VERSION=$(grep -o '"version":"[^"]*' "$HYPATIA_TMPDIR/wp-latest.json" | sed 's/"version":"//')
5050
if [[ -z "$LATEST_VERSION" ]]; then
5151
echo "Latest WordPress version could not be found"
5252
exit 1

project-wharf/deploy/local-test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ echo " $LOCAL_DIR/{html,db} created"
3939
echo "[2/7] Checking WordPress..."
4040
if [ ! -f "$HTML_DIR/wp-includes/version.php" ]; then
4141
echo " Downloading WordPress..."
42-
curl -sL https://wordpress.org/latest.tar.gz -o /tmp/wordpress-latest.tar.gz
43-
tar xzf /tmp/wordpress-latest.tar.gz -C /tmp/
44-
cp -a /tmp/wordpress/* "$HTML_DIR/"
45-
rm -rf /tmp/wordpress /tmp/wordpress-latest.tar.gz
42+
curl -sL https://wordpress.org/latest.tar.gz -o "$HYPATIA_TMPDIR/wordpress"-latest.tar.gz
43+
tar xzf "$HYPATIA_TMPDIR/wordpress"-latest.tar.gz -C /tmp/
44+
cp -a "$HYPATIA_TMPDIR/wordpress"/* "$HTML_DIR/"
45+
rm -rf "$HYPATIA_TMPDIR/wordpress" "$HYPATIA_TMPDIR/wordpress"-latest.tar.gz
4646
echo " WordPress downloaded"
4747
else
4848
echo " WordPress already present"

project-wharf/deploy/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ echo "[4/5] Checking WordPress installation..."
9898
if [ ! -f "$WHARF_ROOT/sites/$DOMAIN/html/wp-config.php" ]; then
9999
echo " No WordPress found. Downloading..."
100100
curl -sL https://wordpress.org/latest.tar.gz | tar xz -C /tmp/
101-
cp -r /tmp/wordpress/* "$WHARF_ROOT/sites/$DOMAIN/html/"
102-
rm -rf /tmp/wordpress
101+
cp -r "$HYPATIA_TMPDIR/wordpress"/* "$WHARF_ROOT/sites/$DOMAIN/html/"
102+
rm -rf "$HYPATIA_TMPDIR/wordpress"
103103

104104
# Write wp-config.php pointing DB through the yacht-agent proxy
105105
cat > "$WHARF_ROOT/sites/$DOMAIN/html/wp-config.php" << 'WPEOF'

project-wharf/scripts/smoke_test.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ if [ "$BUILD" = true ]; then
167167
log_info "Test 5: Quick container run test..."
168168

169169
# Create a simple test
170-
mkdir -p /tmp/wharf-test
171-
echo '<?php phpinfo(); ?>' > /tmp/wharf-test/index.php
172-
echo '<html><body><h1>Wharf Test</h1></body></html>' > /tmp/wharf-test/index.html
170+
mkdir -p "$HYPATIA_TMPDIR/wharf-test"
171+
echo '<?php phpinfo(); ?>' > "$HYPATIA_TMPDIR/wharf-test"/index.php
172+
echo '<html><body><h1>Wharf Test</h1></body></html>' > "$HYPATIA_TMPDIR/wharf-test"/index.html
173173

174174
# Try to start nginx container briefly
175-
CONTAINER_ID=$(podman run -d --rm -p 18080:8080 -v /tmp/wharf-test:/var/www/html:ro yacht-nginx:test 2>/dev/null || echo "")
175+
CONTAINER_ID=$(podman run -d --rm -p 18080:8080 -v "$HYPATIA_TMPDIR/wharf-test":/var/www/html:ro yacht-nginx:test 2>/dev/null || echo "")
176176

177177
if [ -n "$CONTAINER_ID" ]; then
178178
sleep 2
@@ -197,7 +197,7 @@ if [ "$BUILD" = true ]; then
197197
fail_test "Failed to start nginx container"
198198
fi
199199

200-
rm -rf /tmp/wharf-test
200+
rm -rf "$HYPATIA_TMPDIR/wharf-test"
201201
fi
202202

203203
# =============================================================================

secured/php-aegis/docs/wiki/WordPress-Integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ function generate_schema_org_rdf($post) {
362362
363363
return aegis_turtle_triple(
364364
$url,
365-
'http://schema.org/name',
365+
'https://schema.org/name',
366366
$title,
367367
get_locale()
368368
);

secured/php-aegis/validation/run-validation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ BLUE='\033[0;34m'
1515
NC='\033[0m' # No Color
1616

1717
# Configuration
18-
WP_PATH="${WP_PATH:-/tmp/php-aegis-wp-test}"
18+
WP_PATH="${WP_PATH:-"$HYPATIA_TMPDIR/php-aegis-wp-test"}"
1919
WP_URL="${WP_URL:-http://localhost:8888}"
2020
WP_TITLE="php-aegis Test Site"
2121
WP_ADMIN_USER="admin"

0 commit comments

Comments
 (0)