Skip to content

Commit 5204436

Browse files
authored
chore(server)!: remove old '/binding' route (#1633)
Closes #1492.
1 parent 59eaeb2 commit 5204436

File tree

4 files changed

+4
-71
lines changed

4 files changed

+4
-71
lines changed

.github/workflows/bindings-server.main.kts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,6 @@ workflow(
8181

8282
cleanMavenLocal()
8383

84-
run(
85-
name = "Execute the script using the bindings from the server - with /binding",
86-
command = """
87-
mv .github/workflows/test-script-consuming-jit-bindings-old.main.do-not-compile.kts .github/workflows/test-script-consuming-jit-bindings-old.main.kts
88-
.github/workflows/test-script-consuming-jit-bindings-old.main.kts
89-
""".trimIndent(),
90-
)
91-
92-
cleanMavenLocal()
93-
9484
run(
9585
name = "Execute the script using the bindings from the server",
9686
command = """
@@ -109,15 +99,6 @@ workflow(
10999
""".trimIndent(),
110100
)
111101

112-
run(
113-
name = "Fetch maven-metadata.xml for top-level action - with /binding",
114-
command = "curl --fail http://localhost:8080/binding/actions/checkout/maven-metadata.xml | grep '<version>v4</version>'",
115-
)
116-
run(
117-
name = "Fetch maven-metadata.xml for nested action - with /binding",
118-
command = "curl --fail http://localhost:8080/binding/actions/cache__save/maven-metadata.xml | grep '<version>v4</version>'",
119-
)
120-
121102
run(
122103
name = "Fetch maven-metadata.xml for top-level action",
123104
command = "curl --fail http://localhost:8080/actions/checkout/maven-metadata.xml | grep '<version>v4</version>'",

.github/workflows/bindings-server.yaml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,36 +49,22 @@ jobs:
4949
name: 'Clean Maven Local to fetch required POMs again'
5050
run: 'rm -rf ~/.m2/repository/'
5151
- id: 'step-5'
52-
name: 'Execute the script using the bindings from the server - with /binding'
53-
run: |-
54-
mv .github/workflows/test-script-consuming-jit-bindings-old.main.do-not-compile.kts .github/workflows/test-script-consuming-jit-bindings-old.main.kts
55-
.github/workflows/test-script-consuming-jit-bindings-old.main.kts
56-
- id: 'step-6'
57-
name: 'Clean Maven Local to fetch required POMs again'
58-
run: 'rm -rf ~/.m2/repository/'
59-
- id: 'step-7'
6052
name: 'Execute the script using the bindings from the server'
6153
run: |-
6254
mv .github/workflows/test-script-consuming-jit-bindings.main.do-not-compile.kts .github/workflows/test-script-consuming-jit-bindings.main.kts
6355
.github/workflows/test-script-consuming-jit-bindings.main.kts
64-
- id: 'step-8'
56+
- id: 'step-6'
6557
name: 'Clean Maven Local to fetch required POMs again'
6658
run: 'rm -rf ~/.m2/repository/'
67-
- id: 'step-9'
59+
- id: 'step-7'
6860
name: 'Execute the script using bindings but without dependency on library'
6961
run: |-
7062
mv .github/workflows/test-served-bindings-depend-on-library.main.do-not-compile.kts .github/workflows/test-served-bindings-depend-on-library.main.kts
7163
.github/workflows/test-served-bindings-depend-on-library.main.kts
72-
- id: 'step-10'
73-
name: 'Fetch maven-metadata.xml for top-level action - with /binding'
74-
run: 'curl --fail http://localhost:8080/binding/actions/checkout/maven-metadata.xml | grep ''<version>v4</version>'''
75-
- id: 'step-11'
76-
name: 'Fetch maven-metadata.xml for nested action - with /binding'
77-
run: 'curl --fail http://localhost:8080/binding/actions/cache__save/maven-metadata.xml | grep ''<version>v4</version>'''
78-
- id: 'step-12'
64+
- id: 'step-8'
7965
name: 'Fetch maven-metadata.xml for top-level action'
8066
run: 'curl --fail http://localhost:8080/actions/checkout/maven-metadata.xml | grep ''<version>v4</version>'''
81-
- id: 'step-13'
67+
- id: 'step-9'
8268
name: 'Fetch maven-metadata.xml for nested action'
8369
run: 'curl --fail http://localhost:8080/actions/cache__save/maven-metadata.xml | grep ''<version>v4</version>'''
8470
deploy:

.github/workflows/test-script-consuming-jit-bindings-old.main.do-not-compile.kts

Lines changed: 0 additions & 22 deletions
This file was deleted.

jit-binding-server/src/main/kotlin/io/github/typesafegithub/workflows/jitbindingserver/Main.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,6 @@ fun main() {
3939
setOpenTelemetry(openTelemetry)
4040
}
4141
routing {
42-
// TODO: remove this route once known clients are migrated
43-
// See https://github.com/typesafegithub/github-workflows-kt/issues/1492
44-
route("/binding") {
45-
route("{owner}/{name}/{version}/{file}") {
46-
artifact(bindingsCache)
47-
}
48-
49-
route("{owner}/{name}/{file}") {
50-
metadata()
51-
}
52-
}
53-
5442
route("{owner}/{name}/{version}/{file}") {
5543
artifact(bindingsCache)
5644
}

0 commit comments

Comments
 (0)