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

Enable tag-based deployment for dbt-metricflow #1349

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

tlento
Copy link
Contributor

@tlento tlento commented Jul 25, 2024

We need to be able to start deploying dbt-metricflow via tags that
trigger a deployment action instead of relying on manual deployment.

This is necessary for two reasons:

  1. The MetricFlow repository is evolving to allow for multiple
    package deployments in distinctive ways, and each package would benefit
    from a set of pre-deployment steps.
  2. With the CLI now bundled with dbt-metricflow we need a structured way
    of adding and deploying patch fixes for versions that are too far
    behind the current repo main branch to deploy off of main.

Therefore, this PR splits our PyPI deployment action into two separate
versions with different tag-format triggers, one for MetricFlow and
the other for dbt-metricflow. Authentication for dbt-metricflow will
be managed via PyPI's Trusted Publisher mechanism. MetricFlow will
follow suit once the relevant PyPI enrollments are ready.

Note these are separate files with some duplication here, but it's minimal,
and we expect further divergence over time as we develop package-specific
pre-deployment tests for these packages.

We need to be able to start deploying dbt-metricflow via tags that
trigger a deployment action instead of relying on manual deployment.

This is necessary for two reasons:

1. The MetricFlow repository is evolving to allow for multiple
package deployments in distinctive ways, and each package would benefit
from a set of pre-deployment steps.
2. With the CLI now bundled with dbt-metricflow we  need a structured way
of adding and deploying patch fixes for versions that are too far
behind the current repo main branch to deploy off of main.

Therefore, this PR splits our PyPI deployment action into two separate
versions with different tag-format triggers, one for MetricFlow and
the other for dbt-metricflow. Authentication for dbt-metricflow will
be managed via PyPI's Trusted Publisher mechanism. MetricFlow will
follow suit once the relevant PyPI enrollments are ready.

Note these are separate files with some duplication here, but it's minimal,
and we expect further divergence over time as we develop package-specific
pre-deployment tests for these packages.
@tlento tlento merged commit f3fc3c6 into main Jul 25, 2024
43 checks passed
@tlento tlento deleted the enable-dbt-metricflow-tag-deployment branch July 25, 2024 22:23
tlento added a commit that referenced this pull request Jul 27, 2024
We need to be able to start deploying dbt-metricflow via tags that
trigger a deployment action instead of relying on manual deployment.

This is necessary for two reasons:

1. The MetricFlow repository is evolving to allow for multiple
package deployments in distinctive ways, and each package would benefit
from a set of pre-deployment steps.
2. With the CLI now bundled with dbt-metricflow we need a structured way
of adding and deploying patch fixes for versions that are too far
behind the current repo main branch to deploy off of main.

Therefore, this PR splits our PyPI deployment action into two separate
versions with different tag-format triggers, one for MetricFlow and
the other for dbt-metricflow. Authentication for dbt-metricflow will
be managed via PyPI's Trusted Publisher mechanism. MetricFlow will
follow suit once the relevant PyPI enrollments are ready.

Note these are separate files with some duplication here, but it's
minimal,
and we expect further divergence over time as we develop
package-specific
pre-deployment tests for these packages.
tlento added a commit that referenced this pull request Jul 30, 2024
We need to be able to start deploying dbt-metricflow via tags that
trigger a deployment action instead of relying on manual deployment.

This is necessary for two reasons:

1. The MetricFlow repository is evolving to allow for multiple
package deployments in distinctive ways, and each package would benefit
from a set of pre-deployment steps.
2. With the CLI now bundled with dbt-metricflow we need a structured way
of adding and deploying patch fixes for versions that are too far
behind the current repo main branch to deploy off of main.

Therefore, this PR splits our PyPI deployment action into two separate
versions with different tag-format triggers, one for MetricFlow and
the other for dbt-metricflow. Authentication for dbt-metricflow will
be managed via PyPI's Trusted Publisher mechanism. MetricFlow will
follow suit once the relevant PyPI enrollments are ready.

Note these are separate files with some duplication here, but it's
minimal,
and we expect further divergence over time as we develop
package-specific
pre-deployment tests for these packages.
tlento added a commit that referenced this pull request Jul 30, 2024
#1362)

Backport of three PRs required to enable tag-based deployment from the 
`support/dbt-metricflow-0.7.x` branch. Specifically:

- **Enable tag-based deployment for dbt-metricflow (#1349)**
- **Remove access token reference for PyPI (#1350)**
- **Enable Trusted Publishing for PyPI actions (#1356)**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants