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

MOSS Cap1 #1833

Merged
merged 16 commits into from
Sep 13, 2024
Merged

MOSS Cap1 #1833

merged 16 commits into from
Sep 13, 2024

Conversation

Tuseeq1
Copy link
Member

@Tuseeq1 Tuseeq1 commented Sep 6, 2024

Summary:

In order to use GCB for all building and publishing needs, new cloudbuild-*.yaml files are added that will be used by triggers in our GCP project. Moreover, yarn.lock file has been updated to pull dependencies from google's verified sources.

Changes:

  • Updated yarn.lock to change dependencies location to google npm package manager.
  • Removed cloudbuild.yaml file and replaced with following new build files.
  • Added cloudbuild-publish.yaml. This build will get triggered when new code is pushed to main such that the version.bzl file has been updated i-e: a new version is ready for release. This will build and published to updated packages to NPM.
  • Added cloudbuild-test.yaml. This will be trigger when a new PR is created or code is pushed to main such that the version.bzl is not changed. This will run tests.
  • Added cloudbuild-version.yaml. This will be triggered on 1st of every month. This will update the version number in version.bzl in a new branch and create a PR to main.
  • Added scripts/update_version. The previous step uses this script to update the patch version number.

@Tuseeq1 Tuseeq1 requested a review from Ekrekr September 6, 2024 18:03
Copy link
Contributor

@Ekrekr Ekrekr left a comment

Choose a reason for hiding this comment

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

This fails tests currently, I think you can have multiple options for which cloud build file to use for testing. That would prevent merging this and having tests broken until it is updated

image

cloudbuild-publish.yaml Outdated Show resolved Hide resolved
cloudbuild-publish.yaml Outdated Show resolved Hide resolved
cloudbuild-publish.yaml Outdated Show resolved Hide resolved
cloudbuild-publish.yaml Outdated Show resolved Hide resolved
cloudbuild-test.yaml Outdated Show resolved Hide resolved
cloudbuild-version.yaml Outdated Show resolved Hide resolved
cloudbuild-version.yaml Show resolved Hide resolved
cloudbuild-test.yaml Outdated Show resolved Hide resolved
cloudbuild-test.yaml Outdated Show resolved Hide resolved
cloudbuild-version.yaml Show resolved Hide resolved
cloudbuild-version.yaml Outdated Show resolved Hide resolved
Comment on lines +7 to +8
resolved "https://us-npm.pkg.dev/artifact-foundry-prod/ah-3p-staging-npm/@babel/code-frame/-/code-frame-7.8.3.tgz"
integrity "sha1-M+JZA9dIEYFTThLsCiXxa2/PQZ4=sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g== sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g=="
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the process for installing new packages now, or bumping versions? Does yarn install x@1 still work?

Copy link
Member Author

Choose a reason for hiding this comment

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

no.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, what is the process?

Copy link
Member Author

Choose a reason for hiding this comment

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

ideally.

bazel run @nodejs//:yarn config set registry https://us-npm.pkg.dev/artifact-foundry-prod/ah-3p-staging-npm/
bazel run @nodejs//:yarn add x@1.

Copy link
Contributor

@Ekrekr Ekrekr Sep 13, 2024

Choose a reason for hiding this comment

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

That's not terrible.

It would be good to document this, right? https://github.com/dataform-co/dataform/blob/main/contributing.md#add-new-npm-dependencies

cloudbuild-publish.yaml Outdated Show resolved Hide resolved
scripts/update_version Outdated Show resolved Hide resolved
cloudbuild-publish.yaml Outdated Show resolved Hide resolved
cloudbuild-publish.yaml Show resolved Hide resolved
cloudbuild-test.yaml Outdated Show resolved Hide resolved
scripts/create_gh_pr Outdated Show resolved Hide resolved
@Tuseeq1 Tuseeq1 requested a review from Ekrekr September 12, 2024 09:57
cloudbuild-test.yaml Outdated Show resolved Hide resolved
@Tuseeq1 Tuseeq1 merged commit 840bb5b into main Sep 13, 2024
4 checks passed
@Tuseeq1 Tuseeq1 deleted the MOSS branch September 13, 2024 16:00
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