Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Report handler #31

Merged
merged 15 commits into from
Sep 27, 2020
Merged

Report handler #31

merged 15 commits into from
Sep 27, 2020

Conversation

zelzhan
Copy link
Collaborator

@zelzhan zelzhan commented Aug 31, 2020

Okay, so this is my last PR for the GSoC period. And the biggest one though.
So, what's new?

  • The sample platform now can handle files sent by the ccx_testsuite. This one took a lot of time.
  • Added functionality of test entry. Now it is possible to create the test case, select multiple output files, select the sample which has been uploaded to the platform.
  • Now when someone uploads the sample to the platform, the name, id, and path is saved to the db. Right now it is used for the dropdown selection on test-entry creation and xml generation.
  • Now the platform will generate the xml file according to the test entries that exist in the database. It will always mark as a correct output file the wrong.txt file so that ccx_testsuite will always upload the file to the platform
  • Added model called TestRun. It consists of all test entries that run for each PR/Commit.
  • Now program uses sha256 hashing, to hash the correct output files and check it against the output file which has been generated by the ccx_testsuite. If at least one of the hashes will be equal, the platform will mark this test entry as a success.
  • Added UI for the creation of the test-entry
  • Added UI to list all the test runs
  • Added Navbar for the basic navigation

Sorry for adding such a gigantic Pull Request, but I was running out of time and each of those features are blocking each other.

There needs to be done some more iterations on the project before it can be full integrated.
I have raised the following issues regarding the next steps:
#16 Make the categories not hardcoded and store in the db
#17 Functionality to create and delete category
#18 Functionality to modify existing test-entry.
#19 Add e2e tests testing
#20 Restrict the file extensions, when samples and output files are uploaded.
#21 Tslint configuration to handle console.debug
#22 Deep refactoring on frontend
#23 Increase test coverage
#24 Which CI on specific-test run are passed
#25 Add home page
#26 Redirect on sample upload
#27 Redirect on test entry creation
#28 Separate each test run artifacts from each other

Please refer to #30 for the detailed documentation.

Here is the small demo for my 3rd coding period on GSoC:
https://www.youtube.com/watch?v=G9_CkFo75oE&feature=youtu.be

@zelzhan zelzhan requested review from thealphadollar and canihavesomecoffee and removed request for thealphadollar August 31, 2020 16:40
config.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@thealphadollar thealphadollar left a comment

Choose a reason for hiding this comment

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

This looks fabulous, I would have loved smaller PRs because it is easier to review 😛

I've asked a few doubts, please find some time to respond.

@zelzhan
Copy link
Collaborator Author

zelzhan commented Sep 5, 2020

Sorry for being late for your responses. Having hard times because of my studies 🙂

@zelzhan
Copy link
Collaborator Author

zelzhan commented Sep 6, 2020

Now if in front of each entry, there is the status: was it successful or not. And if there are any of the test entries that fail, it will show that the test run was not successful.
ezgif com-video-to-gif (2)

Copy link
Collaborator

@thealphadollar thealphadollar left a comment

Choose a reason for hiding this comment

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

@zelzhan This PR looks good to be merged, can we please merge this?

A lot of great work has been done in this 🔥

@thealphadollar thealphadollar merged commit 27b11d6 into master Sep 27, 2020
@thealphadollar thealphadollar deleted the report_handler branch September 27, 2020 17:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants