Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

[tests-only] [full-ci] [WIP] Run CI against latest oC10 release - #5782

Closed
phil-davis wants to merge 7 commits into
masterfrom
run-ci-against-oc10-latest
Closed

phil-davis wants to merge 7 commits into
masterfrom
run-ci-against-oc10-latest

Conversation

@phil-davis

@phil-davis phil-davis commented Sep 6, 2021 •

Copy link
Copy Markdown
Contributor

Description

This is WIP. Firstly checking that we can just specify "latest" as an oC10 "server" and it will install and test against that.

ToDo:

  • sort out optionally running against oC10 core master by commit id
  • sort out what will happen with expected-failures files when we run against different core releases

Related Issue

Part of #5908

How Has This Been Tested?

CI

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • ...

@phil-davis phil-davis self-assigned this Sep 6, 2021
@phil-davis
phil-davis force-pushed the run-ci-against-oc10-latest branch 3 times, most recently from 3e6824c to 514b8e2 Compare September 9, 2021 11:35
@phil-davis phil-davis mentioned this pull request Sep 9, 2021
1 of 9 tasks
@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10SharingInternalGroupsSharingInd https://drone.owncloud.com/owncloud/web/18988/41/1
The following scenarios passed on retry:

  • webUISharingInternalGroupsSharingIndicator/shareWithGroups.feature:114

@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10SharingExternalRoot https://drone.owncloud.com/owncloud/web/18988/74/1
The following scenarios passed on retry:

  • webUISharingExternalToRoot/federationSharing.feature:356

@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10Files1 https://drone.owncloud.com/owncloud/web/18988/17/1
The following scenarios passed on retry:

  • webUIFilesActionMenu/versions.feature:36

@phil-davis

phil-davis commented Sep 9, 2021 •

Copy link
Copy Markdown
Contributor Author

https://drone.owncloud.com/owncloud/web/18988/18/14

runsh: Total unexpected failed scenarios throughout the test run:
webUIFavorites/favoritesFile.feature:74
  Scenario: navigate to the favorites page and back to files page using the menu # tests/acceptance/features/webUIFavorites/favoritesFile.feature:74
- Connecting to selenium on port 4444...

ℹ Connected to selenium on port 4444 (288ms).
  Using: chrome (92.0.4515.159) on Linux platform.

    Given user "Alice" has been created with default attributes and without skeleton files
    And user "Alice" has logged in using the webUI
√ Element <#user> was visible after 998 milliseconds.
√ Element <#user> was not present after 17 milliseconds.
√ Element <button[type=submit]> was visible after 44 milliseconds.
√ Element <button[type=submit]> was not present after 42 milliseconds.
√ Element <.oc-app-container> was visible after 1022 milliseconds.
    And the user has browsed to the files page
√ Element <//*[self::table[contains(@class, "files-table")] or self::div[contains(@class, "files-empty")] or self::div[contains(@class, "files-not-found")]]> was present after 668 milliseconds.
    Given the user has browsed to the favorites page using the webUI
√ Element <//nav[contains(@class, "oc-sidebar-nav")]/ul/li/a[contains(text(),"Favorites")]> was visible after 35 milliseconds.
√ Element <//*[self::table[contains(@class, "files-table")] or self::div[contains(@class, "files-empty")] or self::div[contains(@class, "files-not-found")]]> was visible after 89 milliseconds.
    When the user browses to the files page using the webUI
√ Element <//nav[contains(@class, "oc-sidebar-nav")]/ul/li/a[contains(text(),"All files")]> was visible after 38 milliseconds.
√ Element <//*[self::table[contains(@class, "files-table")] or self::div[contains(@class, "files-empty")] or self::div[contains(@class, "files-not-found")]]> was visible after 210 milliseconds.
    Then the count of files and folders shown on the webUI should be 1
√ Element <//p[@data-testid="files-list-footer-info"]> was visible after 34 milliseconds.
Failed [equal]: (3 == 1) - expected "1" but got: "3" (0ms)
undefined    ✖ failed
      Error while running "equal" command: Failed [equal]: (3 == 1) - expected "1" but got: "3" (0ms)
          at _callee45$ (/var/www/owncloud/web/tests/acceptance/stepDefinitions/filesContext.js:846:24)
          at asyncGeneratorStep (/var/www/owncloud/web/tests/acceptance/stepDefinitions/filesContext.js:93:103)
          at _next (/var/www/owncloud/web/tests/acceptance/stepDefinitions/filesContext.js:95:194)
          at runMicrotasks (<anonymous>)
          at processTicksAndRejections (internal/process/task_queues.js:95:5)

  Result: FAILED

That is the only scenario that behaved differently running against an oC10.8.0 server compared to oC10 master.

I can't immediately think why that would not work against an oC10.8.0 server.

@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10Files1 https://drone.owncloud.com/owncloud/web/18992/18/1
The following scenarios passed on retry:

  • webUIFilesActionMenu/versions.feature:36

@phil-davis

Copy link
Copy Markdown
Contributor Author

https://drone.owncloud.com/owncloud/web/18992/18/14
webUIFavorites/favoritesFile.feature:74 failed again - the same scenario. I will look tomorrow to try and understand what causes the fail.

@phil-davis
phil-davis force-pushed the run-ci-against-oc10-latest branch from 514b8e2 to 78ce90a Compare September 16, 2021 05:44
@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10SharingInternalGroupsSharingInd https://drone.owncloud.com/owncloud/web/19074/41/1
The following scenarios passed on retry:

  • webUISharingInternalGroupsToRootSharingIndicator/shareWithGroups.feature:104

@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10SharingExternalRoot https://drone.owncloud.com/owncloud/web/19074/74/1
The following scenarios passed on retry:

  • webUISharingExternalToRoot/federationSharing.feature:356

@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10Files1 https://drone.owncloud.com/owncloud/web/19074/17/1
The following scenarios passed on retry:

  • webUIFilesActionMenu/versions.feature:36

@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10Files1 https://drone.owncloud.com/owncloud/web/19074/18/1
The following scenarios passed on retry:

  • webUIFiles/breadcrumb.feature:10
  • webUIFilesActionMenu/versions.feature:15

@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10SharingExternal https://drone.owncloud.com/owncloud/web/19074/71/1
The following scenarios passed on retry:

  • webUISharingExternal/federationSharing.feature:363

@phil-davis
phil-davis force-pushed the run-ci-against-oc10-latest branch from 78ce90a to 482b9b7 Compare September 29, 2021 03:22
@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10SharingInternalGroupsSharingInd https://drone.owncloud.com/owncloud/web/19266/42/1
The following scenarios passed on retry:

  • webUISharingInternalGroupsToRootSharingIndicator/shareWithGroups.feature:104

@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10SharingInternalUsersSharingInd https://drone.owncloud.com/owncloud/web/19266/49/1
The following scenarios passed on retry:

  • webUISharingInternalUsersSharingIndicator/shareWithUsers.feature:154

@phil-davis
phil-davis force-pushed the run-ci-against-oc10-latest branch from 482b9b7 to 3da20a0 Compare September 30, 2021 07:34
@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10Files1 https://drone.owncloud.com/owncloud/web/19303/18/1
The following scenarios passed on retry:

  • webUIFilesActionMenu/versions.feature:36

@pascalwengerter

Copy link
Copy Markdown
Contributor

@phil-davis why not change the OC10 commit ID back to the one from the 10.8 release and revert all the fixes in OC10 expected failures? Then "the only thing to do" ™️ would be to swap the custom "building OC10 from source/master" with "pull OC10.8 docker image" and see if there's not maybe unexpected passes since we fixed stuff on the frontend?

@kulmann

kulmann commented Oct 6, 2021

Copy link
Copy Markdown
Contributor

@phil-davis any news on this?

@phil-davis
phil-davis force-pushed the run-ci-against-oc10-latest branch from 3da20a0 to a463196 Compare October 14, 2021 08:43
@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10iPhone1 https://drone.owncloud.com/owncloud/web/19631/84/1
The following scenarios passed on retry:

  • webUIDeleteFilesFolders/deleteFilesFolders.feature:59

@phil-davis
phil-davis force-pushed the run-ci-against-oc10-latest branch 2 times, most recently from a6c2c0d to 5230450 Compare October 14, 2021 12:56
@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10SharingExternalRoot https://drone.owncloud.com/owncloud/web/19653/74/1
The following scenarios passed on retry:

  • webUISharingExternalToRoot/federationSharing.feature:111

@phil-davis
phil-davis force-pushed the run-ci-against-oc10-latest branch from 5230450 to 40f0493 Compare October 14, 2021 14:24
@individual-it

Copy link
Copy Markdown
Member

the failure in the favorites looks unrelated
grafik

@phil-davis

Copy link
Copy Markdown
Contributor Author

the failure in the favorites looks unrelated

I agree - is there already an issue about that being flaky?

I also saw a failure of webUIFilesActionMenu/versions.feature:36

I rebased and squashed this PR just now. Let's see what suprises CI has got.

@individual-it

Copy link
Copy Markdown
Member

I agree - is there already an issue about that being flaky?

@phil-davis I guess its the same issue as #5853

@phil-davis

Copy link
Copy Markdown
Contributor Author

I agree - is there already an issue about that being flaky?

@phil-davis I guess its the same issue as #5853

Correct. Sadly, that PR has not been merged yet. I will add the skip to this PR, so that I don't get the problem. For this PR, I also have to sort out under which conditions we are going to run CI against oC latest and/or oC core master. So this PR won't get merged straight away either!

@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10SharingAccept https://drone.owncloud.com/owncloud/web/19656/16/1
The following scenarios passed on retry:

  • webUISharingAcceptSharesToRoot/acceptShares.feature:108

@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10SharingAccept https://drone.owncloud.com/owncloud/web/19656/15/1
The following scenarios passed on retry:

  • webUISharingAcceptSharesToRoot/acceptShares.feature:108

@phil-davis

Copy link
Copy Markdown
Contributor Author

Note: Scenario: navigate to the favorites page and back to files page using the menu
webUIFavorites/favoritesFile.feature:74

That was failing because it depended on a user that is created "without skeleton files" actually ending up with exactly 1 file at first login. That happens in oC10 master, because there is https://github.com/owncloud/core/blob/master/core/skeleton/welcome.txt - that gets loaded as the skeleton when no skeleton directory is defined. But in a real release tarball, some different default "no skeleton" skeleton files are provided, and there are 3 of them. So the test fails against an install from the 10.8.0 release tarball.

I adjusted the test so that it does not depend on the number of files.

@pascalwengerter

pascalwengerter commented Oct 14, 2021 •

Copy link
Copy Markdown
Contributor

I agree - is there already an issue about that being flaky?

@phil-davis I guess its the same issue as #5853

Correct. Sadly, that PR has not been merged yet. I will add the skip to this PR, so that I don't get the problem. For this PR, I also have to sort out under which conditions we are going to run CI against oC latest and/or oC core master. So this PR won't get merged straight away either!

@phil-davis please stick to #5908 (which this PR should close). We don't need to run the CI using a commit ID / against core master anymore at all, please switch to running it dockerized and against an official release label as we decided in the respective meeting some weeks ago and outlined in the issue

@phil-davis

Copy link
Copy Markdown
Contributor Author

This demonstrates what test code needs to be adjusted to get results with both oC10.8 and oC10 core master.

We still want to be able to test against oC10 core master when we want to check that - the logic in the drone starlark is capable of doing that anyway. We can decide if we want to do that in a drone "cron" run nightly, or weekly, or however often. We can do it on a regular schedule, or we can make a PR whenever we want that will run the tests against a current core master (for example, the daily-master-qa code)

I will adjust this PR to demonstrate running against daily-master-qa, and removing the core commit id reference.

Then we can decide exactly which test pipeline combinations to run in which situations.

Comment thread .drone.env
OCIS_COMMITID=b2c2416ae13e17b7bb5f2cc4e90459e79f4ecb2b
OCIS_BRANCH=master

# The test runner source for API tests

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note: this comment was not correct - this repo does not run core API tests.
CORE_COMMITID was actually used to specify the commit id in core from which to install oC10.

@phil-davis

Copy link
Copy Markdown
Contributor Author

Hmmm - that latest CI did not run any acceptance tests. I only added a bunch of daily-master-qa to the drone config.
Now to look at why that short-circuited the loop that generates acceptance test pipelines...

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@phil-davis

Copy link
Copy Markdown
Contributor Author

Hmmm - that latest CI did not run any acceptance tests. I only added a bunch of daily-master-qa to the drone config. Now to look at why that short-circuited the loop that generates acceptance test pipelines...

Pipeline names got too long. I added code to shorten daily-master-qa to just master, the same as we do in oC10 apps starlark.

@ownclouders

Copy link
Copy Markdown
Contributor

Results for oC10CreateDelete https://drone.owncloud.com/owncloud/web/19692/11/1
The following scenarios passed on retry:

  • webUIDeleteFilesFolders/deleteFilesFolders.feature:59

@phil-davis

Copy link
Copy Markdown
Contributor Author

Good - everything passes against core 10.8.0 and against core daily-master-qa

See PR #5909 for the squashed version of this that only runs the pipelines against latest

@phil-davis phil-davis mentioned this pull request Oct 15, 2021
1 of 9 tasks
@phil-davis phil-davis closed this Oct 15, 2021
@pascalwengerter
pascalwengerter deleted the run-ci-against-oc10-latest branch October 20, 2021 09:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants