Now-playing interop check (phase 4, step 7)
CI / validate-monitoring (push) Successful in 9s
CI / lint (push) Successful in 13s
CI / federation-interop (push) Successful in 1m37s
CI / test (push) Successful in 3m33s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 5s
CI / validate-monitoring (push) Successful in 9s
CI / lint (push) Successful in 13s
CI / federation-interop (push) Successful in 1m37s
CI / test (push) Successful in 3m33s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 5s
Extends the GoToSocial driver's second phase: run.sh seeds a
now-playing track alongside the scrobble it already seeds for the
weekly summary; the driver turns now_playing_mode on via the settings
API, then polls GoToSocial's own stored copy of the account (not a
fresh resolve() fetch) for a "Now playing" field, confirming the
periodic Update(Person) push actually reached and updated their cache
- not just that we sent something.
Verified against a real GoToSocial 0.22.1 container locally before
pushing:
Now playing: 'Interop Now Playing by Interop Artist'
All post interop checks passed
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
This commit is contained in:
1 parent
f3d2b5d578
commit
9883111fa1
2 files changed
+29
-2
No files matched your search
@@ -42,19 +42,21 @@ if [ $status -ne 0 ]; then
|
||||
exit $status
|
||||
fi
|
||||
|
||||
echo "==> Alice scrobbles something, for the weekly summary to have content"
|
||||
echo "==> Alice scrobbles something, for the weekly summary to have content, and is playing something now"
|
||||
"$compose" exec -T api python3 -c "
|
||||
from datetime import UTC, datetime
|
||||
from scrobbler import create_app
|
||||
from scrobbler.config import Config
|
||||
from scrobbler.extensions import db
|
||||
from scrobbler.models import Scrobble, User
|
||||
from scrobbler.services.scrobbles import TrackInput, update_now_playing
|
||||
|
||||
app = create_app(Config)
|
||||
with app.app_context():
|
||||
user = db.session.scalar(db.select(User).filter_by(username='alice'))
|
||||
db.session.add(Scrobble(user_id=user.id, artist='Interop Artist', track='Interop Track', played_at=datetime.now(UTC)))
|
||||
db.session.commit()
|
||||
update_now_playing(user, TrackInput(artist='Interop Artist', track='Interop Now Playing'))
|
||||
"
|
||||
|
||||
echo "==> Posting alice's weekly summary immediately"
|
||||
|
||||
Reference in new issue
Block a user