Skip to content

Commit 48022dd

Browse files
authored
Release/2.1.1 hotfix (#203)
* Hotfix bugs that solve critical deployment or runtime errors * Fix documentation spelling * Prettier fix * Npm audit fix * Fix GitHub build environment versions * GitHub and dependency upgrade fix for CI/CD
1 parent 15a57a4 commit 48022dd

File tree

11 files changed

+57
-37
lines changed

11 files changed

+57
-37
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Python Version
1919
uses: actions/setup-python@v2
2020
with:
21-
python-version: 3.10.11
21+
python-version: 3.12.0
2222

2323
- name: Setup node for the whole package
2424
uses: actions/setup-node@v3
@@ -67,6 +67,7 @@ jobs:
6767
dir: "vams/web"
6868
cmd: install
6969

70+
#####
7071
# - name: Run yarn audit web directory
7172
# uses: Borales/[email protected]
7273
# with:
@@ -78,6 +79,7 @@ jobs:
7879
# env:
7980
# CI: "true"
8081
# run: npm run test
82+
#####
8183

8284
- name: Web build
8385
working-directory: vams/web
@@ -98,7 +100,9 @@ jobs:
98100
run: |
99101
CDK_NAG_ENABLED=true
100102
export REGION=us-east-1
101-
npx cdk synth
103+
npm -g uninstall aws-cdk
104+
npm -g install aws-cdk
105+
cdk synth
102106
103107
- name: eslint
104108
working-directory: vams
@@ -114,6 +118,8 @@ jobs:
114118
with:
115119
input_path: vams/infra/cdk.out/vams-core-prod-us-east-1.template.json
116120

121+
#####
117122
#- name: run checks
118123
# working-directory: vams/backend
119124
# run: make all
125+
#####

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"tabWidth": 4,
44
"arrowParens": "always",
55
"singleQuote": false,
6-
"bracketSpacing": true
6+
"bracketSpacing": true,
7+
"endOfLine": "auto"
78
}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.1.1] (2025-01-17)
6+
7+
This hotfix version includes bug fixes related to dependency tools and library updates.
8+
9+
### Bug Fixes
10+
11+
- Fixed and added Poetry export plugin library used during Lambda layer building due to Poetry no longer including "export" as part of the core library.
12+
- Fixed Dockerfile container environment variable formats to no longer use the deprecated Docker format. `ENV KEY VALUE` -> `ENV KEY=VALUE`
13+
- Fixed 3D Metadata Labeling pipeline use-case to use the latest Blender version due to Alpine APK support deprecation for earlier specified versions.
14+
- Fixed 3D Metadata Labeling pipeline use-case state machine Lambda to not hard-code the `us-east-1` region for IAM role resource permission and use the stack-deployed region instead.
15+
516
## [2.1.0] (2024-11-15)
617

718
This minor version includes changes to VAMS pipelines, use-case pipeline implementations, and v2.0 bug fixes.

backendPipelines/genAi/metadata3dLabeling/container/Dockerfile_BlenderRenderer

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
FROM --platform=linux/amd64 public.ecr.aws/docker/library/python:3.12-alpine
55

66
#Install blender + openCV (has all the libraries needed for blender rendering)
7-
RUN apk add --no-cache blender=4.1.1-r2 py3-numpy py3-opencv
7+
RUN apk add --no-cache blender py3-numpy py3-opencv
88

99
# python environment varibles
10-
ENV PYTHONDONTWRITEBYTECODE 1
11-
ENV PYTHONUNBUFFERED 1
10+
ENV PYTHONDONTWRITEBYTECODE=1
11+
ENV PYTHONUNBUFFERED=1
1212

1313
# copy python scripts app to container
1414
COPY ./ ./

backendPipelines/preview/pcPotreeViewer/container/Dockerfile_PDAL

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ RUN conda-pack -n pdal --dest-prefix=/opt/conda/envs/pdal -o /tmp/env.tar && \
5454

5555
FROM condaforge/miniforge3
5656

57-
ENV CONDAENV "/opt/conda/envs/pdal"
57+
ENV CONDAENV="/opt/conda/envs/pdal"
5858
COPY --from=build /venv "/opt/conda/envs/pdal"
5959

6060
ENV PROJ_NETWORK=TRUE
6161
ENV PROJ_DATA="${CONDAENV}/share/proj"
6262
ENV GDAL_DATA="${CONDAENV}/share/gdal"
6363
ENV GEOTIFF_CSV="${CONDAENV}/share/epsg_csv"
6464
ENV GDAL_DRIVER_PATH="${CONDAENV}/lib/gdalplugins"
65-
ENV PATH $PATH:${CONDAENV}/bin
65+
ENV PATH=$PATH:${CONDAENV}/bin
6666
ENV GTIFF_REPORT_COMPD_CS=TRUE
6767
ENV REPORT_COMPD_CS=TRUE
6868
ENV OAMS_TRADITIONAL_GIS_ORDER=TRUE

backendPipelines/preview/pcPotreeViewer/container/Dockerfile_Potree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ RUN make && \
3434
rm -rf /PotreeConverter
3535

3636
# python environment varibles
37-
ENV PYTHONDONTWRITEBYTECODE 1
38-
ENV PYTHONUNBUFFERED 1
37+
ENV PYTHONDONTWRITEBYTECODE=1
38+
ENV PYTHONUNBUFFERED=1
3939

4040
# copy python scripts app to container
4141
COPY ./ ./pc_pipeline

infra/lib/core-stack.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ export class CoreVAMSStack extends cdk.Stack {
403403
fn.runtime.name === "python3.10" ||
404404
fn.runtime.name === "python3.11" ||
405405
fn.runtime.name === "python3.12" ||
406-
fn.runtime.name === "nodejs18.x"
406+
fn.runtime.name === "nodejs18.x" ||
407+
fn.runtime.name === "nodejs20.x"
407408
) {
408409
//console.log(item.node.path,fn.runtime.name)
409410
NagSuppressions.addResourceSuppressions(fn, [

infra/lib/helper/lambda.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export function layerBundlingCommand(): string {
1414
return [
1515
"pip install --upgrade pip",
1616
"pip install poetry",
17+
"pip install poetry-plugin-export",
1718
"poetry export --without-hashes --format=requirements.txt > requirements.txt",
1819
"pip install -r requirements.txt -t /asset-output/python",
1920
"rsync -rLv ./ /asset-output/python",

infra/lib/nestedStacks/pipelines/genAi/metadata3dLabeling/lambdaBuilder/metadata3dLabelingFunctions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ export function buildMetadataGenerationPipelineFunction(
214214
effect: iam.Effect.ALLOW,
215215
actions: ["bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream"],
216216
resources: [
217-
"arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0",
217+
"arn:aws:bedrock:" +
218+
config.env.region +
219+
"::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0",
218220
],
219221
});
220222
fun.addToRolePolicy(bedrockPolicy);

infra/package-lock.json

Lines changed: 21 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)