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

chore: move third party notices generation to Semaphore promotion #1054

Merged
merged 3 commits into from
Feb 20, 2025
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
2 changes: 1 addition & 1 deletion .semaphore/multi-arch-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: v1.0
name: multi-arch-packaging
agent:
machine:
type: s1-prod-ubuntu20-04-amd64-1
type: s1-prod-ubuntu24-04-amd64-1

auto_cancel:
running:
Expand Down
16 changes: 5 additions & 11 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: v1.0
name: build-test-release
agent:
machine:
type: s1-prod-ubuntu20-04-amd64-1
type: s1-prod-ubuntu24-04-amd64-1

auto_cancel:
running:
Expand Down Expand Up @@ -133,18 +133,12 @@ blocks:
- export GIT_BRANCH=$SEMAPHORE_GIT_BRANCH
- make validate-bump

- name: "Update third party notices PR"
dependencies: ["Bump microversion"]
run:
when: "branch =~ '.*' and change_in(['/package.json', '/NOTICE.txt', '/scripts/notices/NOTICE-vsix_PREAMBLE.txt'], {default_branch: 'main', branch_range: '$SEMAPHORE_GIT_COMMIT_RANGE', pipeline_file: 'ignore'})"
task:
jobs:
- name: "Update Third Party Notices PR"
commands:
- make update-third-party-notices-pr

promotions:
- name: Multi-Arch VSIX Packaging and Upload
pipeline_file: multi-arch-packaging.yml
auto_promote:
when: "result = 'passed' and branch =~ '.*' and change_in('/release.svg', {pipeline_file: 'ignore', branch_range: '$SEMAPHORE_GIT_COMMIT_RANGE', default_branch: 'main'})"
- name: Third Party Notices
pipeline_file: third-party-notices.yml
auto_promote:
when: "branch =~ '.*' and change_in(['/package.json', '/NOTICE.txt', '/scripts/notices/NOTICE-vsix_PREAMBLE.txt'], {default_branch: 'main', branch_range: '$SEMAPHORE_GIT_COMMIT_RANGE', pipeline_file: 'ignore'})"
38 changes: 38 additions & 0 deletions .semaphore/third-party-notices.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: v1.0
name: third-party-notices
agent:
machine:
type: s1-prod-ubuntu24-04-amd64-1

auto_cancel:
running:
when: "branch != 'main'"

execution_time_limit:
hours: 1

queue:
- when: "branch != 'main'"
processing: parallel

global_job_config:
env_vars:
- name: NODE_ENV
value: "production"

blocks:
- name: "Update third party notices PR"
run:
when: "branch =~ '.*'"
task:
prologue:
commands:
- checkout
jobs:
- name: "Update third party notices PR"
dependencies: []
task:
jobs:
- name: "Update Third Party Notices PR"
commands:
- make update-third-party-notices-pr