-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial setup for splitting composer packages (#682)
* Fix package name * Add composer config for jaeger thrift * Fix autoload path * Add dependency on generated packages * Add gitsplit config * Add gitsplit action * Add make target for gitsplit
- Loading branch information
Showing
10 changed files
with
93 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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,23 @@ | ||
name: gitsplit | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- split | ||
release: | ||
types: [published] | ||
create: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
gitsplit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
run: git clone "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" "$GITHUB_WORKSPACE" && cd "$GITHUB_WORKSPACE" && git checkout $GITHUB_SHA | ||
- name: Split repositories | ||
uses: docker://jderusse/gitsplit:latest | ||
with: | ||
args: gitsplit | ||
env: | ||
GH_TOKEN: ${{ secrets.GITSPLIT_TOKEN }} |
This file contains 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,30 @@ | ||
# Path to a cache directory Used to speed up the split over time by reusing git's objects | ||
cache_url: "/cache/gitsplit" | ||
|
||
# Path to the repository to split (default = current path) | ||
project_url: "https://github.com/open-telemetry/opentelemetry-php.git" | ||
|
||
# List of splits. | ||
splits: | ||
- prefix: "proto/otel" | ||
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/gen-otlp-protobuf.git" | ||
- prefix: "thrift/jaeger" | ||
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/gen-jaeger-thrift.git" | ||
- prefix: "src/Context" | ||
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/context.git" | ||
- prefix: "src/SemConv" | ||
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/sem-conv.git" | ||
- prefix: "src/API" | ||
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/api.git" | ||
- prefix: "src/SDK" | ||
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/sdk.git" | ||
- prefix: "src/Contrib" | ||
target: "https://${GH_TOKEN}@github.com/opentelemetry-php/sdk-contrib.git" | ||
|
||
# List of references to split (defined as regexp) | ||
origins: | ||
- ^main$ | ||
- ^test$ | ||
- ^split$ | ||
- ^v\d+\.\d+\.\d+$ | ||
- ^\d+\.\d+\.\d+$ |
This file contains 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
This file contains 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,9 @@ | ||
version: '3.7' | ||
services: | ||
gitsplit: | ||
image: jderusse/gitsplit | ||
volumes: | ||
- ../../:/srv | ||
- ../../var/cache/gitsplit:/cache/gitsplit | ||
environment: | ||
GH_TOKEN: ${GITSPLIT_TOKEN:-''} |
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
}, | ||
"autoload": { | ||
"psr-4": { | ||
"OpenTelemetry\\API\\": "" | ||
"OpenTelemetry\\API\\": "." | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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,22 @@ | ||
{ | ||
"name": "open-telemetry/gen-jaeger-thrift", | ||
"description": "PHP Thrift files for communication with Jaeger.", | ||
"keywords": ["opentelemetry", "otel", "tracing", "jaeger", "thrift"], | ||
"type": "library", | ||
"license": "Apache-2.0", | ||
"authors": [ | ||
{ | ||
"name": "opentelemetry-php contributors", | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.4 || ^8.0", | ||
"packaged/thrift": "^0.15.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Jaeger\\Thrift\\": "." | ||
} | ||
} | ||
} |