Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make semaphore pipeline run less frequently, reduce machine sizes, avoid clearing cache #362

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

Merged
milindl merged 13 commits into master from cost_reduction
Sep 25, 2025
Merged
Changes from 8 commits
Commits
Show all changes
13 commits
Select commit Hold shift + click to select a range
3c687eb
Make semaphore pipeline run less frequently, reduce machine sizes, av...
milindl Sep 2, 2025
3528b03
Fix change_in
milindl Sep 2, 2025
3c1c48a
Add pipeline ignore temporarily to change in
milindl Sep 2, 2025
ce4657c
Test changes for change_in pipeline
milindl Sep 2, 2025
d39013b
Test changes for change_in pipeline - 2
milindl Sep 2, 2025
c57409c
Remove /deps - change in deps will be change in util.js also, so it's...
milindl Sep 2, 2025
9d9e06d
Don't make pipelines run repeatedly on master when they're running on...
milindl Sep 2, 2025
8fbe5d3
Remove testing changes
milindl Sep 2, 2025
f494729
Add cache store/restore
milindl Sep 15, 2025
97077a5
Add cache store/restore - fix
milindl Sep 15, 2025
109edec
Add cache store/restore - if for public
milindl Sep 15, 2025
5c1ddbd
Remove unrequired workflows and use npm ci for alpine
milindl Sep 16, 2025
cce0e63
Use commit hash rather than version to avoid cloning
milindl Sep 17, 2025
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
31 changes: 22 additions & 9 deletions .semaphore/semaphore.yml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ global_job_config:
- git fetch origin
- git checkout v2.11.1
- cd ../../
- cache clear

blocks:
- name: "Linux amd64 (musl): Build and test"
run:
when: "change_in(['/package.json', '/lib', '/src', '/test']) AND tag !~ '^v[0-9]\\.' AND branch != 'master'"
dependencies: [ ]
task:
agent:
machine:
type: s1-prod-ubuntu24-04-amd64-2
type: s1-prod-ubuntu24-04-amd64-1
prologue:
commands:
- '[[ -z $DOCKERHUB_APIKEY ]] || docker login --username $DOCKERHUB_USER --password $DOCKERHUB_APIKEY'
Expand All @@ -48,6 +49,8 @@ blocks:
- docker run -v "$(pwd):/v" node:18-alpine /v/.semaphore/build-docker-alpine.sh

- name: "Linux arm64 (musl): Build and test"
run:
when: "change_in(['/package.json', '/lib', '/src', '/test']) AND tag !~ '^v[0-9]\\.' AND branch != 'master'"
Copy link
Contributor

Choose a reason for hiding this comment

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

We should run tests on master commits as it's possible squash and merge succeeds and there are no conflicts but code isn't rebased before that.

milindl reacted with thumbs up emoji
dependencies: [ ]
task:
agent:
Expand All @@ -61,12 +64,14 @@ blocks:
commands:
- docker run -v "$(pwd):/v" node:18-alpine /v/.semaphore/build-docker-alpine.sh

- name: "Linux arm64: Build and test"
- name: "Linux amd64: Build and test"
run:
when: "change_in(['/package.json', '/lib', '/src', '/test']) AND tag !~ '^v[0-9]\\.' AND branch != 'master'"
dependencies: [ ]
task:
agent:
machine:
type: s1-prod-ubuntu24-04-arm64-1
type: s1-prod-ubuntu24-04-amd64-1
jobs:
- name: "Build from source and test"
commands:
Expand All @@ -75,6 +80,8 @@ blocks:
- make test

- name: 'macOS arm64/m1: Build and test'
run:
when: "change_in(['/package.json', '/lib', '/src', '/test']) AND tag !~ '^v[0-9]\\.' AND branch != 'master'"
dependencies: []
task:
agent:
Expand All @@ -87,12 +94,14 @@ blocks:
- npm run install-from-source
- make test

- name: "Linux amd64: Build, test, lint, docs"
- name: "Linux arm64: Build, test, lint, docs"
skip:
when: "tag =~ '^v[0-9]\\.'"
dependencies: [ ]
task:
agent:
machine:
type: s1-prod-ubuntu24-04-amd64-2
type: s1-prod-ubuntu24-04-arm64-1
prologue:
commands:
- export CKJS_LINKING=dynamic
Expand Down Expand Up @@ -125,11 +134,13 @@ blocks:
- make docs

- name: "(SR) Linux amd64: test, e2e"
run:
when: "change_in(['/package.json', '/schemaregistry', '/schemaregistry-examples', '/proto']) AND tag !~ '^v[0-9]\\.'"
dependencies: [ ]
task:
agent:
machine:
type: s1-prod-ubuntu24-04-amd64-2
type: s1-prod-ubuntu24-04-amd64-1
prologue:
commands:
- npm install
Expand All @@ -146,6 +157,8 @@ blocks:
- make integtest

- name: "Linux amd64: Performance"
run:
when: "change_in(['/package.json', '/lib', '/src', '/ci/tests']) AND tag !~ '^v[0-9]\\.' AND branch != 'master'"
dependencies: [ ]
task:
agent:
Expand Down Expand Up @@ -188,7 +201,7 @@ blocks:
task:
agent:
machine:
type: s1-prod-ubuntu24-04-amd64-2
type: s1-prod-ubuntu24-04-amd64-1
env_vars:
- name: ARCHITECTURE
value: "x64"
Expand Down Expand Up @@ -476,7 +489,7 @@ blocks:
task:
agent:
machine:
type: s1-prod-ubuntu24-04-amd64-2
type: s1-prod-ubuntu24-04-amd64-1
jobs:
- name: "Tarball"
commands:
Expand Down

AltStyle によって変換されたページ (->オリジナル) /