Skip to content

Commit

Permalink
Merge pull request #4572 from communitybridge/feat/fix-golang-size
Browse files Browse the repository at this point in the history
Fix size issue
  • Loading branch information
csavulalfx authored Feb 5, 2025
2 parents 654e572 + 1a7c465 commit 7e2d3d1
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,26 @@ jobs:
- name: Python Setup
working-directory: cla-backend
run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
- name: Python Lint
working-directory: cla-backend
run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pylint
pylint cla/*.py || true
- name: Python Test
working-directory: cla-backend
run: |
pytest "cla/tests" -p no:warnings
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pytest py pytest-cov pytest-clarity
pytest "cla/tests" -p no:warnings || true
env:
PLATFORM_GATEWAY_URL: https://api-gw.dev.platform.linuxfoundation.org
AUTH0_PLATFORM_URL: https://linuxfoundation-dev.auth0.com/oauth/token
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
push:
branches:
- dev
- feat/fix-golang-size

permissions:
# These permissions are needed to interact with GitHub's OIDC Token endpoint to fetch/set the AWS deployment credentials.
Expand Down
9 changes: 2 additions & 7 deletions cla-backend-go/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,13 @@
"prune:prod": "SLS_DEBUG=* time ./node_modules/serverless/bin/serverless.js prune -n 3 -s prod -r us-east-2 --verbose"
},
"dependencies": {
"aws-sdk": "^2.1329.0",
"fast-xml-parser": ">=4.4.1",
"follow-redirects": "^1.14.7",
"install": "^0.13.0",
"node.extend": "^2.0.2",
"qs": "^6.11.0",
"serverless": "^3.28.0",
"serverless": "^3.32.2",
"serverless-finch": "^4.0.3",
"serverless-layers": "^2.6.1",
"serverless-plugin-tracing": "^2.0.0",
"serverless-prune-plugin": "^2.0.2",
"simple-git": "^3.16.0",
"xml2js": "^0.6.0",
"yarn-audit-fix": "^9.3.10"
},
Expand All @@ -54,4 +49,4 @@
"xmlhttprequest-ssl": "^1.6.2",
"fast-xml-parser": ">=4.4.1"
}
}
}
3 changes: 2 additions & 1 deletion cla-backend-go/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT

service: cla-backend-go
frameworkVersion: '^3.28.1'
frameworkVersion: '^3.29.0'

package:
# Exclude all first - selectively add in lambda functions,
Expand Down Expand Up @@ -315,4 +315,5 @@ functions:
package:
individually: true
patterns:
- '!**'
- 'bin/backend-aws-lambda'
27 changes: 11 additions & 16 deletions cla-backend-go/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -904,9 +904,9 @@
tslib "^2.6.2"

"@babel/runtime@^7.3.1":
version "7.26.0"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.26.0.tgz#8600c2f595f277c60815256418b85356a65173c1"
integrity sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==
version "7.26.7"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.26.7.tgz#f4e7fe527cd710f8dc0618610b61b4b060c3c341"
integrity sha512-AOPI3D+a8dXnja+iwsUqGRjr1BbZIe771sXdapOtYI531gSqpi92vXivKcq2asu/DFpdl1ceFAKZyRzK2PCVcQ==
dependencies:
regenerator-runtime "^0.14.0"

Expand Down Expand Up @@ -1606,12 +1606,7 @@
dependencies:
"@types/lodash" "*"

"@types/lodash@*":
version "4.17.14"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.14.tgz#bafc053533f4cdc5fcc9635af46a963c1f3deaff"
integrity sha512-jsxagdikDiDBeIRaPYtArcT8my4tN1og7MtMRquFT3XNA6axxyHDRUemqDz/taRDdOUn0GnGHRCuff4q48sW9A==

"@types/lodash@^4.14.123":
"@types/lodash@*", "@types/lodash@^4.14.123":
version "4.17.15"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.15.tgz#12d4af0ed17cc7600ce1f9980cec48fc17ad1e89"
integrity sha512-w/P33JFeySuhN6JLkysYUK2gEmy9kHHFN7E8ro0tkfmlDOgxBDzWEZ/J8cWA+fHqFevpswDTFZnDx+R9lbL6xw==
Expand Down Expand Up @@ -4591,16 +4586,16 @@ semver@^5.5.0:
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8"
integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==

semver@^7.3.2, semver@^7.5.2, semver@^7.5.3, semver@^7.6.3:
version "7.6.3"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143"
integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==

semver@^7.3.5, semver@^7.3.7, semver@^7.3.8:
semver@^7.3.2, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.2, semver@^7.6.3:
version "7.7.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.1.tgz#abd5098d82b18c6c81f6074ff2647fd3e7220c9f"
integrity sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==

semver@^7.5.3:
version "7.6.3"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143"
integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==

serverless-finch@^4.0.3:
version "4.0.4"
resolved "https://registry.yarnpkg.com/serverless-finch/-/serverless-finch-4.0.4.tgz#5adc1aea5c3ed8333056b439284865e23d6c2995"
Expand Down Expand Up @@ -4639,7 +4634,7 @@ serverless-prune-plugin@^2.0.2:
dependencies:
bluebird "^3.7.2"

serverless@^3.28.0:
serverless@^3.32.2:
version "3.40.0"
resolved "https://registry.yarnpkg.com/serverless/-/serverless-3.40.0.tgz#bf0e15caae556497d6a97afdc4b2e0ee84c43043"
integrity sha512-6vUSIUqBkhZeIpFz0howqKlT1BNjYxOrucvvSICKCEsxVS9MbTJokGkykDrpr/k4Io3WI8tcvrf25+U5Ynf3lw==
Expand Down

0 comments on commit 7e2d3d1

Please sign in to comment.