@uchandran Looks good to me, thanks!
Updates mentions of agentic and classic versions of GitLab Duo Chat in UI copy to align with the latest guidance.
It also fixes a few other terminology mentions to align with the style guide - mainly, to ensure we're saying GitLab before Duo in most places (per legal guidance).
This is an update after closing !3010. It reflects the latest terminology confirmed in gitlab-org/gitlab!226691+
fix: Bug fix fixes - a user-facing issue in production - included in changelogfeature: New feature - a user-facing change which adds functionality - included in changelogBREAKING CHANGE: (fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelogMohammed Osumah (08cb3c8c) at 16 Mar 19:38
style: fix lint
Mohammed Osumah (c6bf87b8) at 16 Mar 19:28
test: fix compile issue
This MR fixes the handling of the 422 error when users don't have a default GitLab Duo namespace selected. Previously, this error was not being surfaced to users, causing the usage quota check to pass incorrectly and allowing code suggestions to remain enabled when they shouldn't be.
isMissingDefaultNamespaceError() helper - Detects 422 errors with missing_default_duo in the response bodyCodeSuggestionsCreditsCheck - Now emits a missingDefaultNamespace event when the error is detectedCodeSuggestionsMissingDefaultNamespaceCheck - New state check that listens to the credits check and manages the missing namespace stateSUGGESTIONS_NO_DEFAULT_NAMESPACE in the feature state management typesCODE_SUGGESTIONS_CHECKS_PRIORITY_ORDERED
/api/v4/code_suggestions/direct_access returns a 422 error, the credits check detects itmissingDefaultNamespace eventIssue #1907
To test this MR, follow these steps:
fix: Bug fix fixes - a user-facing issue in production - included in changelogfeature: New feature - a user-facing change which adds functionality - included in changelogBREAKING CHANGE: (fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelogPassing this over to @erran for a maintainer review
Many test files across the codebase define near-identical inline helpers for async generator operations — collecting yielded values, draining generators, creating generators from arrays. They all do the same thing but have different names in each file (createEventStream, collectGeneratorEvents, consumeAllGeneratorEvents, drainGenerator, etc.).
This adds three shared helpers to @gitlab-org/test-utils and replaces all the inline definitions across 7 test files.
Issue #2143
mise install && npm installnpm run test:unit@elwyn-gitlab Changes look good to me!
Mohammed Osumah (33252c89) at 13 Mar 18:40
fix: handle 422 error when default namespace not selected
Thanks @jay_mccure the changes look good to me! I also retried the failing jobs in the pipeline for you
This change removes the automated metrics collection system from the end-to-end testing pipeline. Previously, after running browser tests, the system would automatically send test results and performance data to an InfluxDB database for monitoring and analysis purposes.
The influx instance has been removed and this hasn't been working for 4+ months, prior to that, these metrics were not being used.
This will fix this warning: https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/jobs/13463059948#L1311
gitlab-org/quality/analytics#30 (comment 2841647568) gitlab-org/quality/quality-engineering/team-tasks#4325
src/browser or src/common has been modified, please consider interoperability with the Web IDE. See Running the Extension in WebIDE.
fix: Bug fix fixes - a user-facing issue in production - included in changelogfeature: New feature - a user-facing change which adds functionality - included in changelogBREAKING CHANGE: (fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog@lauraionel can I ask for a first review of this MR?
Mohammed Osumah (22653c7a) at 13 Mar 02:38
refactor: fix duo comments
@GitLabDuo I think www.gitlab.com is a permanent redirect to https://gitlab.com, so I think this should be fine
Not sure if we have to worry about this to be honest
Mohammed Osumah (fa821a1a) at 13 Mar 02:27
refactor: update code based on duo review comments
Mohammed Osumah (dcd74c0d) at 13 Mar 00:46
refactor: make compareVersions util cleaner
Snowplow events are currently sent directly from the editor extensions. We want to route these events through the GitLab instance for a number of reasons:
We need to support any versions of GitLab and both self-managed and gitlab.com.
| GitLab instance | snowplowprd.trx.gitlab.net | Event forwarding |
|---|---|---|
| Gitlab.com - any version | X | |
SM - version < 18.0
|
X | |
SM - version >= 18.0
|
X |
Implemented smart routing for Snowplow telemetry events based on GitLab instance version. Events are now routed through the GitLab instance for self-managed instances >= 18.0, while continuing to send directly to Snowplow for gitlab.com and self-managed instances < 18.0.
Closes #2086
To manually test with GDK:
Start your local GDK
Start the extension host and open a workspace folder that was cloned from your gdk
Verify events are routed to <gdk_url>/-/collect_events for version >= 18.0
To test with older version, modify GDK's VERSION file to a version less than 18.0 (e.g. 17.6.0) and restart
Verify events are routed to snowplowprd.trx.gitlab.net for version < 18.0
Verify events are routed to snowplowprd.trx.gitlab.net for gitlab.com
Confirm telemetry is disabled when do-not-track setting is enabled
To manually test with Gitlab.com
When custom tracking url is set:
gitlab.trackingUrl is set, verify that the extension still respects itfix: Bug fix fixes - a user-facing issue in production - included in changelogfeature: New feature - a user-facing change which adds functionality - included in changelogBREAKING CHANGE: (fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelogCloses #2086
Mohammed Osumah (9d6dc3a4) at 12 Mar 14:30
test: fix event forward util test
@ohoral changes look good to me!