ci: Pinning the server build runs to Ubuntu 22.04 because of Flapdoodle errors (#38723)

## Description
Flapdoodle, our Mongo embedded testing library throws errors when
running Junit tests on Ubuntu 24.04. This is because of a mismatch of
openssl version from Ubuntu 22.04 to Ubuntu 24.04. Hence pinning our CI
for server builds to Ubuntu 22.04 for now. Will issue a holistic fix
with Flapdoodle upgrade later.

## Automation

/ok-to-test tags=""

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]  
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.

<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
- Updated GitHub Actions workflow configurations for server build and
integration tests
- Migrated workflow environments from `ubuntu-latest-8-cores` to
`ubuntu-22.04-8core`
	- Refined workflow logic for test execution and artifact management

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Arpit Mohan 2025-01-17 11:43:37 +05:30 committed by GitHub
parent 1963a9a27d
commit 42b8a564fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 96 additions and 99 deletions

View File

@ -51,7 +51,7 @@ defaults:
jobs: jobs:
server-unit-tests: server-unit-tests:
runs-on: ubuntu-latest-8-cores runs-on: ubuntu-22.04-8core
# Service containers to run with this job. Required for running tests # Service containers to run with this job. Required for running tests
services: services:
@ -302,7 +302,6 @@ jobs:
exit 1 exit 1
fi fi
# Set status = failedtest # Set status = failedtest
- name: Set fail if there are test failures - name: Set fail if there are test failures
if: failure() if: failure()

View File

@ -17,7 +17,7 @@ on:
jobs: jobs:
run-tests: run-tests:
runs-on: ubuntu-latest-8-cores runs-on: ubuntu-22.04-8core
if: | if: |
github.event.pull_request.head.repo.full_name == github.repository || github.event.pull_request.head.repo.full_name == github.repository ||
github.event_name == 'workflow_dispatch' github.event_name == 'workflow_dispatch'
@ -104,5 +104,3 @@ jobs:
# Run tests and capture logs # Run tests and capture logs
cd app/server cd app/server
mvn verify -DskipUTs=true "${args[@]}" | tee mvn_integration_test.log mvn verify -DskipUTs=true "${args[@]}" | tee mvn_integration_test.log