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

B-22137 & B-22170 update pdfcpu 0.6.0 to latest 0.9.1 #14496

Merged
merged 61 commits into from
Jan 16, 2025

Conversation

cameroncaci
Copy link
Contributor

@cameroncaci cameroncaci commented Dec 31, 2024

Current ticket B-22170
Originated from B-22137

Summary

Production containers encountering stack overflow on pdfcpu call.

Pdfcpu issue 867 was resolved in May of this year. Our current pdfcpu package 0.6.0 dates back to December 2023. Updating to latest 0.9.1 to attempt fixing issue.

Docker changes

We now mount a separate volume in docker to not abide by the readonly aws ecs root marking a dedicated mutable directory. Pdfcpu uses this to install and write fonts because it doesn't do it on compile, it installs fonts and such after compile.

Misc changes

Disabled watermarks in paperwork package generator. Watermarks never worked, they are using bookmark specific code. Enhanced by adding a pre-emptive nil check and then disabled it. The pre-emptive nil check will come in handy should a feature come through requesting watermarking.

Additionally, fixed some existing err return issues

How to test

Anything that's got to do with milmove PDF generation, make sure it works! AOA/SSW/PPM you name it if it's PDF generated we want to make sure it works

Related
pdfcpu/pdfcpu#867 <- May 2024
pdfcpu/pdfcpu#268 <- December 2020

@cameroncaci cameroncaci added Mountain Movers Movin' Mountains 1 Sprint at a time INTEGRATION Slated for Integration Testing labels Dec 31, 2024
@cameroncaci cameroncaci self-assigned this Dec 31, 2024
@cameroncaci cameroncaci changed the title Prod fix pdfcpu int B-22137 update pdfcpu 0.6.0 to latest 0.9.1 Dec 31, 2024
@cameroncaci cameroncaci marked this pull request as ready for review January 13, 2025 16:18
@cameroncaci cameroncaci requested review from a team as code owners January 13, 2025 16:18
@cameroncaci cameroncaci marked this pull request as draft January 13, 2025 16:19
@cameroncaci cameroncaci marked this pull request as ready for review January 16, 2025 15:34
.circleci/config.yml Outdated Show resolved Hide resolved
@deandreJones
Copy link
Contributor

AOA-01-16-2025_15-47-40.pdf
was able to generate SSW

@deandreJones
Copy link
Contributor

ppm_payment_packet-2025-01-16T15_56_58.039Z.pdf
was able to download payment packet and
generate- aoa packet
Uploading AOA-01-16-2025_15-57-27.pdf…

@deandreJones
Copy link
Contributor

able to upload supporting docs'
image

@deandreJones
Copy link
Contributor

image
view documents works!!

Copy link
Contributor

@deandreJones deandreJones left a comment

Choose a reason for hiding this comment

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

good work!!
send it!

@cameroncaci cameroncaci changed the title B-22137 update pdfcpu 0.6.0 to latest 0.9.1 B-22137 & B-22170 update pdfcpu 0.6.0 to latest 0.9.1 Jan 16, 2025
@cameroncaci
Copy link
Contributor Author

NOOOOO NOT THE FLAKY TESTS

@cameroncaci
Copy link
Contributor Author

rerunning from failed pipeline

@cameroncaci cameroncaci merged commit 52ecf32 into integrationTesting Jan 16, 2025
35 of 36 checks passed
@cameroncaci cameroncaci deleted the prod-fix-pdfcpu-int branch January 16, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug INTEGRATION Slated for Integration Testing Mountain Movers Movin' Mountains 1 Sprint at a time
Development

Successfully merging this pull request may close these issues.

3 participants