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

Review API test output in OCIS #192

Closed
phil-davis opened this issue Aug 28, 2020 · 3 comments
Closed

Review API test output in OCIS #192

phil-davis opened this issue Aug 28, 2020 · 3 comments
Assignees

Comments

@phil-davis
Copy link

phil-davis commented Aug 28, 2020

The core API acceptance tests are run in OCIS repos to check how well the OCIS APIs conform to oC10 behavior. The OCIS repos sometimes do not (yet) provide "reasonably close" responses to what is returned by oC10.

Some of the test code assumes that a "reasonable" response is received, and starts to parse that and check the detail. And the test code gets some PHP error/notice/exception...

For example,
Notice: Undefined index: users in /srv/app/testrunner/tests/acceptance/features/bootstrap/ShareesContext.php line 152
was fixed in PR owncloud/core#37844

  • check the drone output of the pipeline steps that run the core API acceptance tests
  • look for fails that emit error/notice/exception messages, or where the failure message is not clear
  • improve the core acceptance test code so that it does better checks and emits more useful messages

Check in all 3 of cs3org/reva owncloud/ocis-reva and owncloud/ocis

The objective is to make it easier for developers to understand the test failures and be able to more quickly find where the problem is likely to be.

@haribhandari07
Copy link

@phil-davis, 3-4 days ago when I checked cs3org/reva, owncloud/ocis-reva and owncloud/ocis drone output, all the unclear error messages were covered by the above PRs. I haven't check the drone logs after the PR is merged. We may still get more "unclear error messages" as we unskip more api tests. So, what are we going to do with this issue? Check for "unclear error messages" everytime we unskip api tests?

@phil-davis
Copy link
Author

While trying to enable a lot more API tests, I added and refactored a lot of error messages:
owncloud/core#37868
owncloud/ocis-reva#415

I didn't look at the "normal" test runs in OCIS CI - I did test PRs to run all the tests that are not currently run.

If you don't see any other "bad error messages" in a normal OCIS CI run, then close this issue.

@haribhandari07
Copy link

As of now, there are no "bad error messages". So, closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants