Skip to content

Commit 0f1bc82

Browse files
Merge pull request #29 from gleanwork/rwjblue/push-uysxxnksmlxn
chore(speakeasy): Configure speakeasy tests
2 parents 636e5eb + b46101d commit 0f1bc82

36 files changed

+519
-418
lines changed

.github/workflows/test.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
# NOTE: when ran from a fork, the secrets will not be available -- just skip the
13+
# job instead of failing
14+
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'workflow_dispatch'
15+
16+
env:
17+
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Set up mise
23+
uses: jdx/mise-action@v2
24+
with:
25+
cache: true
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Setup Speakeasy CLI
30+
uses: gleanwork/open-api/.github/actions/speakeasy-setup@main
31+
with:
32+
github-token: ${{ secrets.GITHUB_TOKEN }}
33+
34+
# run the glean target specified in .speakeasy/workflow.yaml
35+
- run: speakeasy test --target glean
36+
37+
- name: Publish Test Results
38+
uses: dorny/test-reporter@v1
39+
if: ${{ !cancelled() }} # run even if prior step failed
40+
with:
41+
name: Speakeasy Tests
42+
path: './.speakeasy/reports/tests.xml'
43+
reporter: java-junit

.speakeasy/gen.lock

Lines changed: 18 additions & 18 deletions
Large diffs are not rendered by default.

.speakeasy/glean-merged-spec.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9272,11 +9272,16 @@ components:
92729272
runCount:
92739273
$ref: "#/components/schemas/CountInfo"
92749274
description: This tracks how many times this prompt template was run. If user runs a prompt template after modifying the original one, it still counts as a run for the original template.
9275-
WorkflowMutableProperties:
9275+
WorkflowDraftableProperties:
92769276
properties:
92779277
name:
92789278
type: string
92799279
description: The name of the workflow.
9280+
WorkflowMutableProperties:
9281+
type: object
9282+
allOf:
9283+
- $ref: "#/components/schemas/WorkflowDraftableProperties"
9284+
- type: object
92809285
WorkflowMetadata:
92819286
allOf:
92829287
- type: object

.speakeasy/workflow.lock

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
speakeasyVersion: 1.555.2
1+
speakeasyVersion: 1.555.1
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:8fa342ea4c0f50e32d7b0930df581e4f4ec000f1f36a429c40f6ccc3f72c0b6b
6-
sourceBlobDigest: sha256:914ea4a50d56c4ac1ef7a111f11756bfd8c21bd1c652b817b729ca8706a0afc7
5+
sourceRevisionDigest: sha256:8e2d79c193d7d522db0b1817c101317269b4303fe62398cd206f47b62bf13aa7
6+
sourceBlobDigest: sha256:317f3701feac64292f15f9c705d91ebacd1168fc2b2c29548a67f51b77189824
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1748993191
109
Glean Client API:
1110
sourceNamespace: glean-client-api
1211
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
@@ -17,10 +16,10 @@ targets:
1716
glean:
1817
source: Glean API
1918
sourceNamespace: glean-api-specs
20-
sourceRevisionDigest: sha256:8fa342ea4c0f50e32d7b0930df581e4f4ec000f1f36a429c40f6ccc3f72c0b6b
21-
sourceBlobDigest: sha256:914ea4a50d56c4ac1ef7a111f11756bfd8c21bd1c652b817b729ca8706a0afc7
19+
sourceRevisionDigest: sha256:8e2d79c193d7d522db0b1817c101317269b4303fe62398cd206f47b62bf13aa7
20+
sourceBlobDigest: sha256:317f3701feac64292f15f9c705d91ebacd1168fc2b2c29548a67f51b77189824
2221
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:74861ef8ca5de61f14037c5c7aa54891c396b1d198d3e180f03ade0523a40d74
22+
codeSamplesRevisionDigest: sha256:38daa09fcc08430b42c527a3325478333bf123fbc4e178ec364cddbda1582359
2423
workflow:
2524
workflowVersion: 1.0.0
2625
speakeasyVersion: latest

docs/models/workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
| Field | Type | Required | Description | Example |
77
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
8+
| `name` | *Optional[str]* | :heavy_minus_sign: | The name of the workflow. | |
89
| `author` | [Optional[models.Person]](../models/person.md) | :heavy_minus_sign: | N/A | {<br/>"name": "George Clooney",<br/>"obfuscatedId": "abc123"<br/>} |
910
| `create_timestamp` | *Optional[int]* | :heavy_minus_sign: | Server Unix timestamp of the creation time. | |
1011
| `last_update_timestamp` | *Optional[int]* | :heavy_minus_sign: | Server Unix timestamp of the last update time. | |
1112
| `last_updated_by` | [Optional[models.Person]](../models/person.md) | :heavy_minus_sign: | N/A | {<br/>"name": "George Clooney",<br/>"obfuscatedId": "abc123"<br/>} |
1213
| `permissions` | [Optional[models.ObjectPermissions]](../models/objectpermissions.md) | :heavy_minus_sign: | N/A | |
13-
| `name` | *Optional[str]* | :heavy_minus_sign: | The name of the workflow. | |
1414
| `id` | *Optional[str]* | :heavy_minus_sign: | The ID of the workflow. | |

docs/sdks/datasources/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ with Glean(
2323
api_token=os.getenv("GLEAN_API_TOKEN", ""),
2424
) as g_client:
2525

26-
g_client.indexing.datasources.add(name="<value>", datasource_category=models.DatasourceCategory.UNCATEGORIZED, url_regex="https://example-company.datasource.com/.*", quicklinks=[
26+
g_client.indexing.datasources.add(name="<value>", url_regex="https://example-company.datasource.com/.*", quicklinks=[
2727
{
2828
"icon_config": {
2929
"color": "#343CED",
@@ -32,7 +32,7 @@ with Glean(
3232
"name": "user",
3333
},
3434
},
35-
], trust_url_regex_for_view_activity=True, strip_fragment_in_canonical_url=True, is_entity_datasource=False, is_test_datasource=False)
35+
])
3636

3737
# Use the SDK ...
3838

0 commit comments

Comments
 (0)