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

check current expected to fail files for closed issues #716

Closed
8 tasks done
individual-it opened this issue Jan 25, 2022 · 8 comments
Closed
8 tasks done

check current expected to fail files for closed issues #716

individual-it opened this issue Jan 25, 2022 · 8 comments
Assignees
Labels

Comments

@individual-it
Copy link
Member

individual-it commented Jan 25, 2022

If the test still fails then there is either a problem in the test code (fix the code) or the test fails for some other reason (reorder the test)

@individual-it
Copy link
Member Author

the expected-to-fail linter could also do the checks for us

@SagarGi
Copy link
Member

SagarGi commented Jul 25, 2022

List of issues that are closed but still exist in expected-to-failure:

  1. No robots.txt available ocis#1314 (@SagarGi )

  2. Creating a new folder which is a substring of Shares leads to "Unknown Error" ocis#3033 (@SagarGi )

  3. Getting content of a shared file with same name returns 500  ocis#3880 (@kiranparajuli589)

  4. Use GraphAPI for creating/deleting users and groups in acceptance test ocis#3167 (@kiranparajuli589)

@amrita-shrestha
Copy link

there may be still some test mentioned that is not connected to an issue
Some refactored in this PR (owncloud/ocis#4527)

@SagarGi
Copy link
Member

SagarGi commented Sep 15, 2022

Regarding to update expected-to-fail linter to report the closed issue, we have 2 script (run.sh and lint-expected-failures.sh). run.sh calls the lint-expected-failure.sh for linting and itself checks linting for expected to failures. These run in each pipiline while running tests. So may be we do not wanna lint to check for closed issue in expexted-to-failure file in each Pipiline.

A way could be adding a pipeline only to check or lint if there are any closed issue that are still in expected to failure file.

Also one cons could be after all the closed issue has been fixed it can be a pipeline that is of no use (Since it makes API request to get the state of issue.)

NOTE: I will be trying to find out if there is another way to do it

@individual-it @phil-davis @saw-jan @grgprarup

@phil-davis
Copy link
Contributor

The problem with putting a check in a CI pipeline is that, if someone closes an issue in GitHub that still has expected-failures then suddenly the CI of the repo will go red. That will be really annoying for developers (and everybody).

We can make a script that parses an expected-failures file(s), finds each issue link, then does a curl API request to GitHub and finds out the status of each issue. Then it reports all issues that are closed. A script like that can be run locally whenever we like, and then we can manually decide what to do about those issues.

@SagarGi
Copy link
Member

SagarGi commented Sep 15, 2022

The problem with putting a check in a CI pipeline is that, if someone closes an issue in GitHub that still has expected-failures then suddenly the CI of the repo will go red. That will be really annoying for developers (and everybody).

We can make a script that parses an expected-failures file(s), finds each issue link, then does a curl API request to GitHub and finds out the status of each issue. Then it reports all issues that are closed. A script like that can be run locally whenever we like, and then we can manually decide what to do about those issues.

sure !!!

@SagarGi
Copy link
Member

SagarGi commented Sep 23, 2022

All the work realated to isse have been merged. So may be we can closed this @amrita-shrestha @saw-jan. Please close it.

@saw-jan
Copy link
Member

saw-jan commented Sep 23, 2022

OKey. Closing here!

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

No branches or pull requests

6 participants