Skip to content

Commit 55894d1

Browse files
authored
Merge pull request #38 from maxshine/upgrade-gh-codebase-1.4
Upgrade gh codebase 1.4
2 parents bc65fcf + 206815c commit 55894d1

File tree

8 files changed

+34
-9
lines changed

8 files changed

+34
-9
lines changed

.github/actions/test-automation-docker-action/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,10 @@ N/A
4040
- Bugfix
4141
N/A
4242
- Dependencies
43-
1. DBT Core version 1.8.5 with Bigquery adapter 1.8.2
43+
1. DBT Core version 1.8.5 with Bigquery adapter 1.8.2
44+
45+
### v1.4.1 (general release succeeding from v1.3.4 to latest codebase)
46+
- Features
47+
N/A
48+
- Bugfix
49+
N/A

.github/actions/test-automation-docker-action/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM python:3.10.11-slim-bullseye
22

33
RUN apt update && apt install -y git curl && apt clean \
44
&& pip install --upgrade pip virtualenv \
5-
&& curl -sSL https://github.com/maxshine/personal-continuous-integrations/releases/download/v1.3.4/customizable_continuous_integration-1.3.4-py3-none-any.whl -o customizable_continuous_integration-1.3.4-py3-none-any.whl \
6-
&& pip install customizable_continuous_integration-1.3.4-py3-none-any.whl \
7-
&& rm customizable_continuous_integration-1.3.4-py3-none-any.whl
5+
&& curl -sSL https://github.com/maxshine/personal-continuous-integrations/releases/download/v1.4.1/customizable_continuous_integration-1.4.1-py3-none-any.whl -o customizable_continuous_integration-1.4.1-py3-none-any.whl \
6+
&& pip install customizable_continuous_integration-1.4.1-py3-none-any.whl \
7+
&& rm customizable_continuous_integration-1.4.1-py3-none-any.whl
88

99
ENTRYPOINT ["ci_cli"]

.github/actions/write-protection-docker-action/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,10 @@ N/A
7676
- Features
7777
N/A
7878
- Bugfix
79+
N/A
80+
81+
### v1.4.1 (general release succeeding from v1.3.4 to latest codebase)
82+
- Features
83+
N/A
84+
- Bugfix
7985
N/A

.github/actions/write-protection-docker-action/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ FROM python:3.10.11-slim-bullseye
22

33
RUN apt update && apt install -y git curl && apt clean \
44
&& pip install --upgrade pip virtualenv \
5-
&& curl -sSL https://github.com/maxshine/personal-continuous-integrations/releases/download/v1.3.4/customizable_continuous_integration-1.3.4-py3-none-any.whl -o customizable_continuous_integration-1.3.4-py3-none-any.whl \
6-
&& pip install customizable_continuous_integration-1.3.4-py3-none-any.whl \
7-
&& rm customizable_continuous_integration-1.3.4-py3-none-any.whl
5+
&& curl -sSL https://github.com/maxshine/personal-continuous-integrations/releases/download/v1.4.1/customizable_continuous_integration-1.4.1-py3-none-any.whl -o customizable_continuous_integration-1.4.1-py3-none-any.whl \
6+
&& pip install customizable_continuous_integration-1.4.1-py3-none-any.whl \
7+
&& rm customizable_continuous_integration-1.4.1-py3-none-any.whl
88

99
COPY write-protection-pr.sh /usr/local/bin/
1010

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "customizable_continuous_integration"
3-
version = "1.4.0"
3+
version = "1.4.1"
44
description = "The CI automation project"
55
authors = ["Ryan,Gao <[email protected]>"]
66
license = "MIT"

src/customizable_continuous_integration/automations/bigquery_archiver/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,14 @@ Following table describes the common fields for both archive and restore task co
9797
## Limitations
9898
1. The archive / restore leverage the user's GCP credentials to access the Bigquery and GCS resources. The user should have the necessary permissions to access the resources.
9999
2. While restoring the entities having interdependencies, the restoring process only check the completion of the previous task. In a case of failed requisites, the dependents will be restored anyway even if they are doomed to fail all the time.
100-
3. While restoring the entities having interdependencies, the built DAG assumes the interdependencies are one-way that Bigquery has checked this.
100+
3. While restoring the entities having interdependencies, the built DAG assumes the interdependencies are one-way that Bigquery has checked this.
101+
102+
## Persistent data versioning
103+
### metadata_version (used to track GCP Bigquery metadata changes)
104+
1. `v1`
105+
1. introduced on 2025-02-23 and tested with GCP Bigquery by 2025-04-02
106+
2. supported from archiver version 1.4.0
107+
### archiver_version (used to track the archiver implementation changes)
108+
1. `v1` -- introduced on 2025-04-02 and tested with GCP Bigquery by 2025-04-02
109+
1. introduced on 2025-02-23 and tested with GCP Bigquery by 2025-04-02
110+
2. supported from archiver version 1.4.0

src/customizable_continuous_integration/automations/bigquery_archiver/entity/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
23/02/2025 Ryan, Gao Initial creation
99
03/03/2025 Ryan, Gao Add dependencies property
1010
23/03/2025 Ryan, Gao Add DAGNodeInterface
11+
02/04/2025 Ryan, Gao Add archiver version for backwards compatibility
1112
"""
1213

1314
import datetime
@@ -50,6 +51,7 @@ def to_bigquery_schema_field(self) -> google.cloud.bigquery.SchemaField:
5051
class BigqueryBaseArchiveEntity(pydantic.BaseModel, DAGNodeInterface):
5152
bigquery_metadata: BigqueryBaseMetadata
5253
metadata_version: str = "v1"
54+
archiver_version: str = "v1"
5355
gcs_prefix: str
5456
archived_datetime: datetime.datetime
5557
is_archived: bool = False

src/customizable_continuous_integration/automations/commands/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Deprecated from *N/A*.
5252
| No. | Version | Features | Bugfixes |
5353
|:----|:--------|:---------------------------------------------------------------------------------|:--------------------------------------------------------|
5454
| 1 | v1.4.0 | - Initial function archiving Bigquery dataset into GCS and restoring it from GCS | N/A |
55+
| 2 | v1.4.1 | - Add archiver version field for future compatibility | N/A |
5556

5657
### help
5758
Available from **v1.4.0**.

0 commit comments

Comments
 (0)