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

Image Testing 2.0 #4

Merged
merged 76 commits into from
May 31, 2024
Merged

Image Testing 2.0 #4

merged 76 commits into from
May 31, 2024

Conversation

alexanderbock
Copy link
Member

This is an iteration of the previously existing image testing server. Instead of generated the webpage as the tests are finished, the application is now split up into two parts.

  1. The backend server hosts a webpage (https://regression.openspaceproject.com) that receives candidate images and will run the image testing against a known-good reference image. If a test is new, the first submission will be the reference image, but the reference image can also be updated through the user interface.

  2. The runner Python script can run on a multitude of machines, run tests against OpenSpace and then submit them to the backend for display.

For more information see the README.md file

Copy link
Member

@engbergandreas engbergandreas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very easy to run and get started 👍 Overall just some let to const for clarity

"difference-thumbnail", "log"
] as const;

const p: any = req.params;
Copy link
Member

@engbergandreas engbergandreas May 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably specify a type rather than any e.g., define

type Parameters =  {
    type: string;
    group: string;
    name: string; 
    hardware: string;
    timestamp: string || Date || number // or w/e type this is
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried but its gets really wordy to have any proper type information in here. Since the type would have to be of typeof types and then the req.params would have to be properly parsed which would result in worse error messages.

But if there is a better way for this, I'd be happy to see and have it

backend/src/api.ts Outdated Show resolved Hide resolved
backend/src/api.ts Outdated Show resolved Hide resolved
backend/src/api.ts Outdated Show resolved Hide resolved
backend/src/api.ts Outdated Show resolved Hide resolved
backend/src/testrecords.ts Show resolved Hide resolved
backend/src/testrecords.ts Show resolved Hide resolved
runner/testsuite/instruction.py Show resolved Hide resolved
backend/src/api.ts Outdated Show resolved Hide resolved



# TODO: Retry openspace api connection until it works
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking if this is something we should do in the API directly and then have an optional parameter in connect to specify retries ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, that'd be great

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
runner/main.py Show resolved Hide resolved
runner/main.py Show resolved Hide resolved
runner/testsuite/openspace.py Outdated Show resolved Hide resolved
runner/testsuite/openspace.py Outdated Show resolved Hide resolved
runner/testsuite/openspace.py Outdated Show resolved Hide resolved
alexanderbock and others added 6 commits May 22, 2024 10:47
Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
@alexanderbock alexanderbock merged commit 3206f05 into master May 31, 2024
@alexanderbock alexanderbock deleted the redesign branch May 31, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants