Skip to content

Commit 421b1dc

Browse files
committed
feat: Add a local-debug target (to make for easier debugging)
With this you can make small tweaks to the OpenAPI spec and then run the following to see the impact: ``` speakeasy run --skip-testing --skip-upload-spec --skip-versioning --target=local-debug ```
1 parent 547796b commit 421b1dc

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

.speakeasy/workflow.lock

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.554.1
1+
speakeasyVersion: 1.555.1
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
@@ -13,6 +13,20 @@ sources:
1313
sourceBlobDigest: sha256:caa5ffc81b230bfbba8f7861b0eac961f47c18be02a5cf1d4f7bd51bc734c419
1414
tags:
1515
- latest
16+
Local Glean API:
17+
sourceNamespace: local-glean-api
18+
sourceRevisionDigest: sha256:7a6d9eb7f238b47a96f666ea337c55f2ff41c1d033c3781b159451dfaa27ac68
19+
sourceBlobDigest: sha256:490084863e541d217246ad7a409dfb2b73ffd1f13bae9685c5f623c0fdc3175c
20+
tags:
21+
- latest
22+
- 0.9.0
23+
local-debug:
24+
sourceNamespace: local-debug
25+
sourceRevisionDigest: sha256:dbfa89dd68466b7e44d30a80ca46245606beb1756239a8fbe1031d91cbe583f3
26+
sourceBlobDigest: sha256:5b5f71c799c2809f38dd5f0b917d24b5879d21a1b0b30a3062c99f6d453b02ee
27+
tags:
28+
- latest
29+
- 0.9.0
1630
targets:
1731
glean:
1832
source: Glean API
@@ -21,6 +35,16 @@ targets:
2135
sourceBlobDigest: sha256:490084863e541d217246ad7a409dfb2b73ffd1f13bae9685c5f623c0fdc3175c
2236
codeSamplesNamespace: glean-api-specs-python-code-samples
2337
codeSamplesRevisionDigest: sha256:63af6d316a76a6ac296df7db15ec3c116ae02f65042e3ba96be403a14fb09e3f
38+
local-debug:
39+
source: local-debug
40+
sourceNamespace: local-debug
41+
sourceRevisionDigest: sha256:dbfa89dd68466b7e44d30a80ca46245606beb1756239a8fbe1031d91cbe583f3
42+
sourceBlobDigest: sha256:5b5f71c799c2809f38dd5f0b917d24b5879d21a1b0b30a3062c99f6d453b02ee
43+
local-glean:
44+
source: Local Glean API
45+
sourceNamespace: local-glean-api
46+
sourceRevisionDigest: sha256:7a6d9eb7f238b47a96f666ea337c55f2ff41c1d033c3781b159451dfaa27ac68
47+
sourceBlobDigest: sha256:490084863e541d217246ad7a409dfb2b73ffd1f13bae9685c5f623c0fdc3175c
2448
workflow:
2549
workflowVersion: 1.0.0
2650
speakeasyVersion: latest
@@ -29,6 +53,11 @@ workflow:
2953
inputs:
3054
- location: registry.speakeasyapi.dev/glean-el2/sdk/glean-api-specs
3155
output: .speakeasy/glean-merged-spec.yaml
56+
local-debug:
57+
inputs:
58+
- location: .speakeasy/glean-merged-spec.yaml
59+
registry:
60+
location: registry.speakeasyapi.dev/glean-el2/sdk/local-debug
3261
targets:
3362
glean:
3463
target: python
@@ -44,3 +73,12 @@ workflow:
4473
blocking: false
4574
testing:
4675
enabled: true
76+
local-debug:
77+
target: python
78+
source: local-debug
79+
codeSamples:
80+
labelOverride:
81+
fixedValue: Python (API Client)
82+
blocking: false
83+
testing:
84+
enabled: true

.speakeasy/workflow.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ sources:
55
inputs:
66
- location: registry.speakeasyapi.dev/glean-el2/sdk/glean-api-specs
77
output: .speakeasy/glean-merged-spec.yaml
8+
local-debug:
9+
inputs:
10+
- location: .speakeasy/glean-merged-spec.yaml
11+
registry:
12+
location: registry.speakeasyapi.dev/glean-el2/sdk/local-debug
813
targets:
914
glean:
1015
target: python
@@ -20,3 +25,12 @@ targets:
2025
blocking: false
2126
testing:
2227
enabled: true
28+
local-debug:
29+
target: python
30+
source: local-debug
31+
codeSamples:
32+
labelOverride:
33+
fixedValue: Python (API Client)
34+
blocking: false
35+
testing:
36+
enabled: true

0 commit comments

Comments
 (0)