Skip to content

BCDA-9772: Use arm64 platform#1312

Merged
bhagatparwinder merged 12 commits intomainfrom
carl-9772-use-arm64
Mar 3, 2026
Merged

BCDA-9772: Use arm64 platform#1312
bhagatparwinder merged 12 commits intomainfrom
carl-9772-use-arm64

Conversation

@carlpartridge
Copy link
Copy Markdown
Collaborator

@carlpartridge carlpartridge commented Feb 13, 2026

🎫 Ticket

https://jira.cms.gov/browse/BCDA-9772

🛠 Changes

Move to arm64 architecture.

ℹ️ Context

Arm64 architecture is more efficient and should net ~20% savings.

🧪 Validation

Make docker bootstrap, make test, this PR CI checks. Successful full arm64 deploy: https://github.com/CMSgov/bcda-app/actions/runs/22596884750

@carlpartridge carlpartridge requested a review from a team as a code owner February 13, 2026 15:35
@carlpartridge carlpartridge marked this pull request as draft February 13, 2026 15:39
@carlpartridge carlpartridge marked this pull request as ready for review February 26, 2026 14:39
Comment thread Makefile
# Wait for the database to be ready
docker run --rm --network bcda-app-net willwill/wait-for-it db-unit-test:5432 -t 120
# docker run --rm --network bcda-app-net willwill/wait-for-it db-unit-test:5432 -t 120
sleep 100
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These (and below) sleeps were quick hacks to get things working. The wait-for-it docker image is just a simple script that waits for a network to be ready. However it isnt able to run on arm64 architecture. Ive just replaced the time with a sleep for now. I think we could download the script into the repo and run it manually but felt a bit out of scope of this ticket.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: can we reduce the sleeps to 20s or so? The wait-for-it container would typically not wait that long on our local setups at least.

bhagatparwinder
bhagatparwinder previously approved these changes Mar 2, 2026
@carlpartridge carlpartridge requested a review from a team March 2, 2026 19:51
secrets: inherit

build_and_publish_ssas:
# uses: CMSgov/bcda-ssas-app/.github/workflows/build-and-publish.yml@main
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment is a dupe from the line below; can we remove?

@bhagatparwinder bhagatparwinder merged commit da15dc6 into main Mar 3, 2026
10 of 11 checks passed
@bhagatparwinder bhagatparwinder deleted the carl-9772-use-arm64 branch March 3, 2026 15:43
Comment thread Makefile
# Wait for the database to be ready
docker run --rm --network bcda-app-net willwill/wait-for-it db-unit-test:5432 -t 120
# docker run --rm --network bcda-app-net willwill/wait-for-it db-unit-test:5432 -t 120
sleep 100
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: can we reduce the sleeps to 20s or so? The wait-for-it container would typically not wait that long on our local setups at least.

Comment thread Makefile
lint: setup-tests
docker compose -f docker-compose.test.yml run \
--rm tests golangci-lint run --timeout=$(LINT_TIMEOUT) --verbose --new-from-merge-base=main
docker compose -f docker-compose.test.yml run --rm \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch on the --rm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants