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

Only record ecosystem versions when flag set #7516

Merged
merged 1 commit into from
Jul 4, 2023

Conversation

jeffwidman
Copy link
Member

@jeffwidman jeffwidman commented Jul 3, 2023

There's no point in recording the versions on GHES / non-cloud instances because we can't access that data for telemetry purposes. So put it behind a feature flag.

This will also make it so later on when we do the rename of record_package_manager_version to record_ecosystem_versions, there is less to worry about for backwards incompatible changes on GHES.

Before merging this, first need to merge the internal change that sets this feature flag, so that we don't lose visibility on cloud after we merge it.

Related:

@jeffwidman
Copy link
Member Author

Smoke test failures are expected, because it doesn't pass the flag.

Since this is a flag we'd want to run for all smoke tests, I think we need to update the cli to always pass the flag, rather than updating the individual the smoke tests.

@jeffwidman jeffwidman marked this pull request as ready for review July 4, 2023 00:51
@jeffwidman jeffwidman requested a review from a team as a code owner July 4, 2023 00:51
Copy link
Contributor

@brrygrdn brrygrdn left a comment

Choose a reason for hiding this comment

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

👍🏻

# TODO: The flag is named `record_ecosystem_versions` because `package_manager_version` is getting renamed to
# to that shortly... but splitting into separate PR's for lower risk/easiery testability. Once the follow-on PR
# with the rename lands, the name confusion will disappear.
if Experiments.enabled?(:record_ecosystem_versions)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nothing to do with this change, but I wonder if we should eventually split Experiments into Features for long-lived switches and Experiments for short-term ones 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Totally agree. I think the internal repo that controls setting these flags will be the best place to discuss a potential refactoring (the result of which would then flow out here into core).

There's no point in recording the versions on GHES / non-cloud instances
because we can't access that data for telemetry purposes. So put it
behind a feature flag.

This will also make it so later on when we do the rename of
`record_package_manager_version` to `record_ecosystem_versions`, there
is less to worry about for backwards incompatible changes on GHES.
@jeffwidman jeffwidman force-pushed the require-feature-flag-to-record-versions branch from 00b6bdf to 017b9a2 Compare July 4, 2023 14:43
@jeffwidman
Copy link
Member Author

As mentioned elsewhere, going to merge despite the failing smoke tests as there's a chain of connected PR's around this ecosystem metrics refactor, split apart for easier review, and then will update the smoke tests at the end once they land.

@jeffwidman jeffwidman enabled auto-merge (squash) July 4, 2023 14:45
@jeffwidman jeffwidman merged commit cd72277 into main Jul 4, 2023
@jeffwidman jeffwidman deleted the require-feature-flag-to-record-versions branch July 4, 2023 14:47
brettfo pushed a commit to brettfo/dependabot-core that referenced this pull request Oct 11, 2023
There's no point in recording the versions on GHES / non-cloud instances
because we can't access that data for telemetry purposes. So put it
behind a feature flag.

This will also make it so later on when we do the rename of
`record_package_manager_version` to `record_ecosystem_versions`, there
is less to worry about for backwards incompatible changes on GHES.
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