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

Cypress tests fail on current server master branch #6812

Open
max-nextcloud opened this issue Dec 23, 2024 · 3 comments
Open

Cypress tests fail on current server master branch #6812

max-nextcloud opened this issue Dec 23, 2024 · 3 comments
Assignees
Labels
0. Needs triage bug Something isn't working tests If you write them we ♥ you

Comments

@max-nextcloud
Copy link
Collaborator

Describe the bug
All cypress tests are failing during login now.
See https://github.com/nextcloud/text/actions/runs/12450802475/job/34758294915 for an example.

Expected behavior
Cypress login should pass.

Screenshots
Image

Server details:
https://github.com/juliusknorr/nextcloud-docker-dev with latest server master branch checked out.

Logs

Nextcloud log (data/nextcloud.log)

{
  "reqId": "LCLulsgYvv8H2qLRWP00",
  "level": 0,
  "time": "2024-12-23T15:47:25+00:00",
  "remoteAddr": "192.168.23.4",
  "user": false,
  "app": "no app in context",
  "method": "GET",
  "url": "/index.php/apps/files",
  "message": "Current user is not logged in",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/13.6.4 Chrome/114.0.5735.289 Electron/25.8.4 Safari/537.36",
  "version": "31.0.0.6",
  "exception": {
    "Exception": "OC\\AppFramework\\Middleware\\Security\\Exceptions\\NotLoggedInException",
    "Message": "Current user is not logged in",
    "Code": 401,
    "Trace": [
      {
        "file": "/var/www/html/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php",
        "line": 73,
        "function": "beforeController",
        "class": "OC\\AppFramework\\Middleware\\Security\\SecurityMiddleware",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\\Files\\Controller\\ViewController"
          },
          "index"
        ]
      },
      {
        "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 106,
        "function": "beforeController",
        "class": "OC\\AppFramework\\Middleware\\MiddlewareDispatcher",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\\Files\\Controller\\ViewController"
          },
          "index"
        ]
      },
      {
        "file": "/var/www/html/lib/private/AppFramework/App.php",
        "line": 161,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\\Files\\Controller\\ViewController"
          },
          "index"
        ]
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 306,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OCA\\Files\\Controller\\ViewController",
          "index",
          {
            "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
          },
          {
            "_route": "files.view.index"
          }
        ]
      },
      {
        "file": "/var/www/html/lib/base.php",
        "line": 1019,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/apps/files"
        ]
      },
      {
        "file": "/var/www/html/index.php",
        "line": 24,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/var/www/html/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php",
    "Line": 134,
    "message": "Current user is not logged in",
    "exception": {},
    "CustomMessage": "Current user is not logged in"
  }
}

@max-nextcloud max-nextcloud added bug Something isn't working 0. Needs triage tests If you write them we ♥ you labels Dec 23, 2024
@max-nextcloud max-nextcloud self-assigned this Dec 23, 2024
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Office team Dec 23, 2024
@max-nextcloud max-nextcloud moved this from 🧭 Planning evaluation (don't pick) to 🏗️ In progress in 📝 Office team Dec 23, 2024
@juliusknorr
Copy link
Member

Might be nextcloud/server#49560

@enjeck
Copy link
Contributor

enjeck commented Dec 23, 2024

Happening on Tables too

Might be nextcloud/server#49560

Thats right. Checked out the commit before PR was merged and everything works fine

@max-nextcloud
Copy link
Collaborator Author

I'm looking into upgrading @nextcloud/cypress to benefit from nextcloud-libraries/nextcloud-cypress#703 .

But that updates cypress itself so i am trying to get rid of the resize observer loops so chromium won't crash anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage bug Something isn't working tests If you write them we ♥ you
Projects
Status: 🏗️ In progress
Development

No branches or pull requests

3 participants