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

Do not try to deploy to fastly-staging in deploy-webapp.groovy. #234

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

csilvers
Copy link
Member

Summary:

That's too late! This script doesn't get run until after you say
sun: set default. The whole point of the staging environment is to
be available before you say sun: set default, when you're doing
the manual testing.

Sadly, doing this in build-webapp.groovy isn't right either, since
many of those get run in parallel, and there's only one fastly-staging
service. If we really wanted to cram this logic in, we'd have to do
it in buildmaster, before showing the "time to set default" message to
the user. But that's a really awkward place to put it.

We'll have to think more about what the right thing to do here. The
whole fastly-staging thing isn't as useful as it might be, since it
doesn't work for first smoke tests, znd's, or any number of other
things we might want it to. Perhaps fixing that problem will make it
obvious where this logic should move to (probably
build-webapp.groovy).

Issue: none

Test plan:

Noticing https://jenkins.khanacademy.org/job/deploy/job/deploy-webapp/20552/console

That's too late!  This script doesn't get run until _after_ you say
`sun: set default`.  The whole point of the staging environment is to
be available _before_ you say `sun: set default`, when you're doing
the manual testing.

Sadly, doing this in build-webapp.groovy isn't right either, since
many of those get run in parallel, and there's only one fastly-staging
service.  If we really wanted to cram this logic in, we'd have to do
it in buildmaster, before showing the "time to set default" message to
the user.  But that's a really awkward place to put it.

We'll have to think more about what the right thing to do here.  The
whole fastly-staging thing isn't as useful as it might be, since it
doesn't work for first smoke tests, znd's, or any number of other
things we might want it to.  Perhaps fixing that problem will make it
obvious where this logic should move to (probably
build-webapp.groovy).

Issue: none

Test plan:
Noticing https://jenkins.khanacademy.org/job/deploy/job/deploy-webapp/20552/console
@csilvers csilvers requested a review from a team as a code owner September 30, 2024 23:31
@csilvers csilvers self-assigned this Sep 30, 2024
Copy link
Contributor

@kevinb-khan kevinb-khan left a comment

Choose a reason for hiding this comment

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

Makes sense. Hopefully things work out with it being in build-webapp.groovy.

Copy link
Member

@MiguelCastillo MiguelCastillo left a comment

Choose a reason for hiding this comment

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

Yeah as we have briefly chatted about it, we have a couple of things to sort out. https://khanacademy.slack.com/archives/C096UP7D0/p1729628054920289

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.

3 participants