-
Notifications
You must be signed in to change notification settings - Fork 0
chore: speed-up of CI tests #46
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
Open
HardMax71
wants to merge
36
commits into
main
Choose a base branch
from
ci-speedup
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+8,200
−10,542
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
9b5c186
wait instead of curl polling, + coverage_core=sysmon
HardMax71 da86acc
dokcer compose, waiting for user_seed to complete before starting
HardMax71 c86129f
compose profiles, simpler deploy
HardMax71 094ddbf
caching
HardMax71 6fc929b
bitnami version fix
HardMax71 3613d03
bitnami version fix
HardMax71 0bc30dc
bitnami version fix
HardMax71 7cf4eb0
bitnami version fix
HardMax71 df27af4
brought unit tests back
HardMax71 d8988d6
brought unit tests back
HardMax71 98a8347
tests fix
HardMax71 2ec7474
monitor tests fix
HardMax71 e5eab6d
k8s integration -> e2e, also update pytest marks
HardMax71 a5949f5
motor -> pymongo
HardMax71 e5f43ef
motor -> pymongo
HardMax71 5271c64
motor -> pymongo
HardMax71 4c9ee1a
fixes
HardMax71 702b60e
test scope fixes
HardMax71 2797283
test scope fixes
HardMax71 58ef8d7
test scope fixes
HardMax71 144bbe5
default test loop scope = session
HardMax71 25338cf
coverage core + renames of fixtures
HardMax71 6280365
moved k8s tests to e2e, fixed inconsistencies in user settings
HardMax71 6b26179
further fixes
HardMax71 4c1f919
Introduce domain exception hierarchy for transport-agnostic services
HardMax71 d559aaa
mypy+ruff fixes
HardMax71 2adf2df
mypy+ruff fixes
HardMax71 f076c14
mypy+ruff fixes
HardMax71 9216e88
structural logging+doc added
HardMax71 b450a35
search_text field unification in events
HardMax71 78d5727
removed filter_fields hardcoded stuff from replay endpoints
HardMax71 50fd50e
removed extra conversion function from replay api
HardMax71 a3f7daa
database context simplification (use beanie instead of direct pymongo…
HardMax71 21bdba1
resource usage refactoring
HardMax71 1303d80
fixes, new changes
HardMax71 dcda01d
ruff + unit tests fixes
HardMax71 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| name: 'Docker Image Cache' | ||
| description: 'Cache and load Docker images for CI jobs' | ||
|
|
||
| inputs: | ||
| images: | ||
| description: 'Space-separated list of Docker images to cache' | ||
| required: true | ||
|
|
||
| runs: | ||
| using: 'composite' | ||
| steps: | ||
| - name: Generate cache key from images | ||
| id: cache-key | ||
| shell: bash | ||
| env: | ||
| IMAGES_INPUT: ${{ inputs.images }} | ||
| run: | | ||
| # Create a stable hash from the sorted image list | ||
| # Using env var to prevent script injection | ||
| IMAGES_HASH=$(echo "$IMAGES_INPUT" | tr ' ' '\n' | sort | md5sum | cut -d' ' -f1) | ||
| echo "key=docker-${{ runner.os }}-${IMAGES_HASH}" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Cache Docker images | ||
| uses: actions/cache@v5 | ||
| id: docker-cache | ||
| with: | ||
| path: /tmp/docker-cache | ||
| key: ${{ steps.cache-key.outputs.key }} | ||
|
|
||
| - name: Load cached Docker images | ||
| if: steps.docker-cache.outputs.cache-hit == 'true' | ||
| shell: bash | ||
| run: | | ||
| echo "Loading cached images..." | ||
| for f in /tmp/docker-cache/*.tar.zst; do | ||
| zstd -d -c "$f" | docker load & | ||
| done | ||
| wait | ||
| docker images | ||
|
|
||
| - name: Pull and save Docker images | ||
| if: steps.docker-cache.outputs.cache-hit != 'true' | ||
| shell: bash | ||
| env: | ||
| IMAGES_INPUT: ${{ inputs.images }} | ||
| run: | | ||
| mkdir -p /tmp/docker-cache | ||
|
|
||
| echo "Pulling images in parallel..." | ||
| for img in $IMAGES_INPUT; do | ||
| docker pull "$img" & | ||
| done | ||
| wait | ||
|
|
||
| echo "Saving images with zstd compression..." | ||
| for img in $IMAGES_INPUT; do | ||
| # Create filename from image name (replace special chars) | ||
| filename=$(echo "$img" | tr '/:' '_') | ||
| docker save "$img" | zstd -T0 -3 > "/tmp/docker-cache/${filename}.tar.zst" & | ||
| done | ||
| wait | ||
|
|
||
| echo "Cache size:" | ||
| du -sh /tmp/docker-cache/ | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.