Skip to content

Conversation

@nickvergessen
Copy link
Member

  • ci: Run things we only run on 1 PHP version on the preinstalled 8.1 which installs ~2m faster
  • ci: Don't run things normally and with coverage flag on the same configuration

@nickvergessen nickvergessen added the 3. to review Waiting for reviews label Aug 27, 2024
@nickvergessen nickvergessen added this to the Nextcloud 31 milestone Aug 27, 2024
@nickvergessen nickvergessen self-assigned this Aug 27, 2024
Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

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

looks good to me, hope github images move to 24.04 soon :)

Comment on lines -48 to 51
matrix:
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2']
include:
- php-versions: '8.3'
coverage: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure whether the include will not add back 8.3?
Also, would prefer 8.1,8.3 over 8.1,8.2.

Copy link
Contributor

Choose a reason for hiding this comment

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

I misunderstood how include works, according to the description of the PR 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

This change here will result in:

  • PHP 8.1 coverage ❌
  • PHP 8.2 coverage ❌
  • PHP 8.3 coverage ✅

Copy link
Member Author

@nickvergessen nickvergessen Aug 27, 2024

Choose a reason for hiding this comment

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

Not sure whether the include will not add back 8.3?

It will and that's exactly the fix. We ran 8.3 (and in other cases 8.2) twice. Once with the coverage flag and once without. But the only difference is whether we generate and upload the report, so we can remove the 8.3 run that is duplicated by the run that also uploads the coverage report

@solracsf
Copy link
Member

Question: why don't use ubuntu-20.04 image which has all php versions pre-installed?

https://github.com/shivammathur/setup-php?tab=readme-ov-file#github-hosted-runners

@susnux
Copy link
Contributor

susnux commented Aug 27, 2024

Question: why don't use ubuntu-20.04 image which has all php versions pre-installed?

Because we use self-hosted runners ;)

Copy link
Member

@st3iny st3iny left a comment

Choose a reason for hiding this comment

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

🚀

@nickvergessen nickvergessen merged commit a51e041 into master Aug 27, 2024
@nickvergessen nickvergessen deleted the ci/noid/lighter branch August 27, 2024 17:40
@nickvergessen
Copy link
Member Author

/backport to stable30

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants