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

ci: use of ubuntu 22.04 #191

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build-lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env:
jobs:
build-lint-and-unit-test:
name: Build, lint and run unit tests
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -48,7 +48,7 @@ jobs:

scylla-integration-tests:
name: Scylla ITs
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [build-lint-and-unit-test]
timeout-minutes: 90

Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
path: ${{ env.CCM_LOGS_PATTERN }}

cassandra-integration-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [build-lint-and-unit-test]

strategy:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
jobs:
build-rpm-pkgs:
name: Build rpm packages
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
container:
image: fedora:latest
# Required by `mock`:
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:

build-deb-pkgs:
name: Build deb packages
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ CASSANDRA_TEST_FILTER := $(subst ${SPACE},${EMPTY},ClusterTests.*\
endif

ifndef CCM_COMMIT_ID
export CCM_COMMIT_ID := 81076bce792a0fb3f2050e4c209a93e4a62ab55f
export CCM_COMMIT_ID := master
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't do that. it can lead to unpredictable failures.

Copy link
Collaborator

@Lorak-mmk Lorak-mmk Oct 15, 2024

Choose a reason for hiding this comment

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

CCM is mostly used by our internal repos. It is updated often, to keep up with changes to Scylla.
If we don't use latest version then

  • bugs in ccm will be unnoticed, instead of being quickly reported. CCM doesn't have good test suite, so being used in other projects is a main way to test it.
  • it will lead to even harder to debug failures when our hardcoded version stops working with new scylla

In Python Driver we use master, and it doesn't cause problems.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree with Karol.

Copy link
Collaborator

Choose a reason for hiding this comment

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

You could say the exact same thing about ubuntu-latest, couldn't you ?

Copy link
Collaborator Author

@muzarski muzarski Oct 15, 2024

Choose a reason for hiding this comment

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

But runner images are not maintained by Scylla. ccm is a different matter - as Karol mentioned, it's a great way to test scylla-ccm itself. When an issue arises, we can inform scylla-ccm maintainers about it. If there is no quick fix for the issue, nothing stops us from hardcoding the ccm version in CI in the future.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Only on GH runners using ubuntu-24.04. When I tried same commands on local docker ubuntu-24.04 container, everything worked as expected.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ubuntu-24.04 GH runner image seems to be still unstable (https://github.com/actions/runner-images/issues). I don't think it's an issue with ccm (but I may be wrong).

Copy link
Collaborator

Choose a reason for hiding this comment

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

what I mean is this, test and build environment is a function of many variables, if you set all of them to constant you going to have constant results, more variables are variable more chances you have for it to fail.
ccm can have best test suit in the world, but if it is not tested against exact environement you are running on, you going to have a chance for it to fail.
Having that said, I don't see any gains in pointing ccm to master, only loses.

Copy link
Collaborator

@Lorak-mmk Lorak-mmk Oct 15, 2024

Choose a reason for hiding this comment

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

The gain is that

  • We help find and fix bugs in ccm, which is a benefit for us, and any other repo that uses ccm.
  • We don't gain debt by staying on years-old versions (let's be honest, no one is going to remember to update the commit sha regularly)
  • If someone updates it, then they need to deal with new bugs anyway - so we either deal with problems, or stay on ancient version
  • If we stay on ancient version, it is going to break at some point because of new scylla version - and then it will be much harder to fix compared to always being on master

Copy link
Collaborator

@dkropachev dkropachev Oct 15, 2024

Choose a reason for hiding this comment

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

The gain is that

  • We help find and fix bugs in ccm, which is a benefit for us, and any other repo that uses ccm.

Following this logic we need to run tests on scylla:master to help find bugs there too, why don't we do that ?
There is only one proper place for it - ccm repo and cicd.

  • We don't gain debt by staying on years-old versions (let's be honest, no one is going to remember to update the commit sha regularly)

You don't need to, unless it does not provide functionality you need or don't work on new scylla image.
And when it happens, you are going to have nice flow of issue -> PR connected together and you will be able to see reasoning why has ccm version changed.
Opposite to silent update and no way to reason why tests are failing localy while working ok on cicd.

  • If someone updates it, then they need to deal with new bugs anyway - so we either deal with problems, or stay on ancient version
  • If we stay on ancient version, it is going to break at some point because of new scylla version - and then it will be much harder to fix compared to always being on master

But at least you will have exact reason why and what is failing, oposite to the case when cicd starts failing on a new PR, while you have not changed anything just because some bug slipped through cracks in ccm cicd.

endif

ifndef SCYLLA_VERSION
Expand Down