Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promotion 2024-09-10 anvilprod (#6555) #6561

Merged
merged 31 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
347b2fb
[H r] Remove project 248c5dc3 from dcp41 (#6521)
dsotirho-ucsc Aug 29, 2024
3dc45fd
Move recan_bundle_tdr script to attic (#6491)
nadove-ucsc Aug 12, 2024
62df7fb
Fix JSON indentation
nadove-ucsc Aug 8, 2024
fd24a5d
Fix type warnings
nadove-ucsc Aug 7, 2024
9d26075
Remove duplicated Azul code in src/humancellatlas/
nadove-ucsc Aug 22, 2024
f1d8212
Eliminate old-style type annotations in src/humancellatlas
nadove-ucsc Aug 22, 2024
9124390
Fix mismatched entity IDs in canned TDR table
nadove-ucsc Aug 9, 2024
bd3bffd
Remove dangling manifest entries in canned bundles
nadove-ucsc Aug 23, 2024
eac4562
Drop support for old v5 DSS bundles
nadove-ucsc Aug 17, 2024
115d4db
Convert hca_metadata_api cans to new format
nadove-ucsc Aug 20, 2024
42827ec
Remove manifest entries for links.json (#4565)
nadove-ucsc Aug 21, 2024
cab6ef4
Extract links.json to a separate bundle attribute
nadove-ucsc Aug 21, 2024
0e8d7f9
Refactor `TDRHCABundle._parse_drs_uri`
nadove-ucsc Aug 8, 2024
49d8db5
Refactor `TDRHCABundle.add_entity`
nadove-ucsc Aug 9, 2024
0069fdd
[p] Extract `is_stitched` from manifest entries (partial #6299)
nadove-ucsc Aug 8, 2024
171535d
Remove manifest entries from `api.Entity`
nadove-ucsc Aug 8, 2024
5a90e00
Rename attribute and derived variables
nadove-ucsc Aug 9, 2024
133e3cb
Replace file names with entity references in HCA bundle metadata
nadove-ucsc Aug 17, 2024
5ff2e50
Remove synthetic file names from TDR bundle manifest entries
nadove-ucsc Aug 17, 2024
cc88892
[p] Remove manifest entries for HCA metadata entities (partial #6299)
nadove-ucsc Aug 8, 2024
4c70d10
[p] Convert HCABundle.manifest to dictionary (partial #6299)
nadove-ucsc Aug 22, 2024
42cb07d
Restructure HCA bundles (#6491, #4565, partial #6299, PR #6485)
achave11-ucsc Sep 3, 2024
468c7f6
Fix blank lines
nadove-ucsc Aug 30, 2024
2fab30d
Fix type warning in environment files
nadove-ucsc Aug 28, 2024
604bcbc
[u p] Explicitly configure source type in environment files (#6355)
nadove-ucsc Aug 30, 2024
cd2ee9d
[u p] Explicitly configure source type in environment files (#6355, P…
achave11-ucsc Sep 4, 2024
cab0f4a
Merge branch 'develop' into backports/347b2fb
achave11-ucsc Sep 4, 2024
eeefafc
[H] Backport: 347b2fb (#6521, PR #6525, PR #6540)
achave11-ucsc Sep 4, 2024
c1d8633
Extract shell function to update Azul clone
hannes-ucsc Sep 4, 2024
6640a79
Fix wording of PR checklist item
hannes-ucsc Sep 5, 2024
f42a38e
Add PR checklist item for triaging blockees
hannes-ucsc Sep 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE/anvilprod-hotfix.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Connected issue: #0000
- [ ] Decided if PR can be labeled `no sandbox`
- [ ] A comment to this PR details the completed security design review
- [ ] PR title is appropriate as title of merge commit
- [ ] Moved ticket to *Approved* column
- [ ] Moved connected issue to *Approved* column
- [ ] PR is assigned to only the operator


Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE/anvilprod-promotion.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Connected issue: #0000

- [ ] Actually approved the PR
- [ ] Decided if PR can be labeled `no sandbox`
- [ ] Moved ticket to *Approved* column
- [ ] Moved connected issue to *Approved* column
- [ ] PR is assigned to only the operator


Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE/backport.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This is the PR template for backport PRs against `develop`.
- [ ] Actually approved the PR
- [ ] Decided if PR can be labeled `no sandbox`
- [ ] PR title is appropriate as title of merge commit
- [ ] Moved ticket to *Approved* column
- [ ] Moved connected issue to *Approved* column
- [ ] PR is assigned to only the operator


Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE/prod-hotfix.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Connected issue: #0000
- [ ] Labeled PR as `no sandbox`
- [ ] A comment to this PR details the completed security design review
- [ ] PR title is appropriate as title of merge commit
- [ ] Moved ticket to *Approved* column
- [ ] Moved connected issue to *Approved* column
- [ ] PR is assigned to only the operator


Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE/prod-promotion.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Connected issue: #0000

- [ ] Actually approved the PR
- [ ] Labeled PR as `no sandbox`
- [ ] Moved ticket to *Approved* column
- [ ] Moved connected issue to *Approved* column
- [ ] PR is assigned to only the operator


Expand Down
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Connected issue: #0000
- [ ] Labeled connected issue as `no demo`
- [ ] A comment to this PR details the completed security design review
- [ ] PR title is appropriate as title of merge commit
- [ ] Moved ticket to *Approved* column
- [ ] Moved connected issue to *Approved* column
- [ ] PR is assigned to only the operator


Expand Down Expand Up @@ -85,6 +85,7 @@ Connected issue: #0000
- [ ] Added PR # reference to merge commit title
- [ ] Collected commit title tags in merge commit title <sub>but excluded any `p` tags</sub>
- [ ] Moved connected issue to *Merged lower* column in ZenHub
- [ ] Moved blocked issues to *Triage* <sub>or no issues are blocked on the connected issue</sub>
- [ ] Closed related Dependabot PRs with a comment referencing the corresponding commit in this PR <sub>or this PR does not include any such commits</sub>
- [ ] Pushed merge commit to GitHub

Expand Down
3 changes: 2 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ title is `Fix: ` followed by the issue title
- [ ] A comment to this PR details the completed security design review
- [ ] PR title is appropriate as title of merge commit
- [ ] `N reviews` label is accurate
- [ ] Moved ticket to *Approved* column
- [ ] Moved connected issues to *Approved* column
- [ ] PR is assigned to only the operator


Expand Down Expand Up @@ -144,6 +144,7 @@ title is `Fix: ` followed by the issue title
- [ ] Added PR # reference to merge commit title
- [ ] Collected commit title tags in merge commit title <sub>but only included `p` if the PR is also labeled `partial`</sub>
- [ ] Moved connected issues to *Merged lower* column in ZenHub
- [ ] Moved blocked issues to *Triage* <sub>or no issues are blocked on the connected issues</sub>
- [ ] Pushed merge commit to GitHub


Expand Down
7 changes: 6 additions & 1 deletion .github/pull_request_template.md.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ def emit(t: T, target_branch: str):
}),
{
'type': 'cli',
'content': 'Moved ticket to *Approved* column'
'content': f'Moved connected {t.issues} to *Approved* column'
},
{
'type': 'cli',
Expand Down Expand Up @@ -812,6 +812,11 @@ def emit(t: T, target_branch: str):
'Moved connected issue to *Merged stable* column in ZenHub',
f'Moved connected {t.issues} to *Merged lower* column in ZenHub')
}),
iif(target_branch == 'develop' and t is not T.backport, {
'type': 'cli',
'content': 'Moved blocked issues to *Triage*',
'alt': f'or no issues are blocked on the connected {t.issues}'
}),
iif(t is T.upgrade,
{
'type': 'cli',
Expand Down
9 changes: 9 additions & 0 deletions UPGRADING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ reverted. This is all fairly informal and loosely defined. Hopefully we won't
have too many entries in this file.


#6355 Explicitly configure source type in environment files
===========================================================

The ``mksrc`` function in ``environment.py`` has been updated. For each of your
personal deployments, update the function and insert the string ``'biqguery'``
as its first argument at all call sites. As always, use the sandbox deployment's
``environment.py`` as a model when upgrading personal deployments.


#6446 Base image of Azul image is not pinned to digest
======================================================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ def dss_bundle_to_tdr(bundle: Bundle, source: TDRSourceRef) -> TDRHCABundle:
links_entry = None
for entry in manifest:
entry['version'] = convert_version(entry['version'])
entry['is_stitched'] = False
if entry['name'] == 'links.json':
links_entry = entry
if entry['indexed']:
Expand Down
14 changes: 8 additions & 6 deletions deployments/anvilbox/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
)
import json
from typing import (
Literal,
Optional,
)

Expand All @@ -27,20 +28,21 @@ def common_prefix(n: int) -> str:
pop = 2 # remove snapshot


def mksrc(google_project,
def mksrc(source_type: Literal['bigquery', 'parquet'],
google_project,
snapshot,
subgraphs,
flags: int = 0,
/,
prefix: Optional[str] = None
) -> tuple[str, str]:
) -> tuple[str, str | None]:
project = '_'.join(snapshot.split('_')[1:-3])
assert flags <= ma | pop
if prefix is None:
prefix = common_prefix(subgraphs)
source = None if flags & pop else ':'.join([
'tdr',
'bigquery',
source_type,
'gcp',
google_project,
snapshot,
Expand Down Expand Up @@ -71,9 +73,9 @@ def mkdict(previous_catalog: dict[str, str],


anvil_sources = mkdict({}, 3, mkdelta([
mksrc('datarepo-dev-e53e74aa', 'ANVIL_1000G_2019_Dev_20230609_ANV5_202306121732', 6804),
mksrc('datarepo-dev-42c70e6a', 'ANVIL_CCDG_Sample_1_20230228_ANV5_202302281520', 28),
mksrc('datarepo-dev-97ad270b', 'ANVIL_CMG_Sample_1_20230225_ANV5_202302281509', 25)
mksrc('bigquery', 'datarepo-dev-e53e74aa', 'ANVIL_1000G_2019_Dev_20230609_ANV5_202306121732', 6804),
mksrc('bigquery', 'datarepo-dev-42c70e6a', 'ANVIL_CCDG_Sample_1_20230228_ANV5_202302281520', 28),
mksrc('bigquery', 'datarepo-dev-97ad270b', 'ANVIL_CMG_Sample_1_20230225_ANV5_202302281509', 25)
]))


Expand Down
16 changes: 11 additions & 5 deletions deployments/anvildev/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
)
import json
from typing import (
Literal,
Optional,
)

Expand All @@ -22,12 +23,17 @@ def partition_prefix_length(n: int) -> int:
pop = 2 # remove snapshot


def mksrc(google_project, snapshot, subgraphs, flags: int = 0) -> tuple[str, str]:
def mksrc(source_type: Literal['bigquery', 'parquet'],
google_project,
snapshot,
subgraphs,
flags: int = 0
) -> tuple[str, str | None]:
project = '_'.join(snapshot.split('_')[1:-3])
assert flags <= ma | pop
source = None if flags & pop else ':'.join([
'tdr',
'bigquery',
source_type,
'gcp',
google_project,
snapshot,
Expand Down Expand Up @@ -58,9 +64,9 @@ def mkdict(previous_catalog: dict[str, str],


anvil_sources = mkdict({}, 3, mkdelta([
mksrc('datarepo-dev-e53e74aa', 'ANVIL_1000G_2019_Dev_20230609_ANV5_202306121732', 6804),
mksrc('datarepo-dev-42c70e6a', 'ANVIL_CCDG_Sample_1_20230228_ANV5_202302281520', 28),
mksrc('datarepo-dev-97ad270b', 'ANVIL_CMG_Sample_1_20230225_ANV5_202302281509', 25)
mksrc('bigquery', 'datarepo-dev-e53e74aa', 'ANVIL_1000G_2019_Dev_20230609_ANV5_202306121732', 6804),
mksrc('bigquery', 'datarepo-dev-42c70e6a', 'ANVIL_CCDG_Sample_1_20230228_ANV5_202302281520', 28),
mksrc('bigquery', 'datarepo-dev-97ad270b', 'ANVIL_CMG_Sample_1_20230225_ANV5_202302281509', 25)
]))


Expand Down
Loading
Loading