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

chore(ci): move releasing to GitHub Actions MONGOSH-1871 #2309

Open
wants to merge 56 commits into
base: main
Choose a base branch
from

Conversation

gagik
Copy link
Contributor

@gagik gagik commented Jan 6, 2025

Built on top of #2289.

To Do:

  • Change documentation.
  • Remove old, non-GA-related code.
  • Add papertrail like in Compass.

@gagik gagik changed the base branch from main to gagik/individual-publishing January 6, 2025 10:15
@gagik gagik force-pushed the gagik/move-release-ga branch from 0edc03e to 187cfd2 Compare January 6, 2025 13:06
name: Release mongosh
on:
workflow_run:
workflows: ["CheckQL", "Run Smoke Tests", "evergreen"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure if evergreen is considered a workflow since it seems to be created by a bot/integration(?). Could leave and see what happens or just make it manual-only

@gagik gagik force-pushed the gagik/move-release-ga branch from 187cfd2 to 8bfe843 Compare January 6, 2025 13:32
@gagik gagik force-pushed the gagik/individual-publishing branch 2 times, most recently from 1561be9 to 3c557da Compare January 6, 2025 13:41
@gagik gagik force-pushed the gagik/move-release-ga branch from 707000e to 7868a6c Compare January 10, 2025 14:38
@gagik gagik force-pushed the gagik/move-release-ga branch from 7868a6c to 990f8ee Compare January 14, 2025 08:54
@gagik gagik changed the title WIP: move triggering release to GitHub Actions chore(ci): move releasing to GitHub Actions MONGOSH-1871 Jan 14, 2025
@gagik gagik marked this pull request as ready for review January 14, 2025 11:43
['merge', '--squash', `origin/release/${mongoshVersion}`],
commandOptions
);
spawnSync(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess this essentially merges the PR but wondering if it'd be worth using GitHub CLI here instead to i.e. have reference to the original PR naming when merging. Don't know how easy it is with how our GitHub Actions Bot token works

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, right now this pushes from evergreen, right? Do we even have permissions for that?

{ isDryRun = false, useAuxiliaryPackagesOnly = false },
listNpmPackages: typeof listNpmPackagesFn = listNpmPackagesFn,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

getting rid of this helper so we can share more code

@gagik gagik requested review from addaleax and nirinchev January 14, 2025 11:49
working_dir: src
shell: bash
script: |
set -e
set -x
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we write the secrets first, then turn set -x on after so that it's turned on for the rest of the script? It's really helpful when debugging CI issues

['merge', '--squash', `origin/release/${mongoshVersion}`],
commandOptions
);
spawnSync(
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, right now this pushes from evergreen, right? Do we even have permissions for that?

Base automatically changed from gagik/individual-publishing to main January 14, 2025 12:16
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