-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Update nightly branch after successful build #3195
Conversation
d47cacb
to
898837b
Compare
This seems to be working, but it's unable to actually do the FF merge to update the I'm currently attempting to run the
So In my local repo / on GitHub:
But if I check out the hash that's associated with the
It seems like it is caching a version of the repo from before I did the rebase. Could this be the stale container problem? Where it's not using the most recent version of the container to run the build? But shouldn't it be updating the local repository inside the container when it runs? function update_nightly_branch() {
git config --unset http.https://github.com/.extraheader && \
git config user.email "[email protected]" && \
git config user.name "pudlbot" && \
git remote set-url origin "https://pudlbot:$PUDL_BOT_PAT@github.com/catalyst-cooperative/pudl.git" && \
git checkout "$NIGHTLY_TAG" && \
git tag && \
echo "Updating nightly branch to point at $NIGHTLY_TAG." && \
git fetch origin nightly:nightly && \
git checkout nightly && \
git merge --ff-only "$NIGHTLY_TAG" && \
git push -u origin
} I guess maybe it's not. It's just checking out whatever |
I updated the nightly build script to delete the local (possibly stale) |
Woohoo! There’s probably some rebase in there on your feature branch that
makes it so that the nighty branch isn’t actually pointing at an ancestor
of the nightly tag. I can take a look when I’m at a computer. Have the
flaky execution problems resolved themselves?
Zane Selvans ***@***.***>于2023年12月29日 周五上午11:03写道:
… I updated the nightly build script to delete the local (possibly stale)
$NIGHTLY_TAG and re-fetch it from origin and now the hash for the
container, local, and GitHub versions of the tag are all identical, and it
is still unable to merge --ff-only so I don't understand what the problem
is.
—
Reply to this email directly, view it on GitHub
<#3195 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AATBKMWS6TZWV5WYSJX5WELYL3SUHAVCNFSM6AAAAABBFBRPM2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSGE4TAMBRGQ>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
Hmm but after reading your earlier comments… this is still weird and I
will poke around when I get home.
Dazhong Xia ***@***.***>于2023年12月29日 周五下午1:42写道:
… Woohoo! There’s probably some rebase in there on your feature branch that
makes it so that the nighty branch isn’t actually pointing at an ancestor
of the nightly tag. I can take a look when I’m at a computer. Have the
flaky execution problems resolved themselves?
Zane Selvans ***@***.***>于2023年12月29日 周五上午11:03写道:
> I updated the nightly build script to delete the local (possibly stale)
> $NIGHTLY_TAG and re-fetch it from origin and now the hash for the
> container, local, and GitHub versions of the tag are all identical, and it
> is still unable to merge --ff-only so I don't understand what the
> problem is.
>
> —
> Reply to this email directly, view it on GitHub
> <#3195 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AATBKMWS6TZWV5WYSJX5WELYL3SUHAVCNFSM6AAAAABBFBRPM2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSGE4TAMBRGQ>
> .
> You are receiving this because your review was requested.Message ID:
> ***@***.***>
>
|
@zaneselvans what's the logging output you see when it's trying to merge |
47ba776
to
ee0b0a8
Compare
@jdangerx Maybe this doesn’t make sense but I wonder if there’s any way that the test-docker-build which builds the image and doesn’t push it to DockerHub and does cache the image locally on GitHub is interfering with the GCE deployment somehow. Like if we kick off build-deploy-pudl before test-docker-build has finished then there’s a conflict?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jdangerx I think this is ready to merge? But a line-by-line look would be helpful to make sure all of the testing hacks have been removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This mostly looks great! Added a couple suggestions around the git
stuff & a question about the sandbox/prod argument, and then I think we're good to go!
Also, the nicer the bash script gets, the easier it will be to move it all into Python with little incident :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet, I hope it all still works 😬
I will be amazed if it all still works on the first try. 😆 I went ahead and merged it all the way into |
Overview
This is part of #3140. I created a new PR into
dev
because this no longer affects the workflow file (and so doesn't need to go intomain
directly) and because there was a bunch of unnecessarily messy history in #3183.nightly
branch if the scheduled nightly build is successful.[[ modern bash conditionals ]]
throughout the script.&&
to combine exit statuses of the commands inside functions so we can track the success/failure of the entire chain of commands.Testing
Kinda need to run a real scheduled deployment...
To-do list