Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@
"config": {
"sort-packages": true
},
"scripts": {
"test": "phpunit",
"test:unit": "phpunit --testsuite Unit",
"test:integration": "phpunit --testsuite Integration",
"test:coverage": "XDEBUG_MODE=coverage phpunit --coverage-text --coverage-html coverage/php"
},
"minimum-stability": "dev",
"prefer-stable": true
}
6 changes: 3 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions docker/e2e/setup-panel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,47 @@ php artisan migrate --path=vendor/notur/notur/database/migrations --force
rm -rf /tmp/hello-world-src /tmp/hello-world.notur
cp -R /opt/notur/examples/hello-world /tmp/hello-world-src
php -r 'require "vendor/autoload.php"; \Notur\Support\NoturArchive::pack("/tmp/hello-world-src", "/tmp/hello-world.notur");'
mkdir -p public/notur/e2e-registry storage/notur

@augmentcode augmentcode Bot May 5, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker/e2e/setup-panel.sh:60 — General note (not tied to this specific line): the PR includes a test.txt.rej file that looks like an accidental patch-reject artifact; I couldn’t anchor an inline comment directly on that file via the review API, but it’s worth double-checking it’s intentional to keep in the repo.

Severity: low

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

cp /tmp/hello-world.notur public/notur/e2e-registry/hello-world.notur
php <<'PHP'
<?php

$archive = '/tmp/hello-world.notur';
$cachePath = 'storage/notur/registry-cache.json';
$checksum = hash_file('sha256', $archive);

if ($checksum === false) {
fwrite(STDERR, "Failed to hash {$archive}\n");
exit(1);
}

$registry = [
'fetched_at' => gmdate('Y-m-d\TH:i:s\Z'),
'registry' => [
'version' => '1.0.0',
'extensions' => [[
'id' => 'notur/hello-world',
'name' => 'Hello World',
'description' => 'E2E registry fixture for archive-backed installs.',
'version' => '1.0.0',
'archive_url' => 'http://127.0.0.1/notur/e2e-registry/hello-world.notur',
'sha256' => $checksum,
'tags' => ['e2e', 'fixture'],
]],
],
];

$json = json_encode($registry, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
if ($json === false) {
fwrite(STDERR, 'Failed to encode E2E registry cache: ' . json_last_error_msg() . "\n");
exit(1);
}

if (file_put_contents($cachePath, $json . PHP_EOL) === false) {
fwrite(STDERR, "Failed to write {$cachePath}\n");
exit(1);
}
PHP
php artisan notur:add /tmp/hello-world.notur --force

rm -rf notur/extensions/notur/full-extension
Expand Down
Loading
Loading