Refactor the sanity checking code, again #15092
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This time, without regressions, hopefully.
The goal here remains the same, get more robust checking for all compiler classes with less code per class. I've folding up review from the previous attempt (which I don't think GitHub will let me reopen), as well as additional changes.
One of the things I discovered after reverting the last attempt is that transpiled languages aren't being tested at all, only the actual compiler is being tested, without the output from the transpiler. So in the Vala cases this means that C gets called with the C implementation's code, and then we call it good. This obviously isn't good, this is bad. For Vala this is a pretty straightforward fix. For Cython this is proving more difficult, especially for me who doesn't have a lot of experience with compiled Python modules.
This is marked as draft as there's still issues here to be solved, particularly around Cython. This also doesn't have the code that adds checking for Assembly.