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

Batch aggregation staging deploy #786

Merged
merged 23 commits into from
Jul 1, 2024

Conversation

zwolf
Copy link
Member

@zwolf zwolf commented Jun 10, 2024

Includes a new staging deployment template, some additional logging, and a couple small fixes.

This new staging template currently deploys directly from the batch-aggregation-staging branch, not the head of master. I'll be testing locally with this after approval, then I'll add a workflow to automate the staging deploy. A dry run against the server with this template creates the following:

$ kubectl apply --dry-run=server -f ./kubernetes/deployment-staging.yaml
deployment.apps/aggregation-staging created (server dry run)
service/aggregation-staging created (server dry run)
deployment.apps/aggregation-staging-celery created (server dry run)
service/aggregation-staging-celery created (server dry run)
persistentvolumeclaim/aggregation-staging-redis created (server dry run)
persistentvolumeclaim/aggregation-staging-data-storage created (server dry run)
deployment.apps/aggregation-staging-redis created (server dry run)
service/aggregation-staging-redis created (server dry run)
ingress.networking.k8s.io/aggregation-staging-ingress created (server dry run)

I'm pretty sure that's everything this needs. I've created a new DNS record to point to the new staging app, aggregation-staging.zooniverse.org. I didn't include a deploy for Flower yet, let's see how this goes.

@zwolf zwolf requested a review from yuenmichelle1 June 10, 2024 21:46
hound[bot]

This comment was marked as outdated.

@zwolf zwolf merged commit 0bfb066 into batch-aggregation-staging Jul 1, 2024
8 checks passed
@zwolf zwolf deleted the batchagg-staging-deploy branch July 1, 2024 22:52
zwolf added a commit that referenced this pull request Jul 2, 2024
* Batch Aggregation (#785)

* Add Celery and a test route

* Add new dependencies

* Test task tests

* Docker updates

* Scripts folder

* Setup deploy to test env

* Link redis container via docker

* Modify test task

* Add redis service to test workflow

* Hook up services

* Fix test arguments

* flake8

* newline

* rename and refactor

* Taking a swing at extraction

* oops

* update .gitignore

* Remove deploy files

* Update .gitignore

* Clean up test tests

* Add router tests

* Extremely placeholder BA lib tests

* Only override local import

* First few batch agg specs

* Updates to BatchAggregation & tests

* less flake8y

* Add final POST message to Panoptes

* Flake

* flake

* Pull etag before atempting update

* Remove unnecessary mocks

* Assert result set, not method called

* clean up spec mocks

* Add permissions checking, fix some specs, refactor Panoptes update

* Flake

* Use os.path for platform independence

* Undeleting deploy template

* Batch aggregation staging deploy (#786)

* Add logging statements

* Update celery task namespace

* Add staging deployment template

* Clean up new resource names

* Build to a single docker image

* Rename deployment & use Panoptes staging in staging deploy

* Fix secret name

* Sringify ID in comparison to value returned from Panoptes

* Update test

* Fix mock data type

* Use client's admin mode

* Fix a couple filepaths

* Use UUID as tmpdir path

* Finish run if Panoptes is unupdateable

* When the update panoptes resource doesn't exist but the call is successful

* Use jsonify to set mimetype

* cast inputs to ints just in case

* Enable public access to new containers

* Deploy staging with action

* hound?

* test fixes

* new hound

* Use correct k8s secret

* Use tag deployment for production (#788)

* Use tag deployment for production

* Add batchagg resources to prod template
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.

2 participants