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

Consolidate custom DC Docker image release scripts #4527

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

hqpho
Copy link
Contributor

@hqpho hqpho commented Jul 29, 2024

This will be used to build + tag stable after the stable branch is updated: https://paste.googleplex.com/5895977398697984

An alternate approach would be to just keep the shared script and have the deployment yamls call it with arguments. Lmk what you think!

@hqpho hqpho requested review from dwnoble and keyurva July 29, 2024 21:10
@hqpho hqpho marked this pull request as ready for review July 29, 2024 21:10
WEBSITE_PROD_TAG="prod"

# Tag to be added to the CDC image that is found.
STABLE_CANDIDATE_TAG="stable-candidate"
Copy link
Contributor

Choose a reason for hiding this comment

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

We eventually want to tag as "stable". Is "stable-candidate" temporary until we have tagging working fully?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The way I envisioned the workflow was (1) automatically tag stable-candidate (2) verify tests pass against it (3) manually change the tag from stable-candidate to stable. Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm thinking that since autopush sanity would've already kicked in, we'd know before hand if the version had any issues. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would have kicked in, but it might not have succeeded. I think it'd be good to have a manual verification of test results before finalizing that the image is stable.

Copy link
Contributor

Choose a reason for hiding this comment

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

SG.

A couple questions:

  • Are you thinking we'd have a cloud run instance pointing to stable-candidate and use that for testing?
  • We need to tag the git commit with the customdc_stable tag as well. Would we be tagging it with customdc_stable_candidate first and update to customdc_stable after the manual verification?

###### BEGIN CONFIG ######

# Tag of the website commit that we'll attempt to find a matching CDC image for.
WEBSITE_PROD_TAG="prod"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can the script take the website tag as a parameter? Also, does it need to be a tag or can we get it to work with a commit sha as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, both are doable, though it's more work and maintenance to have the script be able to do more things. What will the standard workflow be?

Copy link
Contributor

Choose a reason for hiding this comment

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

The tag would either be based on a prod tag or on a specific commit. It'd be good to support both.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, working on adding this now.

@hqpho hqpho requested a review from keyurva July 30, 2024 14:47
@dwnoble
Copy link
Contributor

dwnoble commented Oct 25, 2024

@hqpho Looking through my old PRs- is this still relevant?

@hqpho hqpho marked this pull request as draft October 25, 2024 20:02
@hqpho
Copy link
Contributor Author

hqpho commented Oct 25, 2024

@hqpho Looking through my old PRs- is this still relevant?

Converted back to a draft since this needs to be rethought! Planning to edit this doc first and then revisit this PR.

@dwnoble
Copy link
Contributor

dwnoble commented Oct 25, 2024

sounds good! thanks @hqpho

@hqpho hqpho changed the title [CDC Stable] Util for finding and tagging a stable candidate from Custom DC service images Consolidate custom DC Docker image release scripts Nov 12, 2024
@hqpho hqpho marked this pull request as ready for review November 12, 2024 20:11
@hqpho hqpho merged commit a11642e into datacommonsorg:master Nov 14, 2024
9 checks passed
@hqpho hqpho deleted the cdcStable branch November 14, 2024 15:33
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