Skip to content

Make a bigger test database #60

@riki-pedia

Description

@riki-pedia

make a bigger test database

i havent made a template yet?

description

the current FreeTube test .db files aren't big enough to cover a full suite of videos or properly load test an instance. we need to grow the test suite

solution (proposed)

expand the database with more ndjson entries. example from history.db:

{"videoId":"QZfH7cFp3Ys","title":"Twenty One Pilots - The Contract (Official Video)","author":"twenty one pilots","authorId":"UCBQZwaNPFfJ1gZ1fLZpAEGw","published":1749686400000,"description":"truncated for simplicity","viewCount":12400951,"lengthSeconds":265,"watchProgress":264.541,"timeWatched":1752798414477,"isLive":false,"type":"video","_id":"MmsHIe3eWuHsjhSy"}
{"videoId":"3sO-Y1Zbft4","title":"Twenty One Pilots - Shy Away (Official Video)","author":"twenty one pilots","authorId":"UCBQZwaNPFfJ1gZ1fLZpAEGw","published":1617815465000,"description":"truncated for simplicity","viewCount":57904168,"lengthSeconds":179,"watchProgress":179.009,"timeWatched":1752025271430,"isLive":false,"type":"video","_id":"beGbnbLMvTIFzP0J","lastViewedPlaylistId":"OLAK5uy_mWi58qXdT_91U-UbVdeUetIeOR09_tDH4","lastViewedPlaylistType":"invidious","lastViewedPlaylistItemId":null}

each entry needs to include:

  • the title
  • the videoid
  • the channel id (authorId)
  • the author

use the current files (located at {repo root}/.github/test/)
if you're unsure feel free to ask!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions