In both cases it seems due to symlinks used on the build machines configurations (/srv → /var/lib and /scratch → /home) and a comparison between paths where symlinks are expanded and paths where they are not.
That is not a solution that scales. Not all environments can make the registry change for that. I think that the fix to lit to deal with the fact that python changed behaviour across versions is the correct thing.
I believe that they are looking for a way to reproduce the error so that they can fix the issue.
If you haven’t already, make sure to revert your patch that broke things. You should avoid leaving build bots in a broken state for any significant amount of time.
It’s quite possible that you won’t be able to recreate a buildbot’s environment. For example, I doubt that you’ve got a PowerPC architecture with AIX OS installed on it kicking around. Assuming you don’t and you can’t figure out what’s wrong just by reading the reports and the code, you will need to reach out to build bot owners, or others who have access to these configs in order to investigate the issue and try out a fix.
That being said, if you’re somewhat confident that a potential change will fix the issue, there’s nothing wrong in committing the fix. However, you shouldn’t do this blindly if you think there’s a reasonable chance it will make things worse.