On Debian testing running on core i7 + 16 GB RAM, upgrading from 10.1.beta5 failed, due to a (series of) errors during the building of the documentation for plots : ECL complained to be unable to find Maxima. Removing the documentation and rebuilding it was ineffective.
What was efficient was dist-clean and rebuilding Sage from scratch. After reinstalling some optional packages (including pytest and some semi-related Python packages such as pandas and cmdstanpy), make ptestlong passed without any failure.
HTH,