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

fix: Drop unnecessary exit #48145

Merged
merged 6 commits into from
Sep 18, 2024
Merged

Conversation

artonge
Copy link
Contributor

@artonge artonge commented Sep 17, 2024

This is making the CI stop for no good reason.

Signed-off-by: Louis Chemineau <louis@chmn.me>
@artonge artonge marked this pull request as ready for review September 17, 2024 15:33
@artonge artonge self-assigned this Sep 17, 2024
@artonge artonge added bug 3. to review Waiting for reviews feature: dav php Pull requests that update Php code CI labels Sep 17, 2024
@artonge artonge added this to the Nextcloud 31 milestone Sep 17, 2024
@come-nc
Copy link
Contributor

come-nc commented Sep 17, 2024

I will push commits here to fix the tests if needed because I broke at least ServerTest in the mean time.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@provokateurin
Copy link
Member

Looks like it also hid some errors from the PR that caused this @artonge

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Some are still failing

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc
Copy link
Contributor

come-nc commented Sep 17, 2024

Tests from #47986 were completely broken, I fix the most obvious errors but for the rest I leave it up to @icewind1991 or anyone willing.

@come-nc
Copy link
Contributor

come-nc commented Sep 17, 2024

PHP Fatal error:  Cannot redeclare print_exception() (previously declared in /home/runner/actions-runner/_work/server/server/core/templates/xml_exception.php:8) in /home/runner/actions-runner/_work/server/server/core/templates/xml_exception.php on line 8
Script phpunit --configuration tests/phpunit-autotest.xml handling the test event returned with error code 255
Script @composer run test -- --group DB,SLOWDB handling the test:db event returned with error code 255

@come-nc
Copy link
Contributor

come-nc commented Sep 17, 2024

PHP Fatal error:  Cannot redeclare print_exception() (previously declared in /home/runner/actions-runner/_work/server/server/core/templates/xml_exception.php:8) in /home/runner/actions-runner/_work/server/server/core/templates/xml_exception.php on line 8
Script phpunit --configuration tests/phpunit-autotest.xml handling the test event returned with error code 255
Script @composer run test -- --group DB,SLOWDB handling the test:db event returned with error code 255

This is from apps/dav/tests/unit/Connector/Sabre/RequestTest/UploadTest.php but I do not understand the issue.

@cfiehe
Copy link

cfiehe commented Sep 18, 2024

Tests from #47986 were completely broken, I fix the most obvious errors but for the rest I leave it up to @icewind1991 or anyone willing.

@come-nc
Thanks for fixing and sorry for the trouble. The test runs were blocked on my fork, otherwise I would have tried to fix the issues before. I have not found a way to get them running locally. Is there any way to see, if the new tests succeed or still cause trouble?

@come-nc
Copy link
Contributor

come-nc commented Sep 18, 2024

Tests from #47986 were completely broken, I fix the most obvious errors but for the rest I leave it up to @icewind1991 or anyone willing.

@come-nc Thanks for fixing and sorry for the trouble. The test runs were blocked on my fork, otherwise I would have tried to fix the issues before. I have not found a way to get them running locally. Is there any way to see, if the new tests succeed or still cause trouble?

They still fail, you cannot see the failures in CI yet because there is a crash but @artonge just fixed it so next run should show them hopefully.
You should be able to run them locally with: ./autotest.sh sqlite tests/lib/Files/ObjectStore/
I do not remember if composer install first is needed and if it is enough to setup phpunit though.

Signed-off-by: Louis Chemineau <louis@chmn.me>
@artonge artonge force-pushed the artonge/fix/drop_unecessary_exit branch from a02b7bc to 4e75a3c Compare September 18, 2024 07:31
@nickvergessen nickvergessen merged commit cd3256b into master Sep 18, 2024
156 of 186 checks passed
@nickvergessen nickvergessen deleted the artonge/fix/drop_unecessary_exit branch September 18, 2024 08:42
@come-nc
Copy link
Contributor

come-nc commented Sep 18, 2024

@artonge the exit drop needs to be backported I think?

@kesselb
Copy link
Contributor

kesselb commented Sep 18, 2024

/backport to stable30

@kesselb
Copy link
Contributor

kesselb commented Sep 18, 2024

/backport to stable29

@kesselb
Copy link
Contributor

kesselb commented Sep 18, 2024

/backport to stable28

@icewind1991
Copy link
Member

Tests from #47986 were completely broken, I fix the most obvious errors but for the rest I leave it up to @icewind1991 or anyone willing.

@come-nc Thanks for fixing and sorry for the trouble. The test runs were blocked on my fork, otherwise I would have tried to fix the issues before. I have not found a way to get them running locally. Is there any way to see, if the new tests succeed or still cause trouble?

They still fail, you cannot see the failures in CI yet because there is a crash but @artonge just fixed it so next run should show them hopefully. You should be able to run them locally with: ./autotest.sh sqlite tests/lib/Files/ObjectStore/ I do not remember if composer install first is needed and if it is enough to setup phpunit though.

#48160 fixes them

@artonge
Copy link
Contributor Author

artonge commented Sep 18, 2024

/backport d2bf361 to stable30

@artonge
Copy link
Contributor Author

artonge commented Sep 18, 2024

/backport d2bf361 to stable29

@artonge
Copy link
Contributor Author

artonge commented Sep 18, 2024

/backport d2bf361 to stable28

Copy link

backportbot bot commented Sep 18, 2024

The backport to stable30 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable30
git pull origin stable30

# Create the new backport branch
git checkout -b backport/48145/stable30

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick d2bf3613

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/48145/stable30

Error: Failed to create pull request: Validation Failed: {"resource":"PullRequest","code":"custom","message":"A pull request already exists for nextcloud:backport/48145/stable30."}


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Copy link

backportbot bot commented Sep 18, 2024

The backport to stable29 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable29
git pull origin stable29

# Create the new backport branch
git checkout -b backport/48145/stable29

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick d2bf3613

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/48145/stable29

Error: Failed to create pull request: Validation Failed: {"resource":"PullRequest","code":"custom","message":"A pull request already exists for nextcloud:backport/48145/stable29."}


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Copy link

backportbot bot commented Sep 18, 2024

The backport to stable28 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable28
git pull origin stable28

# Create the new backport branch
git checkout -b backport/48145/stable28

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick d2bf3613

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/48145/stable28

Error: Failed to create pull request: Validation Failed: {"resource":"PullRequest","code":"custom","message":"A pull request already exists for nextcloud:backport/48145/stable28."}


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@icewind1991
Copy link
Member

#48205 for a backport that includes all the fixes needed to get ci green

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews backport-request bug CI feature: dav php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants