azerothcore-wotlk icon indicating copy to clipboard operation
azerothcore-wotlk copied to clipboard

feat(CI): rework core ubuntu build, ubuntu-22 support

Open michaeldelago opened this issue 2 years ago • 7 comments

Changes Proposed:

This PR proposes changes to:

  • [ ] Core (units, players, creatures, game systems).
  • [ ] Scripts (bosses, spell scripts, creature scripts).
  • [ ] Database (SAI, creatures, etc).
  • [x] CI

This pull request reworks the "core_build" CI to:

  • both PCH and no-PCH builds are executed for the latest clang and GCC versions for both ubuntu 20 and 22
  • remove layers of abstraction in the CI process
    • At the moment, the CI process calls scripts in apps/ci/ when then calls further shell scripts distributed in the apps dir
    • CI that runs scripts that in turn runs scripts can make it difficult to make changes and to recognize the scope of changes
    • This PR aims to reduce some of that complexity by directly running commands as opposed to through abstractions

Issues Addressed:

  • Supersedes https://github.com/azerothcore/azerothcore-wotlk/pull/17096

SOURCE:

The changes have been validated through:

  • [ ] Live research (checked on live servers, e.g Classic WotLK, Retail, etc.)
  • [ ] Sniffs (remember to share them with the open source community!)
  • [ ] Video evidence, knowledge databases or other public sources (e.g forums, Wowhead, etc.)
  • [ ] The changes promoted by this pull request come partially or entirely from another project (cherry-pick). Cherry-picks must be committed using the proper --author tag in order to be accepted, thus crediting the original authors, unless otherwise unable to be found

Tests Performed:

This PR has been:

  • [ ] Tested in-game by the author.
  • [ ] Tested in-game by other community members/someone else other than the author/has been live on production servers.
  • [x] This pull request requires further testing and may have edge cases to be tested.

CI is one of the most tedious things to test :upside_down_face:

How to Test the Changes:

  • [ ] This pull request can be tested by following the reproduction steps provided in the linked issue
  • [ ] This pull request requires further testing. Provide steps to test your changes. If it requires any specific setup e.g multiple players please specify it as well.
  1. run the ci

Known Issues and TODO List:

  • [ ]
  • [ ]

How to Test AzerothCore PRs

When a PR is ready to be tested, it will be marked as [WAITING TO BE TESTED].

You can help by testing PRs and writing your feedback here on the PR's page on GitHub. Follow the instructions here:

http://www.azerothcore.org/wiki/How-to-test-a-PR

REMEMBER: when testing a PR that changes something generic (i.e. a part of code that handles more than one specific thing), the tester should not only check that the PR does its job (e.g. fixing spell XXX) but especially check that the PR does not cause any regression (i.e. introducing new bugs).

For example: if a PR fixes spell X by changing a part of code that handles spells X, Y, and Z, we should not only test X, but we should test Y and Z as well.

michaeldelago avatar Sep 17 '23 04:09 michaeldelago

Havent checked it yet. But make sure that the modules build dont run by default

Kitzunu avatar Sep 17 '23 08:09 Kitzunu

Why was ubuntu-build skipped here?

Kitzunu avatar Sep 17 '23 16:09 Kitzunu

I completely forgot about this PR and life had a bunch of stuff going on

Will be re-visiting it this weekend

michaeldelago avatar Oct 05 '23 01:10 michaeldelago

hows it going

Kitzunu avatar Nov 12 '23 16:11 Kitzunu

oh there's actually a bug in github actions lol

https://github.com/actions/runner-images/issues/8659

michaeldelago avatar Nov 12 '23 19:11 michaeldelago

this has FINALLY been properly updated and put into a working state.

I've updated the description of the PR to help describe changes being made in the PR.

michaeldelago avatar Feb 10 '24 20:02 michaeldelago

excellent work @michaeldelago

FrancescoBorzi avatar Feb 16 '24 12:02 FrancescoBorzi

just checking if this is still good to merge as we speak?

elthehablo avatar Mar 24 '24 15:03 elthehablo

Bah, I thought this got merged. It should be good to do so unless something has changed.

I'm out of the country at the moment, I'll wait until I return to merge in case it needs babysitting. Anyone else, feel free to merge if they'd like.

On Sun, Mar 24, 2024, 4:13 PM Dan @.***> wrote:

just checking if this is still good to merge as we speak?

— Reply to this email directly, view it on GitHub https://github.com/azerothcore/azerothcore-wotlk/pull/17281#issuecomment-2016840555, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH2CPHN34MIJ3CORL4UIBCLYZ3UQ5AVCNFSM6AAAAAA43LANTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHA2DANJVGU . You are receiving this because you were mentioned.Message ID: @.***>

michaeldelago avatar Mar 24 '24 15:03 michaeldelago

Bah, I thought this got merged. It should be good to do so unless something has changed.

I'm out of the country at the moment, I'll wait until I return to merge in case it needs babysitting. Anyone else, feel free to merge if they'd like.

On Sun, Mar 24, 2024, 4:13 PM Dan @.***> wrote:

just checking if this is still good to merge as we speak?

— Reply to this email directly, view it on GitHub https://github.com/azerothcore/azerothcore-wotlk/pull/17281#issuecomment-2016840555, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH2CPHN34MIJ3CORL4UIBCLYZ3UQ5AVCNFSM6AAAAAA43LANTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHA2DANJVGU . You are receiving this because you were mentioned.Message ID: @.***>

Gotcha thanks for the reply

elthehablo avatar Mar 24 '24 15:03 elthehablo

Are we in a position to merge this?

pangolp avatar Mar 27 '24 01:03 pangolp

On latest PRs Ubuntu nopch build fails and complains that precompiled headers need to be updated.

Is this related to this PR? 👀

Edit: e.g. #18620

sudlud avatar Mar 29 '24 06:03 sudlud

On latest PRs Ubuntu nopch build fails and complains that precompiled headers need to be updated.

Is this related to this PR? 👀

The truth is I don't know.

pangolp avatar Mar 29 '24 15:03 pangolp