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

Run tests also on older server versions #738

Closed
wants to merge 1 commit into from
Closed

Conversation

tobiasKaminsky
Copy link
Member

Signed-off-by: tobiasKaminsky [email protected]

@tobiasKaminsky tobiasKaminsky force-pushed the oldServer branch 2 times, most recently from 1cbaf83 to 62e2caf Compare October 29, 2021 08:50
@tobiasKaminsky
Copy link
Member Author

@AlvaroBrey my idea is to test library on all NC server version down to NC16.
While developing this is of course not needed, so I think about something like a check if PR is approved and only then execute the entire NC21-NC16 checks.

What do you think?

@nextcloud-android-bot
Copy link
Collaborator

@nextcloud-android-bot
Copy link
Collaborator

Lint

TypemasterPR
Warnings23
Errors00

SpotBugs (new)

Warning Type Number
Bad practice Warnings 14
Correctness Warnings 38
Internationalization Warnings 6
Malicious code vulnerability Warnings 7
Multithreaded correctness Warnings 3
Performance Warnings 13
Security Warnings 1
Dodgy code Warnings 40
Total 122

SpotBugs (master)

Warning Type Number
Bad practice Warnings 14
Correctness Warnings 38
Internationalization Warnings 6
Malicious code vulnerability Warnings 7
Multithreaded correctness Warnings 3
Performance Warnings 13
Security Warnings 1
Dodgy code Warnings 40
Total 122

Lint increased!

@nextcloud-android-bot
Copy link
Collaborator

@AlvaroBrey
Copy link
Member

AlvaroBrey commented Oct 29, 2021

@AlvaroBrey my idea is to test library on all NC server version down to NC16. While developing this is of course not needed, so I think about something like a check if PR is approved and only then execute the entire NC21-NC16 checks.

What do you think?

We could use the 3.to release label for this I guess, that way we mark the PR as ready to merge, and trigger the older version checks.

Other options:

  • Run older versions only against master (merged PRs)
  • Run older versions on a cron job daily

@tobiasKaminsky
Copy link
Member Author

We could use the 3.to release label for this I guess, that way we mark the PR as ready to merge, and trigger the older version checks.

Nice idea, but I did not found a way how to notice drone.io about changed label/approved state.
Currently it seems we only listen on push
https://docs.drone.io/pipeline/triggers/

@AlvaroBrey
Copy link
Member

AlvaroBrey commented Oct 29, 2021

We could use the 3.to release label for this I guess, that way we mark the PR as ready to merge, and trigger the older version checks.

Nice idea, but I did not found a way how to notice drone.io about changed label/approved state. Currently it seems we only listen on push https://docs.drone.io/pipeline/triggers/

We can use a github action to detect the label and then trigger the build with the drone API.

Other option is to try to work out how to run the integration tests directly on github actions, which would make it easier and would allow us to use test matrix for server versions.

@tobiasKaminsky
Copy link
Member Author

Superseeded with #938

@tobiasKaminsky tobiasKaminsky deleted the oldServer branch July 12, 2022 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants