How long should an A/B test be?

Usually, newer videos are recommended by the YouTube algorithm. So a newer video has a quicker feedback(more impressions) and so, a short A/B test is optimal.

Longer A/B tests if you are A/B testing an older video.

But keep experimenting with long and short A/B tests for newer and older videos!