Good morning all! I am noticing something odd. Whe...
# help
c
Good morning all! I am noticing something odd. Whenever I deploy my stack though my CI pipeline (github actions) it updates the cdn even though nothing has changed regarding the cdn. Is there something I should be caching in the pipeline to avoid this? In my specific case I was only making changes to the github workflows but CDN kept updating making the builds take 10+ minutes
t
Do you have a staticsite in your stack?
c
yes
t
I was just talking to the team about this issue. The way it works right now is it builds your static site and if the resulting bundle is different, it goes through a deploy otherwise it can skip (cc @Frank correct me if I'm wrong) Is there something that's causing your static site builds not to be deterministic?
c
Can i just run
sst build
and compare one bundle to another to check that?
t
You can do an
sst diff --stage <name>
and it'll build and compare against what's deployed
c
yep there are differences but im not sure why that would be
t
do you see a difference in the s3 bundle for the static site?
c
And the CDN so that answers why it was updating with every deploy
we are extending static site so I need to make sure something we are doing is not the cause
t
Let me verify we're not doing something weird
c
f
Hey guys, it is likely the s3 assets are different on each build.
c
the only thing I was changing on each push was code in my github workflows for several builds
f
Can you show me what’s in ur
.build
?
If you compare the
part0.zip
files from two builds, can u check if they are the same?
c
will do
one thing I can say is that the very same build of the same commit on my machine vs in the github actions pipeline produces different deployId which is not what I expected