Skip to content

Commit 097c583

Browse files
committed
Merge branch 'dev' into njm/P-416/pq-reporting
2 parents 6ddd998 + 8cfd795 commit 097c583

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

RELEASE_CHECKLIST.md

+15-9
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ This project uses [Semantic Versioning 2.0.0](https://semver.org/). When releas
7070

7171
Creating a release PR is the first step of starting a release, whether there will be pre-releases or not. About a release PR:
7272

73-
* A release PR is based on a release branch and a release branch gathers all the commits for a release.
74-
* The release PR merges into `main` at the time that the release becomes official.
73+
* A release PR is based on a mainline release line (e.g., `dev`, or `1.x`) and a release branch gathers all the commits for a release.
74+
* The release PR merges into the mainline at the time that the release becomes official.
7575
* A release can be started from any branch or commit, but it is almost always started from `dev` as that is the main development trunk of the Router.
7676
* The release PR is in a draft mode until after the preparation PR has been merged into it.
7777

@@ -111,24 +111,30 @@ Start following the steps below to start a release PR. The process is **not ful
111111
git checkout -b "${APOLLO_ROUTER_RELEASE_VERSION}"
112112
```
113113

114-
7. Push this new branch to the appropriate remote. We will open a PR for it **later**, but this will be the **base** for the PR created in the next step). (And `--set-upstream` will of course track this locally. This is commonly abbreviated as `-u`.)
114+
7. Add an empty commit to the branch. This isn't always necessary, but it allows the staging PR to be opened when there is no other difference to the base-branch (e.g., `dev`) which prevents the PR from getting opened, even in draft mode.
115+
116+
```
117+
git commit --allow-empty -m "Start v${APOLLO_ROUTER_RELEASE_VERSION} PR"
118+
```
119+
120+
8. Push this new branch to the appropriate remote. We will open a PR for it **later**, but this will be the **base** for the PR created in the next step). (And `--set-upstream` will of course track this locally. This is commonly abbreviated as `-u`.)
115121

116122
```
117123
git push --set-upstream "${APOLLO_ROUTER_RELEASE_GIT_ORIGIN}" "${APOLLO_ROUTER_RELEASE_VERSION}"
118124
```
119125

120-
8. Now, open a draft PR with a small boilerplate header from the branch which was just pushed:
126+
9. Now, open a draft PR with a small boilerplate header from the branch which was just pushed:
121127

122128
```
123-
cat <<EOM | gh --repo "${APOLLO_ROUTER_RELEASE_GITHUB_REPO}" pr create --draft --label release -B "main" --title "release: v${APOLLO_ROUTER_RELEASE_VERSION}" --body-file -
129+
cat <<EOM | gh --repo "${APOLLO_ROUTER_RELEASE_GITHUB_REPO}" pr create --draft --label release -B "dev" --title "release: v${APOLLO_ROUTER_RELEASE_VERSION}" --body-file -
124130
> **Note**
125-
> **This particular PR must be true-merged to \`main\`.**
131+
> **This particular PR must be true-merged to \`dev\`.**
126132
127-
* This PR is only ready to review when it is marked as "Ready for Review". It represents the merge to the \`main\` branch of an upcoming release (version number in the title).
133+
* This PR is only ready to review when it is marked as "Ready for Review". It represents the merge to the \`dev\` branch of an upcoming release (version number in the title).
128134
* It will act as a staging branch until we are ready to finalize the release.
129135
* We may cut any number of alpha and release candidate (RC) versions off this branch prior to formalizing it.
130136
* This PR is **primarily a merge commit**, so reviewing every individual commit shown below is **not necessary** since those have been reviewed in their own PR. However, things important to review on this PR **once it's marked "Ready for Review"**:
131-
- Does this PR target the right branch? (usually, \`main\`)
137+
- Does this PR target the right branch? (usually, \`dev\`)
132138
- Are the appropriate **version bumps** and **release note edits** in the end of the commit list (or within the last few commits). In other words, "Did the 'release prep' PR actually land on this branch?"
133139
- If those things look good, this PR is good to merge!
134140
EOM
@@ -246,7 +252,7 @@ Start following the steps below to start a release PR. The process is **not ful
246252
- Run our compliance checks and update the `licenses.html` file as appropriate.
247253
- Ensure we're not using any incompatible licenses in the release.
248254
249-
7. **MANUALLY CHECK AND UPDATE** the `federation-version-support.mdx` to make sure it shows the version of Federation which is included in the `router-bridge` that ships with this version of Router. This can be obtained by looking at the version of `router-bridge` in `apollo-router/Cargo.toml` and taking the number after the `+` (e.g., `router-bridge@0.2.0+v2.4.3` means Federation v2.4.3).
255+
7. **MANUALLY CHECK AND UPDATE** the `federation-version-support.mdx` to make sure it shows the version of Federation which is supported by the Routter.
250256
251257
11. Now, review and stage he changes produced by the previous step. This is most safely done using the `--patch` (or `-p`) flag to `git add` (`-u` ignores untracked files).
252258

apollo-router/src/plugins/telemetry/proto/reports.proto

+2-2
Original file line numberDiff line numberDiff line change
@@ -581,9 +581,9 @@ message ContextualizedStats {
581581
}
582582

583583
message QueryMetadata {
584-
// The operation name. For now this is a required field if QueryMetadata is present.
584+
// The operation name. For operations with a PQ ID as the stats report key, either name or signature must be present in the metadata.
585585
string name = 1;
586-
// the operation signature. For now this is a required field if QueryMetadata is present.
586+
// the operation signature. For operations with a PQ ID as the stats report key, either name or signature must be present in the metadata.
587587
string signature = 2;
588588
// (Optional) Persisted query ID that was used to request this operation.
589589
string pq_id = 3;

docs/source/routing/configuration.mdx

+5-3
Original file line numberDiff line numberDiff line change
@@ -1208,15 +1208,17 @@ supergraph:
12081208
When the Router schema or configuration updates all connections must be closed for resources to be freed.
12091209
To ensure that long-lived connections do not hang on to resources, a maximum graceful shutdown timeout can be configured.
12101210

1211-
```yaml
1212-
connection_shutdown_timeout: 60s
1211+
```yaml title="router.yaml"
1212+
supergraph:
1213+
connection_shutdown_timeout: 60s
12131214
```
12141215

12151216
The default value is 60 seconds.
12161217

12171218
Note that if `early_cancel` is `false` (default), then requests in progress will still hold onto pipeline resources.
12181219
Traffic shaping request timeouts should be used to prevent long-running requests.
1219-
```
1220+
1221+
```yaml title="router.yaml"
12201222
traffic_shaping:
12211223
router:
12221224
timeout: 60s

0 commit comments

Comments
 (0)