Skip to content

Commit ef3ab0e

Browse files
authored
Merge branch 'main' into docs/plugins/instruments
2 parents a825df5 + d175fba commit ef3ab0e

File tree

25 files changed

+370
-230
lines changed

25 files changed

+370
-230
lines changed

.changeset/afraid-years-look.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'hive': patch
3+
---
4+
5+
Add pg index for getSchemaVersionByActionId to improve lookup performance

.changeset/witty-bags-deny.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'hive': minor
3+
---
4+
5+
Make `Target.graphqlEndpointUrl` available in public GraphQL API

.github/workflows/typescript-typecheck.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ jobs:
2222

2323
- uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
2424
with:
25-
version: 'v3.14.2'
25+
version: 'v3.18.1'
2626

2727
- name: install helm deps
28-
run: helm plugin install https://github.com/losisin/helm-values-schema-json.git
28+
run:
29+
helm plugin install https://github.com/losisin/helm-values-schema-json.git --version 1.8.0
2930

3031
- name: generate pulumi deps
3132
run: pnpm --filter hive generate

cypress/e2e/laboratory-preflight.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ describe('Execution', () => {
246246
// Run GraphiQL
247247
cy.intercept({ headers: preflightHeaders }).as('request');
248248
cy.get(selectors.graphiql.buttonExecute).click();
249-
cy.wait('@request');
249+
cy.wait('@request', { timeout: 10_000 });
250250
});
251251

252252
it('result.request.headers are NOT substituted with environment variables', () => {
@@ -282,7 +282,7 @@ describe('Execution', () => {
282282
},
283283
}).as('request');
284284
cy.get(selectors.graphiql.buttonExecute).click();
285-
cy.wait('@request');
285+
cy.wait('@request', { timeout: 10_000 });
286286
});
287287

288288
it('header placeholders are substituted with environment variables', () => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"ws@^8.0.0": "^8.18.0",
116116
"ws@*": ">=8.18.0 || >=7.5.10 || >=6.2.3 || >=5.2.4",
117117
"cookie@<0.7.0": "0.7.2",
118-
"tar-fs": "2.1.2",
118+
"tar-fs": "2.1.3",
119119
"ip": "npm:[email protected]",
120120
"miniflare@3>undici": "5.28.5"
121121
},

packages/libraries/cli/src/commands/schema/check.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as GraphQLSchema from '../../gql/graphql';
66
import { graphqlEndpoint } from '../../helpers/config';
77
import {
88
APIError,
9-
GithubCommitRequiredError,
9+
CommitRequiredError,
1010
GithubRepositoryRequiredError,
1111
InvalidTargetError,
1212
MissingEndpointError,
@@ -227,7 +227,7 @@ export default class SchemaCheck extends Command<typeof SchemaCheck> {
227227

228228
if (usesGitHubApp) {
229229
if (!commit) {
230-
throw new GithubCommitRequiredError();
230+
throw new CommitRequiredError();
231231
}
232232
if (!git.repository) {
233233
throw new GithubRepositoryRequiredError();

packages/libraries/cli/src/commands/schema/publish.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import * as GraphQLSchema from '../../gql/graphql';
77
import { graphqlEndpoint } from '../../helpers/config';
88
import {
99
APIError,
10-
GithubAuthorRequiredError,
11-
GithubCommitRequiredError,
10+
AuthorRequiredError,
11+
CommitRequiredError,
1212
InvalidSDLError,
1313
InvalidTargetError,
1414
MissingEndpointError,
@@ -239,11 +239,11 @@ export default class SchemaPublish extends Command<typeof SchemaPublish> {
239239
}
240240

241241
if (!author) {
242-
throw new GithubAuthorRequiredError();
242+
throw new AuthorRequiredError();
243243
}
244244

245245
if (!commit) {
246-
throw new GithubCommitRequiredError();
246+
throw new CommitRequiredError();
247247
}
248248

249249
if (usesGitHubApp) {

packages/libraries/cli/src/helpers/errors.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ export class SchemaFileEmptyError extends HiveCLIError {
168168
}
169169
}
170170

171-
export class GithubCommitRequiredError extends HiveCLIError {
171+
export class CommitRequiredError extends HiveCLIError {
172172
constructor() {
173173
super(
174174
ExitCode.BAD_INIT,
175175
errorCode(ErrorCategory.GENERIC, 10),
176-
`Couldn't resolve commit sha required for GitHub Application.`,
176+
`Couldn't resolve required commit sha. Provide a non-empty author via the '--commit' parameter or execute the command within a git repository.`,
177177
);
178178
}
179179
}
@@ -188,12 +188,12 @@ export class GithubRepositoryRequiredError extends HiveCLIError {
188188
}
189189
}
190190

191-
export class GithubAuthorRequiredError extends HiveCLIError {
191+
export class AuthorRequiredError extends HiveCLIError {
192192
constructor() {
193193
super(
194194
ExitCode.BAD_INIT,
195195
errorCode(ErrorCategory.GENERIC, 12),
196-
`Couldn't resolve commit author required for GitHub Application.`,
196+
`Couldn't resolve required commit author. Provide a non-empty author via the '--author' parameter or execute the command within a git repository.`,
197197
);
198198
}
199199
}

packages/libraries/external-composition/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"devDependencies": {
6363
"@apollo/composition": "2.9.3",
6464
"esbuild": "0.25.0",
65-
"fastify": "4.29.0",
65+
"fastify": "4.29.1",
6666
"graphql": "16.9.0"
6767
},
6868
"publishConfig": {
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { type MigrationExecutor } from '../pg-migrator';
2+
3+
/**
4+
* Adds an index specifically for getSchemaVersionByActionId.
5+
*/
6+
export default {
7+
name: '2025.05.28T00-00-00.schema-log-by-ids.ts',
8+
noTransaction: true,
9+
run: ({ sql }) => [
10+
{
11+
name: 'index schema_log_by_ids',
12+
query: sql`
13+
CREATE INDEX CONCURRENTLY IF NOT EXISTS "schema_log_by_ids" ON "schema_log"(
14+
"project_id"
15+
, "target_id"
16+
, "commit"
17+
)
18+
`,
19+
},
20+
],
21+
} satisfies MigrationExecutor;

0 commit comments

Comments
 (0)