-
-
Notifications
You must be signed in to change notification settings - Fork 98
Add Sharkey (Misskey-family) interoperability smoke tests #659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
| # | ||
| # Interoperability smoke tests for Sharkey (Misskey fork). | ||
| # Uses Caddy TLS proxies because Sharkey requires HTTPS for all ActivityPub | ||
| # federation lookups (hardcoded in checkHttps() and WebFingerService). | ||
| # See: https://github.com/fedify-dev/fedify/issues/654 | ||
| name: smoke-sharkey | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - next | ||
| - "*.*-maintenance" | ||
| schedule: | ||
| - cron: "0 6 * * *" | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| smoke: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 25 | ||
|
|
||
| env: | ||
| COMPOSE: >- | ||
| docker compose | ||
| -f test/smoke/sharkey/docker-compose.yml | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: ./.github/actions/setup-mise | ||
|
|
||
| - name: Generate TLS certificates | ||
| run: bash test/smoke/sharkey/generate-certs.sh test/smoke/sharkey/.certs | ||
|
|
||
| - name: Verify certificates | ||
| run: | | ||
| openssl verify -CAfile test/smoke/sharkey/.certs/ca.crt \ | ||
| test/smoke/sharkey/.certs/fedify-harness.crt | ||
| openssl verify -CAfile test/smoke/sharkey/.certs/ca.crt \ | ||
| test/smoke/sharkey/.certs/sharkey.crt | ||
|
|
||
| - name: Pull Sharkey image | ||
| run: | | ||
| docker pull registry.activitypub.software/transfem-org/sharkey:2025.4.6 | ||
|
|
||
| - name: Pre-cache harness dependencies | ||
| run: deno cache test/smoke/harness/main.ts | ||
|
|
||
| - name: Start database and redis | ||
| run: | | ||
| $COMPOSE up -d db redis | ||
| $COMPOSE exec -T db \ | ||
| sh -c 'until pg_isready -U sharkey; do sleep 1; done' | ||
|
|
||
| - name: Start Sharkey stack | ||
| run: $COMPOSE up --wait | ||
| timeout-minutes: 12 | ||
|
|
||
| - name: Provision Sharkey | ||
| run: bash test/smoke/sharkey/provision.sh | ||
|
|
||
| - name: Verify connectivity | ||
| run: | | ||
| echo "=== Harness health (from sharkey-web-backend, via Caddy TLS) ===" | ||
| $COMPOSE exec -T \ | ||
| -e NODE_EXTRA_CA_CERTS=/tmp/ca-bundle.crt \ | ||
| sharkey-web-backend \ | ||
| node -e "fetch('https://fedify-harness/_test/health').then(r=>{if(!r.ok)process.exit(1);return r.text()}).then(console.log)" | ||
| echo " OK" | ||
|
|
||
| - name: Run smoke tests | ||
| run: | | ||
| set -a && source test/smoke/.env.test && set +a | ||
| deno run --allow-net --allow-env --unstable-temporal \ | ||
| test/smoke/orchestrator.ts | ||
|
|
||
| - name: Collect logs on failure | ||
| if: failure() | ||
| run: | | ||
| echo "=== Docker Compose logs ===" | ||
| $COMPOSE logs --tail=500 | ||
|
|
||
| - name: Teardown | ||
| if: always() | ||
| run: $COMPOSE down -v | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| auto_https off | ||
| } | ||
|
|
||
| :443 { | ||
| tls /certs/fedify-harness.crt /certs/fedify-harness.key | ||
| reverse_proxy fedify-harness-backend:3001 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| auto_https off | ||
| } | ||
|
|
||
| :443 { | ||
| tls /certs/sharkey.crt /certs/sharkey.key | ||
| reverse_proxy sharkey-web-backend:3000 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Sharkey configuration for smoke tests. | ||
|
|
||
| url: https://sharkey | ||
| port: 3000 | ||
|
|
||
| db: | ||
| host: db | ||
| port: 5432 | ||
| db: sharkey | ||
| user: sharkey | ||
| pass: sharkey | ||
|
|
||
| redis: | ||
| host: redis | ||
| port: 6379 | ||
|
|
||
| id: aidx | ||
|
|
||
| # Allow Docker-internal traffic (private IPs, both IPv4 and IPv6) | ||
| allowedPrivateNetworks: | ||
| - 0.0.0.0/0 | ||
| - ::/0 | ||
sij411 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # Require signatures on ActivityPub GET requests (strict mode) | ||
| signToActivityPubGet: true | ||
|
|
||
| # Setup password used for initial admin account creation via API | ||
| setupPassword: smoke-test-setup | ||
|
|
||
| # Disable unnecessary features for smoke tests | ||
| clusterLimit: 1 | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.