Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite Most of the Python Matrix #74

Merged
merged 4 commits into from
Sep 19, 2024

Conversation

iguessthislldo
Copy link
Member

@iguessthislldo iguessthislldo commented Sep 11, 2024

The old code relied on parsing the autobuild output like the scoreboard, but because it's a different parser it could have different results. It now uses JSON output from scoreboard to get all of the information it needs.

Also:

  • Converted existing code to Python 3 using autopep8 to fix indentation and various other style issues then 2to3 to convert most Python2-only code to Python3.
  • Completely-removed database parts and anything that doesn't look useful anymore.
  • Scoreboard:
  • Add .editorconfig file.
  • Some misc cleanup

TODO:

  • Fix minor issues with matrix appearance
  • Add test
  • Add screenshots
  • Address TODOs in code

This was done using https://github.com/hhatto/autopep8 to fix
indentation and various issues then
https://docs.python.org/3.10/library/2to3.html.

I only tested that `GenerateTestMatrix.py` was still working. I don't
think it would be easy to test anything else.

Also:
- Correct usage of executable bits, shebangs, `__name__ == "__main__"`
  on Python scripts.
- Change `sys.path` code to allow running from any directory.
- Add `.editorconfig` file.
- Some misc cleanup
The old code relied on parsing the autobuild output like the scoreboard,
but because it's a different parser it can have different results. It
now uses JSON output from scoreboard to get all of the information it
needs.

Also completely-removed database parts and anything that doesn't look
useful anymore.
@iguessthislldo iguessthislldo changed the title Convert Test Matrix to Python3 Rewrite Most of the Python Matrix Sep 12, 2024
- Status box links to output of tests
- Test name links to source code
- Add skip counts
- Add time

- Also:
    - Control header name of index page in scoreboard.pl
    - Don't exit with status on with -i or -z options of scoreboard.pl
@iguessthislldo iguessthislldo marked this pull request as ready for review September 18, 2024 18:28
@jrw972 jrw972 merged commit 609a44d into DOCGroup:master Sep 19, 2024
1 check passed
@iguessthislldo iguessthislldo deleted the igtd/test-matrix branch September 23, 2024 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Main page header should be updated
2 participants