SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
chore: modern fmts and lints for tests/ (#11074)
Pandeyf62024ad3f54
diff --git a/.github/workflows/e2eci.yaml b/.github/workflows/e2eci.yamlindex c625f2262a..fed4fabe53 100644--- a/.github/workflows/e2eci.yaml+++ b/.github/workflows/e2eci.yaml@@ -9,6 +9,27 @@ on:- labeledjobs:+ fmtlint:+ if: |+ ((github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork && github.event.pull_request.user.login != 'dependabot[bot]' && ! contains(github.event.pull_request.labels.*.name, 'safe-to-test')) ||+ (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe-to-test'))) && contains(github.event.pull_request.labels.*.name, 'safe-to-e2e')+ runs-on: ubuntu-latest+ steps:+ - name: checkout+ uses: actions/checkout@v4+ - name: node+ uses: actions/setup-node@v4+ with:+ node-version: lts/*+ - name: install+ run: |+ cd tests/e2e && yarn install --frozen-lockfile+ - name: fmt+ run: |+ cd tests/e2e && yarn fmt:check+ - name: lint+ run: |+ cd tests/e2e && yarn linttest:strategy:fail-fast: falsediff --git a/Makefile b/Makefileindex 28682deff9..2ab82547b4 100644--- a/Makefile+++ b/Makefile@@ -201,14 +201,12 @@ docker-buildx-enterprise: go-build-enterprise js-build# python commands##############################################################.PHONY: py-fmt-py-fmt: ## Run black across the shared tests project- @cd tests && uv run black .+py-fmt: ## Run ruff format across the shared tests project+ @cd tests && uv run ruff format ..PHONY: py-lint-py-lint: ## Run lint across the shared tests project- @cd tests && uv run isort .- @cd tests && uv run autoflake .- @cd tests && uv run pylint .+py-lint: ## Run ruff check across the shared tests project+ @cd tests && uv run ruff check --fix ..PHONY: py-test-setuppy-test-setup: ## Bring up the shared SigNoz backend used by integration and e2e testsdiff --git a/frontend/e2e/test-plan/README.md b/frontend/e2e/test-plan/README.mddeleted file mode 100644index 6853834d18..0000000000--- a/frontend/e2e/test-plan/README.md+++ /dev/null@@ -1,29 +0,0 @@-# SigNoz E2E Test Plan--This directory contains the structured test plan for the SigNoz application. Each subfolder corresponds to a main module or feature area, and contains scenario files for all user journeys, edge cases, and cross-module flows. These documents serve as the basis for generating Playwright MCP-driven E2E tests.--## Structure--- Each main module (e.g., logs, traces, dashboards, alerts, settings, etc.) has its own folder or markdown file.-- Each file contains detailed scenario templates, including preconditions, step-by-step actions, and expected outcomes.-- Use these documents to write, review, and update test cases as the application evolves.--## Folders & Files--- `logs/` — Logs module scenarios-- `traces/` — Traces module scenarios-- `metrics/` — Metrics module scenarios-- `dashboards/` — Dashboards module scenarios-- `alerts/` — Alerts module scenarios-- `services/` — Services module scenarios-- `settings/` — Settings and all sub-settings scenarios-- `onboarding/` — Onboarding and signup flows-- `navigation/` — Navigation, sidebar, and cross-module flows-- `exceptions/` — Exception and error handling scenarios-- `external-apis/` — External API monitoring scenarios-- `messaging-queues/` — Messaging queue scenarios-- `infrastructure/` — Infrastructure monitoring scenarios-- `help-support/` — Help & support scenarios-- `user-preferences/` — User preferences and personalization scenarios-- `service-map/` — Service map scenarios-- `saved-views/` — Saved views scenariosdiff --git a/frontend/e2e/test-plan/settings/README.md b/frontend/e2e/test-plan/settings/README.mddeleted file mode 100644index 2e424598e9..0000000000--- a/frontend/e2e/test-plan/settings/README.md+++ /dev/null@@ -1,16 +0,0 @@-# Settings Module Test Plan--This folder contains E2E test scenarios for the Settings module and all sub-settings.--## Scenario Categories--- General settings (org/workspace, branding, version info)-- Billing settings-- Members & SSO-- Custom domain-- Integrations-- Notification channels-- API keys-- Ingestion-- Account settings (profile, password, preferences)-- Keyboard shortcutsdiff --git a/frontend/e2e/test-plan/settings/account-settings.md b/frontend/e2e/test-plan/settings/account-settings.mddeleted file mode 100644index 63677d662f..0000000000--- a/frontend/e2e/test-plan/settings/account-settings.md+++ /dev/null@@ -1,43 +0,0 @@-# Account Settings E2E Scenarios (Updated)--## 1. Update Name--- **Precondition:** User is logged in-- **Steps:**- 1. Click 'Update name' button- 2. Edit name field in the modal/dialog- 3. Save changes-- **Expected:** Name is updated in the UI--## 2. Update Email--- **Note:** The email field is not editable in the current UI.--## 3. Reset Password--- **Precondition:** User is logged in-- **Steps:**- 1. Click 'Reset password' button- 2. Complete reset flow (modal/dialog or external flow)-- **Expected:** Password is reset--## 4. Toggle 'Adapt to my timezone'--- **Precondition:** User is logged in-- **Steps:**- 1. Toggle 'Adapt to my timezone' switch-- **Expected:** Timezone adapts accordingly (UI feedback/confirmation should be checked)--## 5. Toggle Theme (Dark/Light)--- **Precondition:** User is logged in-- **Steps:**- 1. Toggle theme radio buttons ('Dark', 'Light Beta')-- **Expected:** Theme changes--## 6. Toggle Sidebar Always Open--- **Precondition:** User is logged in-- **Steps:**- 1. Toggle 'Keep the primary sidebar always open' switch-- **Expected:** Sidebar remains open/closed as per togglediff --git a/frontend/e2e/test-plan/settings/api-keys.md b/frontend/e2e/test-plan/settings/api-keys.mddeleted file mode 100644index 6e2b81336f..0000000000--- a/frontend/e2e/test-plan/settings/api-keys.md+++ /dev/null@@ -1,26 +0,0 @@-# API Keys E2E Scenarios (Updated)--## 1. Create a New API Key--- **Precondition:** User is admin-- **Steps:**- 1. Click 'New Key' button- 2. Enter details in the modal/dialog- 3. Click 'Save'-- **Expected:** API key is created and listed in the table--## 2. Revoke an API Key--- **Precondition:** API key exists-- **Steps:**- 1. In the table, locate the API key row- 2. Click the revoke/delete button (icon button in the Action column)- 3. Confirm if prompted-- **Expected:** API key is revoked/removed from the table--## 3. View API Key Usage--- **Precondition:** API key exists-- **Steps:**- 1. View the 'Last used' and 'Expired' columns in the table-- **Expected:** Usage data is displayed for each API keydiff --git a/frontend/e2e/test-plan/settings/billing.md b/frontend/e2e/test-plan/settings/billing.mddeleted file mode 100644index 083fe6a6b2..0000000000--- a/frontend/e2e/test-plan/settings/billing.md+++ /dev/null@@ -1,17 +0,0 @@-# Billing Settings E2E Scenarios (Updated)--## 1. View Billing Information--- **Precondition:** User is admin-- **Steps:**- 1. Navigate to Billing Settings- 2. Wait for the billing chart/data to finish loading-- **Expected:**- - Billing heading and subheading are displayed- - Usage/cost table is visible with columns: Unit, Data Ingested, Price per Unit, Cost (Billing period to date)- - "Download CSV" and "Manage Billing" buttons are present and enabled after loading- - Test clicking "Download CSV" and "Manage Billing" for expected behavior (e.g., file download, navigation, or modal)--> Note: If these features are expected to trigger specific flows, document the observed behavior for each button.--diff --git a/frontend/e2e/test-plan/settings/custom-domain.md b/frontend/e2e/test-plan/settings/custom-domain.mddeleted file mode 100644index ba58876ff8..0000000000--- a/frontend/e2e/test-plan/settings/custom-domain.md+++ /dev/null@@ -1,18 +0,0 @@-# Custom Domain E2E Scenarios (Updated)--## 1. Add or Update Custom Domain--- **Precondition:** User is admin-- **Steps:**- 1. Click 'Customize team’s URL' button- 2. In the 'Customize your team’s URL' dialog, enter the preferred subdomain- 3. Click 'Apply Changes'-- **Expected:** Domain is set/updated for the team (UI feedback/confirmation should be checked)--## 2. Verify Domain Ownership--- **Note:** No explicit 'Verify' button or flow is present in the current UI. If verification is required, it may be handled automatically or via support.--## 3. Remove a Custom Domain--- **Note:** No explicit 'Remove' button or flow is present in the current UI. The only available action is to update the subdomain.diff --git a/frontend/e2e/test-plan/settings/general.md b/frontend/e2e/test-plan/settings/general.mddeleted file mode 100644index 58786dd831..0000000000--- a/frontend/e2e/test-plan/settings/general.md+++ /dev/null@@ -1,31 +0,0 @@-# General Settings E2E Scenarios--## 1. View General Settings--- **Precondition:** User is logged in-- **Steps:**- 1. Navigate to General Settings-- **Expected:** General settings are displayed--## 2. Update Organization/Workspace Name--- **Precondition:** User is admin-- **Steps:**- 1. Edit organization/workspace name- 2. Save changes-- **Expected:** Name is updated and visible--## 3. Update Logo or Branding--- **Precondition:** User is admin-- **Steps:**- 1. Upload new logo/branding- 2. Save changes-- **Expected:** Branding is updated--## 4. View Version/Build Info--- **Precondition:** User is logged in-- **Steps:**- 1. View version/build info section-- **Expected:** Version/build info is displayeddiff --git a/frontend/e2e/test-plan/settings/ingestion.md b/frontend/e2e/test-plan/settings/ingestion.mddeleted file mode 100644index 96a600bb71..0000000000--- a/frontend/e2e/test-plan/settings/ingestion.md+++ /dev/null@@ -1,20 +0,0 @@-# Ingestion E2E Scenarios (Updated)--## 1. View Ingestion Sources--- **Precondition:** User is admin-- **Steps:**- 1. Navigate to the Integrations page-- **Expected:** List of available data sources/integrations is displayed--## 2. Configure Ingestion Sources--- **Precondition:** User is admin-- **Steps:**- 1. Click 'Configure' for a data source/integration- 2. Complete the configuration flow (modal or page, as available)-- **Expected:** Source is configured (UI feedback/confirmation should be checked)--## 3. Disable/Enable Ingestion--- **Note:** No visible enable/disable toggle for ingestion sources in the current UI. Ingestion is managed via the Integrations configuration flows.diff --git a/frontend/e2e/test-plan/settings/integrations.md b/frontend/e2e/test-plan/settings/integrations.mddeleted file mode 100644index 1d6bfdda70..0000000000--- a/frontend/e2e/test-plan/settings/integrations.md+++ /dev/null@@ -1,51 +0,0 @@-# Integrations E2E Scenarios (Updated)--## 1. View List of Available Integrations--- **Precondition:** User is logged in-- **Steps:**- 1. Navigate to Integrations-- **Expected:** List of integrations is displayed, each with a name, description, and 'Configure' button--## 2. Search Integrations by Name/Type--- **Precondition:** Integrations exist-- **Steps:**- 1. Enter search/filter criteria in the 'Search for an integration...' box-- **Expected:** Only matching integrations are shown--## 3. Connect a New Integration--- **Precondition:** User is admin-- **Steps:**- 1. Click 'Configure' for an integration- 2. Complete the configuration flow (modal or page, as available)-- **Expected:** Integration is connected/configured (UI feedback/confirmation should be checked)--## 4. Disconnect an Integration--- **Note:** No visible 'Disconnect' button in the main list. This may be available in the configuration flow for a connected integration.--## 5. Configure Integration Settings--- **Note:** Configuration is handled in the flow after clicking 'Configure' for an integration.--## 6. Test Integration Connection--- **Note:** No visible 'Test Connection' button in the main list. This may be available in the configuration flow.--## 7. View Integration Status/Logs--- **Note:** No visible status/logs section in the main list. This may be available in the configuration flow.--## 8. Filter Integrations by Category--- **Note:** No explicit category filter in the current UI, only a search box.--## 9. View Integration Documentation/Help--- **Note:** No visible 'Help/Docs' button in the main list. This may be available in the configuration flow.--## 10. Update Integration Configuration--- **Note:** Configuration is handled in the flow after clicking 'Configure' for an integration.diff --git a/frontend/e2e/test-plan/settings/keyboard-shortcuts.md b/frontend/e2e/test-plan/settings/keyboard-shortcuts.mddeleted file mode 100644index 753624e467..0000000000--- a/frontend/e2e/test-plan/settings/keyboard-shortcuts.md+++ /dev/null@@ -1,19 +0,0 @@-# Keyboard Shortcuts E2E Scenarios (Updated)--## 1. View Keyboard Shortcuts--- **Precondition:** User is logged in-- **Steps:**- 1. Navigate to Keyboard Shortcuts-- **Expected:** Shortcuts are displayed in categorized tables (Global, Logs Explorer, Query Builder, Dashboard)--## 2. Customize Keyboard Shortcuts (if supported)--- **Note:** Customization is not available in the current UI. Shortcuts are view-only.--## 3. Use Keyboard Shortcuts for Navigation/Actions--- **Precondition:** User is logged in-- **Steps:**- 1. Use shortcut for navigation/action (e.g., shift+s for Services, cmd+enter for running query)-- **Expected:** Navigation/action is performed as per shortcutdiff --git a/frontend/e2e/test-plan/settings/members-sso.md b/frontend/e2e/test-plan/settings/members-sso.mddeleted file mode 100644index 8fd84f391c..0000000000--- a/frontend/e2e/test-plan/settings/members-sso.md+++ /dev/null@@ -1,49 +0,0 @@-# Members & SSO E2E Scenarios (Updated)--## 1. Invite a New Member--- **Precondition:** User is admin-- **Steps:**- 1. Click 'Invite Members' button- 2. In the 'Invite team members' dialog, enter email address, name (optional), and select role- 3. (Optional) Click 'Add another team member' to invite more- 4. Click 'Invite team members' to send invite(s)-- **Expected:** Pending invite appears in the 'Pending Invites' table--## 2. Remove a Member--- **Precondition:** User is admin, member exists-- **Steps:**- 1. In the 'Members' table, locate the member row- 2. Click 'Delete' in the Action column- 3. Confirm removal if prompted-- **Expected:** Member is removed from the table--## 3. Update Member Roles--- **Precondition:** User is admin, member exists-- **Steps:**- 1. In the 'Members' table, locate the member row- 2. Click 'Edit' in the Action column- 3. Change role in the edit dialog/modal- 4. Save changes-- **Expected:** Member role is updated in the table--## 4. Configure SSO--- **Precondition:** User is admin-- **Steps:**- 1. In the 'Authenticated Domains' section, locate the domain row- 2. Click 'Configure SSO' or 'Edit Google Auth' as available- 3. Complete SSO provider configuration in the modal/dialog- 4. Save settings-- **Expected:** SSO is configured for the domain--## 5. Login via SSO--- **Precondition:** SSO is configured-- **Steps:**- 1. Log out from the app- 2. On the login page, click 'Login with SSO'- 3. Complete SSO login flow-- **Expected:** User is logged in via SSOdiff --git a/frontend/e2e/test-plan/settings/notification-channels.md b/frontend/e2e/test-plan/settings/notification-channels.mddeleted file mode 100644index 36e4098b8d..0000000000--- a/frontend/e2e/test-plan/settings/notification-channels.md+++ /dev/null@@ -1,39 +0,0 @@-# Notification Channels E2E Scenarios (Updated)--## 1. Add a New Notification Channel--- **Precondition:** User is admin-- **Steps:**- 1. Click 'New Alert Channel' button- 2. In the 'New Notification Channel' form, fill in required fields (Name, Type, Webhook URL, etc.)- 3. (Optional) Toggle 'Send resolved alerts'- 4. (Optional) Click 'Test' to send a test notification- 5. Click 'Save' to add the channel-- **Expected:** Channel is added and listed in the table--## 2. Test Notification Channel--- **Precondition:** Channel is being created or edited-- **Steps:**- 1. In the 'New Notification Channel' or 'Edit Notification Channel' form, click 'Test'-- **Expected:** Test notification is sent (UI feedback/confirmation should be checked)--## 3. Remove a Notification Channel--- **Precondition:** Channel is added-- **Steps:**- 1. In the table, locate the channel row- 2. Click 'Delete' in the Action column- 3. Confirm removal if prompted-- **Expected:** Channel is removed from the table--## 4. Update Notification Channel Settings--- **Precondition:** Channel is added-- **Steps:**- 1. In the table, locate the channel row- 2. Click 'Edit' in the Action column- 3. In the 'Edit Notification Channel' form, update fields as needed- 4. (Optional) Click 'Test' to send a test notification- 5. Click 'Save' to update the channel-- **Expected:** Settings are updateddiff --git a/frontend/e2e/test-plan/validation-report.md b/frontend/e2e/test-plan/validation-report.mddeleted file mode 100644index 29dd62f4bb..0000000000--- a/frontend/e2e/test-plan/validation-report.md+++ /dev/null@@ -1,199 +0,0 @@-# SigNoz Test Plan Validation Report--This report documents the validation of the E2E test plan against the current live application using Playwright MCP. Each module is reviewed for coverage, gaps, and required updates.-------## Home Module--- **Coverage:**- - Widgets for logs, traces, metrics, dashboards, alerts, services, saved views, onboarding checklist- - Quick access buttons: Explore Logs, Create dashboard, Create an alert-- **Gaps/Updates:**- - Add scenarios for checklist interactions (e.g., “I’ll do this later”, progress tracking)- - Add scenarios for Saved Views and cross-module links- - Add scenario for onboarding checklist completion-------## Logs Module--- **Coverage:**- - Explorer, Pipelines, Views tabs- - Filtering by service, environment, severity, host, k8s, etc.- - Search, save view, create alert, add to dashboard, export, view mode switching-- **Gaps/Updates:**- - Add scenario for quick filter customization- - Add scenario for “Old Explorer” button- - Add scenario for frequency chart toggle- - Add scenario for “Stage & Run Query” workflow-------## Traces Module--- **Coverage:**- - Tabs: Explorer, Funnels, Views- - Filtering by name, error status, duration, environment, function, service, RPC, status code, HTTP, trace ID, etc.- - Search, save view, create alert, add to dashboard, export, view mode switching (List, Traces, Time Series, Table)- - Pagination, quick filter customization, group by, aggregation-- **Gaps/Updates:**- - Add scenario for quick filter customization- - Add scenario for “Stage & Run Query” workflow- - Add scenario for all view modes (List, Traces, Time Series, Table)- - Add scenario for group by/aggregation- - Add scenario for trace detail navigation (clicking on trace row)- - Add scenario for Funnels tab (create/edit/delete funnel)- - Add scenario for Views tab (manage saved views)-------## Metrics Module--- **Coverage:**- - Tabs: Summary, Explorer, Views- - Filtering by metric, type, unit, etc.- - Search, save view, add to dashboard, export, view mode switching (chart, table, proportion view)- - Pagination, group by, aggregation, custom queries-- **Gaps/Updates:**- - Add scenario for Proportion View in Summary- - Add scenario for all view modes (chart, table, proportion)- - Add scenario for group by/aggregation- - Add scenario for custom queries in Explorer- - Add scenario for Views tab (manage saved views)-------## Dashboards Module--- **Coverage:**- - List, search, and filter dashboards- - Create new dashboard (button and template link)- - Edit, delete, and view dashboard details- - Add/edit/delete widgets (implied by dashboard detail)- - Pagination through dashboards-- **Gaps/Updates:**- - Add scenario for browsing dashboard templates (external link)- - Add scenario for requesting new template- - Add scenario for dashboard owner and creation info- - Add scenario for dashboard tags and filtering by tags- - Add scenario for dashboard sharing (if available)- - Add scenario for dashboard image/preview-------## Messaging Queues Module--- **Coverage:**- - Overview tab: queue metrics, filters (Service Name, Span Name, Msg System, Destination, Kind)- - Search across all columns- - Pagination of queue data- - Sync and Share buttons- - Tabs for Kafka and Celery-- **Gaps/Updates:**- - Add scenario for Kafka tab (detailed metrics, actions)- - Add scenario for Celery tab (detailed metrics, actions)- - Add scenario for filter combinations and edge cases- - Add scenario for sharing queue data- - Add scenario for time range selection-------## External APIs Module--- **Coverage:**- - Accessed via side navigation under MORE- - Explorer tab: domain, endpoints, last used, rate, error %, avg. latency- - Filters: Deployment Environment, Service Name, Rpc Method, Show IP addresses- - Table pagination- - Share and Stage & Run Query buttons-- **Gaps/Updates:**- - Add scenario for customizing quick filters- - Add scenario for running and staging queries- - Add scenario for sharing API data- - Add scenario for edge cases in filters and table data-------## Alerts Module--- **Coverage:**- - Alert Rules tab: list, search, create (New Alert), edit, delete, enable/disable, severity, labels, actions- - Triggered Alerts tab (visible in tablist)- - Configuration tab (visible in tablist)- - Table pagination-- **Gaps/Updates:**- - Add scenario for triggered alerts (view, acknowledge, resolve)- - Add scenario for alert configuration (settings, integrations)- - Add scenario for edge cases in alert creation and management- - Add scenario for searching and filtering alerts-------## Integrations Module--- **Coverage:**- - Integrations tab: list, search, configure (e.g., AWS), request new integration- - One-click setup for AWS monitoring- - Request more integrations (form)-- **Gaps/Updates:**- - Add scenario for configuring integrations (step-by-step)- - Add scenario for searching and filtering integrations- - Add scenario for requesting new integrations- - Add scenario for edge cases (e.g., failed configuration)-------## Exceptions Module--- **Coverage:**- - All Exceptions: list, search, filter (Deployment Environment, Service Name, Host Name, K8s Cluster/Deployment/Namespace, Net Peer Name)- - Table: Exception Type, Error Message, Count, Last Seen, First Seen, Application- - Pagination- - Exception detail links- - Share and Stage & Run Query buttons-- **Gaps/Updates:**- - Add scenario for exception detail view- - Add scenario for advanced filtering and edge cases- - Add scenario for sharing and running queries- - Add scenario for error grouping and navigation-------## Service Map Module--- **Coverage:**- - Service Map visualization (main graph)- - Filters: environment, resource attributes- - Time range selection- - Sync and Share buttons-- **Gaps/Updates:**- - Add scenario for interacting with the map (zoom, pan, select service)- - Add scenario for filtering and edge cases- - Add scenario for sharing the map- - Add scenario for time range and environment combinations-------## Billing Module--- **Coverage:**- - Billing overview: cost monitoring, invoices, CSV download (disabled), manage billing (disabled)- - Teams Cloud section- - Billing table: Unit, Data Ingested, Price per Unit, Cost (Billing period to date)-- **Gaps/Updates:**- - Add scenario for invoice download and management (when enabled)- - Add scenario for cost monitoring and edge cases- - Add scenario for billing table data validation- - Add scenario for permissions and access control-------## Usage Explorer Module--- **Status:**- - Not accessible in the current environment. Removing from test plan flows.-------## [Next modules will be filled as validation proceeds]diff --git a/frontend/e2e/tests/settings/account-settings/account-settings-settings.spec.ts b/frontend/e2e/tests/settings/account-settings/account-settings-settings.spec.tsdeleted file mode 100644index 0cf15e66ce..0000000000--- a/frontend/e2e/tests/settings/account-settings/account-settings-settings.spec.ts+++ /dev/null@@ -1,42 +0,0 @@-import { expect, test } from '@playwright/test';--import { ensureLoggedIn } from '../../../utils/login.util';--test('Account Settings - View and Assert Static Controls', async ({ page }) => {- await ensureLoggedIn(page);-- // 1. Open the sidebar settings menu using data-testid- await page.getByTestId('settings-nav-item').click();-- // 2. Click Account Settings in the dropdown (by role/name or data-testid if available)- await page.getByRole('menuitem', { name: 'Account Settings' }).click();-- // Assert the main tabpanel/heading (confirmed by DOM)- await expect(page.getByTestId('settings-page-title')).toBeVisible();-- // Assert General section and controls (confirmed by DOM)- await expect(- page.getByLabel('My Settings').getByText('General'),- ).toBeVisible();- await expect(page.getByText('Manage your account settings.')).toBeVisible();- await expect(page.getByRole('button', { name: 'Update name' })).toBeVisible();- await expect(- page.getByRole('button', { name: 'Reset password' }),- ).toBeVisible();-- // Assert User Preferences section and controls (confirmed by DOM)- await expect(page.getByText('User Preferences')).toBeVisible();- await expect(- page.getByText('Tailor the SigNoz console to work according to your needs.'),- ).toBeVisible();- await expect(page.getByText('Select your theme')).toBeVisible();-- const themeSelector = page.getByTestId('theme-selector');-- await expect(themeSelector.getByText('Dark')).toBeVisible();- await expect(themeSelector.getByText('Light')).toBeVisible();- await expect(themeSelector.getByText('System')).toBeVisible();-- await expect(page.getByTestId('timezone-adaptation-switch')).toBeVisible();- await expect(page.getByTestId('side-nav-pinned-switch')).toBeVisible();-});diff --git a/frontend/e2e/tests/settings/api-keys/api-keys-settings.spec.ts b/frontend/e2e/tests/settings/api-keys/api-keys-settings.spec.tsdeleted file mode 100644index e91742e47a..0000000000--- a/frontend/e2e/tests/settings/api-keys/api-keys-settings.spec.ts+++ /dev/null@@ -1,42 +0,0 @@-import { expect, test } from '@playwright/test';--import { ensureLoggedIn } from '../../../utils/login.util';--test('API Keys Settings - View and Interact', async ({ page }) => {- await ensureLoggedIn(page);-- // 1. Open the sidebar settings menu using data-testid- await page.getByTestId('settings-nav-item').click();-- // 2. Click Account Settings in the dropdown (by role/name or data-testid if available)- await page.getByRole('menuitem', { name: 'Account Settings' }).click();-- // Assert the main tabpanel/heading (confirmed by DOM)- await expect(page.getByTestId('settings-page-title')).toBeVisible();-- // Focus on the settings page sidenav- await page.getByTestId('settings-page-sidenav').focus();-- // Click API Keys tab in the settings sidebar (by data-testid)- await page.getByTestId('api-keys').click();-- // Assert heading and subheading- await expect(page.getByRole('heading', { name: 'API Keys' })).toBeVisible();- await expect(- page.getByText('Create and manage API keys for the SigNoz API'),- ).toBeVisible();-- // Assert presence of New Key button- const newKeyBtn = page.getByRole('button', { name: 'New Key' });- await expect(newKeyBtn).toBeVisible();-- // Assert table columns- await expect(page.getByText('Last used').first()).toBeVisible();- await expect(page.getByText('Expired').first()).toBeVisible();-- // Assert at least one API key row with action buttons- // Select the first action cell's first button (icon button)- const firstActionCell = page.locator('table tr').nth(1).locator('td').last();- const deleteBtn = firstActionCell.locator('button').first();- await expect(deleteBtn).toBeVisible();-});diff --git a/frontend/e2e/tests/settings/billing/billing-settings.spec.ts b/frontend/e2e/tests/settings/billing/billing-settings.spec.tsdeleted file mode 100644index b8805426d2..0000000000--- a/frontend/e2e/tests/settings/billing/billing-settings.spec.ts+++ /dev/null@@ -1,71 +0,0 @@-import { expect, test } from '@playwright/test';--import { ensureLoggedIn } from '../../../utils/login.util';--// E2E: Billing Settings - View Billing Information and Button Actions--test('View Billing Information and Button Actions', async ({- page,- context,-}) => {- // Ensure user is logged in- await ensureLoggedIn(page);-- // 1. Open the sidebar settings menu using data-testid- await page.getByTestId('settings-nav-item').click();-- // 2. Click Account Settings in the dropdown (by role/name or data-testid if available)- await page.getByRole('menuitem', { name: 'Account Settings' }).click();-- // Assert the main tabpanel/heading (confirmed by DOM)- await expect(page.getByTestId('settings-page-title')).toBeVisible();-- // Focus on the settings page sidenav- await page.getByTestId('settings-page-sidenav').focus();-- // Click Billing tab in the settings sidebar (by data-testid)- await page.getByTestId('billing').click();-- // Wait for billing chart/data to finish loading- await page.getByText('loading').first().waitFor({ state: 'hidden' });-- // Assert visibility of subheading (unique)- await expect(- page.getByText(- 'Manage your billing information, invoices, and monitor costs.',- ),- ).toBeVisible();- // Assert visibility of Teams Cloud heading- await expect(page.getByRole('heading', { name: 'Teams Cloud' })).toBeVisible();-- // Assert presence of summary and detailed tables- await expect(page.getByText('TOTAL SPENT')).toBeVisible();- await expect(page.getByText('Data Ingested')).toBeVisible();- await expect(page.getByText('Price per Unit')).toBeVisible();- await expect(page.getByText('Cost (Billing period to date)')).toBeVisible();-- // Assert presence of alert and note- await expect(- page.getByText('Your current billing period is from', { exact: false }),- ).toBeVisible();- await expect(- page.getByText('Billing metrics are updated once every 24 hours.'),- ).toBeVisible();-- // Test Download CSV button- const [download] = await Promise.all([- page.waitForEvent('download'),- page.getByRole('button', { name: 'cloud-download Download CSV' }).click(),- ]);- // Optionally, check download file name- expect(download.suggestedFilename()).toContain('billing_usage');-- // Test Manage Billing button (opens Stripe in new tab)- const [newPage] = await Promise.all([- context.waitForEvent('page'),- page.getByTestId('header-billing-button').click(),- ]);- await newPage.waitForLoadState();- expect(newPage.url()).toContain('stripe.com');- await newPage.close();-});diff --git a/frontend/e2e/tests/settings/custom-domain/custom-domain-settings.spec.ts b/frontend/e2e/tests/settings/custom-domain/custom-domain-settings.spec.tsdeleted file mode 100644index 19a0247b45..0000000000--- a/frontend/e2e/tests/settings/custom-domain/custom-domain-settings.spec.ts+++ /dev/null@@ -1,52 +0,0 @@-import { expect, test } from '@playwright/test';--import { ensureLoggedIn } from '../../../utils/login.util';--test('Custom Domain Settings - View and Interact', async ({ page }) => {- await ensureLoggedIn(page);-- // 1. Open the sidebar settings menu using data-testid- await page.getByTestId('settings-nav-item').click();-- // 2. Click Account Settings in the dropdown (by role/name or data-testid if available)- await page.getByRole('menuitem', { name: 'Account Settings' }).click();-- // Assert the main tabpanel/heading (confirmed by DOM)- await expect(page.getByTestId('settings-page-title')).toBeVisible();-- // Focus on the settings page sidenav- await page.getByTestId('settings-page-sidenav').focus();-- // Click Custom Domain tab in the settings sidebar (by data-testid)- await page.getByTestId('custom-domain').click();-- // Wait for custom domain chart/data to finish loading- await page.getByText('loading').first().waitFor({ state: 'hidden' });-- // Assert heading and subheading- await expect(- page.getByRole('heading', { name: 'Custom Domain Settings' }),- ).toBeVisible();- await expect(- page.getByText('Personalize your workspace domain effortlessly.'),- ).toBeVisible();-- // Assert presence of Customize team’s URL button- const customizeBtn = page.getByRole('button', {- name: 'Customize team’s URL',- });- await expect(customizeBtn).toBeVisible();- await customizeBtn.click();-- // Assert modal/dialog fields and buttons- await expect(- page.getByRole('dialog', { name: 'Customize your team’s URL' }),- ).toBeVisible();- await expect(page.getByLabel('Team’s URL subdomain')).toBeVisible();- await expect(- page.getByRole('button', { name: 'Apply Changes' }),- ).toBeVisible();- await expect(page.getByRole('button', { name: 'Close' })).toBeVisible();- // Close the modal- await page.getByRole('button', { name: 'Close' }).click();-});diff --git a/frontend/e2e/tests/settings/general/general-settings.spec.ts b/frontend/e2e/tests/settings/general/general-settings.spec.tsdeleted file mode 100644index 346659fe3b..0000000000--- a/frontend/e2e/tests/settings/general/general-settings.spec.ts+++ /dev/null@@ -1,32 +0,0 @@-import { expect, test } from '@playwright/test';--import { ensureLoggedIn } from '../../../utils/login.util';--test('View General Settings', async ({ page }) => {- await ensureLoggedIn(page);-- // 1. Open the sidebar settings menu using data-testid- await page.getByTestId('settings-nav-item').click();-- // 2. Click Account Settings in the dropdown (by role/name or data-testid if available)- await page.getByRole('menuitem', { name: 'Account Settings' }).click();-- // Assert the main tabpanel/heading (confirmed by DOM)- await expect(page.getByTestId('settings-page-title')).toBeVisible();-- // Focus on the settings page sidenav- await page.getByTestId('settings-page-sidenav').focus();-- // Click General tab in the settings sidebar (by data-testid)- await page.getByTestId('general').click();-- // Wait for General tab to be visible- await page.getByRole('tabpanel', { name: 'General' }).waitFor();-- // Assert visibility of definitive/static elements- await expect(page.getByRole('heading', { name: 'Metrics' })).toBeVisible();- await expect(page.getByRole('heading', { name: 'Traces' })).toBeVisible();- await expect(page.getByRole('heading', { name: 'Logs' })).toBeVisible();- await expect(page.getByText('Please')).toBeVisible();- await expect(page.getByRole('link', { name: 'email us' })).toBeVisible();-});diff --git a/frontend/e2e/tests/settings/ingestion/ingestion-settings.spec.ts b/frontend/e2e/tests/settings/ingestion/ingestion-settings.spec.tsdeleted file mode 100644index c18fee0c80..0000000000--- a/frontend/e2e/tests/settings/ingestion/ingestion-settings.spec.ts+++ /dev/null@@ -1,48 +0,0 @@-import { expect, test } from '@playwright/test';--import { ensureLoggedIn } from '../../../utils/login.util';--test('Ingestion Settings - View and Interact', async ({ page }) => {- await ensureLoggedIn(page);-- // 1. Open the sidebar settings menu using data-testid- await page.getByTestId('settings-nav-item').click();-- // 2. Click Account Settings in the dropdown (by role/name or data-testid if available)- await page.getByRole('menuitem', { name: 'Account Settings' }).click();-- // Assert the main tabpanel/heading (confirmed by DOM)- await expect(page.getByTestId('settings-page-title')).toBeVisible();-- // Focus on the settings page sidenav- await page.getByTestId('settings-page-sidenav').focus();-- // Click Ingestion tab in the settings sidebar (by data-testid)- await page.getByTestId('ingestion').click();-- // Assert heading and subheading (Integrations page)- await expect(- page.getByRole('heading', { name: 'Integrations' }),- ).toBeVisible();- await expect(- page.getByText('Manage Integrations for this workspace'),- ).toBeVisible();-- // Assert presence of search box- await expect(- page.getByPlaceholder('Search for an integration...'),- ).toBeVisible();-- // Assert at least one data source with Configure button- const configureBtn = page.getByRole('button', { name: 'Configure' }).first();- await expect(configureBtn).toBeVisible();-- // Assert Request more integrations section- await expect(- page.getByText(- "Can't find what you’re looking for? Request more integrations",- ),- ).toBeVisible();- await expect(page.getByPlaceholder('Enter integration name...')).toBeVisible();- await expect(page.getByRole('button', { name: 'Submit' })).toBeVisible();-});diff --git a/frontend/e2e/tests/settings/integrations/integrations-settings.spec.ts b/frontend/e2e/tests/settings/integrations/integrations-settings.spec.tsdeleted file mode 100644index 3c55614cec..0000000000--- a/frontend/e2e/tests/settings/integrations/integrations-settings.spec.ts+++ /dev/null@@ -1,48 +0,0 @@-import { expect, test } from '@playwright/test';--import { ensureLoggedIn } from '../../../utils/login.util';--test('Integrations Settings - View and Interact', async ({ page }) => {- await ensureLoggedIn(page);-- // 1. Open the sidebar settings menu using data-testid- await page.getByTestId('settings-nav-item').click();-- // 2. Click Account Settings in the dropdown (by role/name or data-testid if available)- await page.getByRole('menuitem', { name: 'Account Settings' }).click();-- // Assert the main tabpanel/heading (confirmed by DOM)- await expect(page.getByTestId('settings-page-title')).toBeVisible();-- // Focus on the settings page sidenav- await page.getByTestId('settings-page-sidenav').focus();-- // Click Integrations tab in the settings sidebar (by data-testid)- await page.getByTestId('integrations').click();-- // Assert heading and subheading- await expect(- page.getByRole('heading', { name: 'Integrations' }),- ).toBeVisible();- await expect(- page.getByText('Manage Integrations for this workspace'),- ).toBeVisible();-- // Assert presence of search box- await expect(- page.getByPlaceholder('Search for an integration...'),- ).toBeVisible();-- // Assert at least one integration with Configure button- const configureBtn = page.getByRole('button', { name: 'Configure' }).first();- await expect(configureBtn).toBeVisible();-- // Assert Request more integrations section- await expect(- page.getByText(- "Can't find what you’re looking for? Request more integrations",- ),- ).toBeVisible();- await expect(page.getByPlaceholder('Enter integration name...')).toBeVisible();- await expect(page.getByRole('button', { name: 'Submit' })).toBeVisible();-});diff --git a/frontend/e2e/tests/settings/members-sso/members-sso-settings.spec.ts b/frontend/e2e/tests/settings/members-sso/members-sso-settings.spec.tsdeleted file mode 100644index 02d9880fbf..0000000000--- a/frontend/e2e/tests/settings/members-sso/members-sso-settings.spec.ts+++ /dev/null@@ -1,56 +0,0 @@-import { expect, test } from '@playwright/test';--import { ensureLoggedIn } from '../../../utils/login.util';--test('Members & SSO Settings - View and Interact', async ({ page }) => {- await ensureLoggedIn(page);-- // 1. Open the sidebar settings menu using data-testid- await page.getByTestId('settings-nav-item').click();-- // 2. Click Account Settings in the dropdown (by role/name or data-testid if available)- await page.getByRole('menuitem', { name: 'Account Settings' }).click();-- // Assert the main tabpanel/heading (confirmed by DOM)- await expect(page.getByTestId('settings-page-title')).toBeVisible();-- // Focus on the settings page sidenav- await page.getByTestId('settings-page-sidenav').focus();-- // Click Members & SSO tab in the settings sidebar (by data-testid)- await page.getByTestId('members-sso').click();-- // Assert headings and tables- await expect(- page.getByRole('heading', { name: /Members \(\d+\)/ }),- ).toBeVisible();- await expect(- page.getByRole('heading', { name: /Pending Invites \(\d+\)/ }),- ).toBeVisible();- await expect(- page.getByRole('heading', { name: 'Authenticated Domains' }),- ).toBeVisible();-- // Assert Invite Members button is visible and clickable- const inviteBtn = page.getByRole('button', { name: /Invite Members/ });- await expect(inviteBtn).toBeVisible();- await inviteBtn.click();- // Assert Invite Members modal/dialog appears (modal title is unique)- await expect(page.getByText('Invite team members').first()).toBeVisible();- // Close the modal (use unique 'Close' button)- await page.getByRole('button', { name: 'Close' }).click();-- // Assert Edit and Delete buttons are present for at least one member- const editBtn = page.getByRole('button', { name: /Edit/ }).first();- const deleteBtn = page.getByRole('button', { name: /Delete/ }).first();- await expect(editBtn).toBeVisible();- await expect(deleteBtn).toBeVisible();-- // Assert Add Domains button is visible- await expect(page.getByRole('button', { name: /Add Domains/ })).toBeVisible();- // Assert Configure SSO or Edit Google Auth button is visible for at least one domain- const ssoBtn = page- .getByRole('button', { name: /Configure SSO|Edit Google Auth/ })- .first();- await expect(ssoBtn).toBeVisible();-});diff --git a/frontend/e2e/tests/settings/notification-channels/notification-channels-settings.spec.ts b/frontend/e2e/tests/settings/notification-channels/notification-channels-settings.spec.tsdeleted file mode 100644index 432597671f..0000000000--- a/frontend/e2e/tests/settings/notification-channels/notification-channels-settings.spec.ts+++ /dev/null@@ -1,57 +0,0 @@-import { expect, test } from '@playwright/test';--import { ensureLoggedIn } from '../../../utils/login.util';--test('Notification Channels Settings - View and Interact', async ({ page }) => {- await ensureLoggedIn(page);-- // 1. Open the sidebar settings menu using data-testid- await page.getByTestId('settings-nav-item').click();-- // 2. Click Account Settings in the dropdown (by role/name or data-testid if available)- await page.getByRole('menuitem', { name: 'Account Settings' }).click();-- // Assert the main tabpanel/heading (confirmed by DOM)- await expect(page.getByTestId('settings-page-title')).toBeVisible();-- // Focus on the settings page sidenav- await page.getByTestId('settings-page-sidenav').focus();-- // Click Notification Channels tab in the settings sidebar (by data-testid)- await page.getByTestId('notification-channels').click();-- // Wait for loading to finish- await page.getByText('loading').first().waitFor({ state: 'hidden' });-- // Assert presence of New Alert Channel button- const newChannelBtn = page.getByRole('button', { name: /New Alert Channel/ });- await expect(newChannelBtn).toBeVisible();-- // Assert table columns- await expect(page.getByText('Name')).toBeVisible();- await expect(page.getByText('Type')).toBeVisible();- await expect(page.getByText('Action')).toBeVisible();-- // Click New Alert Channel and assert modal fields/buttons- await newChannelBtn.click();- await expect(- page.getByRole('heading', { name: 'New Notification Channel' }),- ).toBeVisible();- await expect(page.getByLabel('Name')).toBeVisible();- await expect(page.getByLabel('Type')).toBeVisible();- await expect(page.getByLabel('Webhook URL')).toBeVisible();- await expect(- page.getByRole('switch', { name: 'Send resolved alerts' }),- ).toBeVisible();- await expect(page.getByRole('button', { name: 'Save' })).toBeVisible();- await expect(page.getByRole('button', { name: 'Test' })).toBeVisible();- await expect(page.getByRole('button', { name: 'Back' })).toBeVisible();- // Close modal- await page.getByRole('button', { name: 'Back' }).click();-- // Assert Edit and Delete buttons for at least one channel- const editBtn = page.getByRole('button', { name: 'Edit' }).first();- const deleteBtn = page.getByRole('button', { name: 'Delete' }).first();- await expect(editBtn).toBeVisible();- await expect(deleteBtn).toBeVisible();-});diff --git a/frontend/e2e/utils/login.util.ts b/frontend/e2e/utils/login.util.tsdeleted file mode 100644index c425e31e72..0000000000--- a/frontend/e2e/utils/login.util.ts+++ /dev/null@@ -1,35 +0,0 @@-import { Page } from '@playwright/test';--// Read credentials from environment variables-const username = process.env.LOGIN_USERNAME;-const password = process.env.LOGIN_PASSWORD;-const baseURL = process.env.BASE_URL;--/**- * Ensures the user is logged in. If not, performs the login steps.- * Follows the MCP process step-by-step.- */-export async function ensureLoggedIn(page: Page): Promise<void> {- // if already in home page, return- if (await page.url().includes('/home')) {- return;- }-- if (!username || !password) {- throw new Error(- 'E2E_EMAIL and E2E_PASSWORD environment variables must be set.',- );- }-- await page.goto(`${baseURL}/login`);- await page.getByTestId('email').click();- await page.getByTestId('email').fill(username);- await page.getByTestId('initiate_login').click();- await page.getByTestId('password').click();- await page.getByTestId('password').fill(password);- await page.getByRole('button', { name: 'Login' }).click();-- await page- .getByText('Hello there, Welcome to your')- .waitFor({ state: 'visible' });-}diff --git a/frontend/package.json b/frontend/package.jsonindex 80c44f95ca..d0f4ee3f4e 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -44,7 +44,6 @@"@mdx-js/loader": "2.3.0","@mdx-js/react": "2.3.0","@monaco-editor/react": "^4.3.1",- "@playwright/test": "1.55.1","@radix-ui/react-tabs": "1.0.4","@radix-ui/react-tooltip": "1.0.7","@sentry/react": "8.41.0",diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.tsdeleted file mode 100644index 88ee733baa..0000000000--- a/frontend/playwright.config.ts+++ /dev/null@@ -1,95 +0,0 @@-import { defineConfig, devices } from '@playwright/test';-import dotenv from 'dotenv';-import path from 'path';--// Read from ".env" file.-dotenv.config({ path: path.resolve(__dirname, '.env') });--/**- * Read environment variables from file.- * https://github.com/motdotla/dotenv- */-// import dotenv from 'dotenv';-// import path from 'path';-// dotenv.config({ path: path.resolve(__dirname, '.env') });--/**- * See https://playwright.dev/docs/test-configuration.- */-export default defineConfig({- testDir: './e2e/tests',- /* Run tests in files in parallel */- fullyParallel: true,- /* Fail the build on CI if you accidentally left test.only in the source code. */- forbidOnly: !!process.env.CI,- /* Retry on CI only */- retries: process.env.CI ? 2 : 0,- /* Run tests in parallel even in CI - optimized for GitHub Actions free tier */- workers: process.env.CI ? 2 : undefined,- /* Reporter to use. See https://playwright.dev/docs/test-reporters */- reporter: 'html',- /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */- use: {- /* Base URL to use in actions like `await page.goto('/')`. */- baseURL:- process.env.SIGNOZ_E2E_BASE_URL || 'https://app.us.staging.signoz.cloud',-- /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */- trace: 'on-first-retry',- colorScheme: 'dark',- locale: 'en-US',- viewport: { width: 1280, height: 720 },- },-- /* Configure projects for major browsers */- projects: [- {- name: 'chromium',- use: {- launchOptions: { args: ['--start-maximized'] },- viewport: null,- colorScheme: 'dark',- locale: 'en-US',- baseURL: 'https://app.us.staging.signoz.cloud',- trace: 'on-first-retry',- },- },-- {- name: 'firefox',- use: { ...devices['Desktop Firefox'] },- },-- {- name: 'webkit',- use: { ...devices['Desktop Safari'] },- },-- /* Test against mobile viewports. */- // {- // name: 'Mobile Chrome',- // use: { ...devices['Pixel 5'] },- // },- // {- // name: 'Mobile Safari',- // use: { ...devices['iPhone 12'] },- // },-- /* Test against branded browsers. */- // {- // name: 'Microsoft Edge',- // use: { ...devices['Desktop Edge'], channel: 'msedge' },- // },- // {- // name: 'Google Chrome',- // use: { ...devices['Desktop Chrome'], channel: 'chrome' },- // },- ],-- /* Run your local dev server before starting the tests */- // webServer: {- // command: 'npm run start',- // url: 'http://localhost:3000',- // reuseExistingServer: !process.env.CI,- // },-});diff --git a/frontend/prompts/generate-e2e-test.md b/frontend/prompts/generate-e2e-test.mddeleted file mode 100644index 29caf5ab61..0000000000--- a/frontend/prompts/generate-e2e-test.md+++ /dev/null@@ -1,16 +0,0 @@-RULE: All test code for this repo must be generated by following the step-by-step Playwright MCP process as described below.--- You are a playwright test generator.-- You are given a scenario and you need to generate a playwright test for it.-- Use login util if not logged in.-- DO NOT generate test code based on the scenario alone.-- DO run steps one by one using the tools provided by the Playwright MCP.-- Only after all steps are completed, emit a Playwright TypeScript test that uses @playwright/test based on message history-- Gather correct selectors before writing the test-- DO NOT valiate for dynamic content in the tests, only validate for the correctness with meta data-- Always inspect the DOM at each navigation or interaction step to determine the correct selector for the next action. Do not assume selectors, confirm via inspection before proceeding.-- Assert visibility of definitive/static elements in the UI (such as labels, headings, or section titles) rather than dynamic values or content that may change between runs.-- Save generated test file in the tests directory-- Execute the test file and iterate until the test passes--diff --git a/frontend/tsconfig.json b/frontend/tsconfig.jsonindex 77188f3702..613758fa26 100644--- a/frontend/tsconfig.json+++ b/frontend/tsconfig.json@@ -66,8 +66,6 @@"./vite.config.ts","./jest.setup.ts","./tests/**.ts",- "./**/*.d.ts",- "./playwright.config.ts",- "./e2e/**/*.ts"+ "./**/*.d.ts"]}diff --git a/frontend/yarn.lock b/frontend/yarn.lockindex 52087f692a..082b2b8d3b 100644--- a/frontend/yarn.lock+++ b/frontend/yarn.lock@@ -4540,13 +4540,6 @@resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.2.9.tgz#d229a7b7f9dac167a156992ef23c7f023653f53b"integrity sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==-"@playwright/[email protected]":- version "1.55.1"- resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.55.1.tgz#80f775d5f948cd3ef550fcc45ef99986d3ffb36c"- integrity sha512-IVAh/nOJaw6W9g+RJVlIQJ6gSiER+ae6mKQ5CX1bERzQgbC1VSeBlwdvczT7pxb0GWiyrxH4TGKbMfDb4Sq/ig==- dependencies:- playwright "1.55.1"-"@posthog/[email protected]":version "1.6.0"resolved "https://registry.yarnpkg.com/@posthog/core/-/core-1.6.0.tgz#a5b63a30950a8dfe87d4bf335ab24005c7ce1278"@@ -10568,7 +10561,7 @@ fscreen@^1.0.2:resolved "https://registry.yarnpkg.com/fscreen/-/fscreen-1.2.0.tgz#1a8c88e06bc16a07b473ad96196fb06d6657f59e"integrity sha512-hlq4+BU0hlPmwsFjwGGzZ+OZ9N/wq9Ljg/sq3pX+2CD7hrJsX9tJgWWK/wiNTFM212CLHWhicOoqwXyZGGetJg==[email protected], fsevents@^2.3.2, fsevents@~2.3.2:+fsevents@^2.3.2, fsevents@~2.3.2:version "2.3.2"resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==@@ -15468,20 +15461,6 @@ pkg-dir@^7.0.0:dependencies:find-up "^6.3.0"- version "1.55.1"- resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.55.1.tgz#5d3bb1846bc4289d364ea1a9dcb33f14545802e9"- integrity sha512-Z6Mh9mkwX+zxSlHqdr5AOcJnfp+xUWLCt9uKV18fhzA8eyxUd8NUWzAjxUh55RZKSYwDGX0cfaySdhZJGMoJ+w==-- version "1.55.1"- resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.55.1.tgz#8a9954e9e61ed1ab479212af9be336888f8b3f0e"- integrity sha512-cJW4Xd/G3v5ovXtJJ52MAOclqeac9S/aGGgRzLabuF8TnIb6xHvMzKIa6JmrRzUkeXJgfL1MhukP0NK6l39h3A==- dependencies:- playwright-core "1.55.1"- optionalDependencies:- fsevents "2.3.2"-pony-cause@^1.1.1:version "1.1.1"resolved "https://registry.yarnpkg.com/pony-cause/-/pony-cause-1.1.1.tgz#f795524f83bebbf1878bd3587b45f69143cbf3f9"diff --git a/tests/e2e/.eslintignore b/tests/e2e/.eslintignoredeleted file mode 100644index b8e518eb21..0000000000--- a/tests/e2e/.eslintignore+++ /dev/null@@ -1,38 +0,0 @@-# Dependencies-node_modules/--# Build outputs-dist/-build/--# Test results-test-results/-playwright-report/-coverage/--# Environment files-.env-.env.local-.env.production--# Editor files-.vscode/-.idea/-*.swp-*.swo--# OS files-.DS_Store-Thumbs.db--# Logs-*.log-npm-debug.log*-yarn-debug.log*-yarn-error.log*--# Runtime data-pids-*.pid-*.seed-*.pid.lock\ No newline at end of filediff --git a/tests/e2e/.eslintrc.js b/tests/e2e/.eslintrc.jsdeleted file mode 100644index d6ab8db3ba..0000000000--- a/tests/e2e/.eslintrc.js+++ /dev/null@@ -1,68 +0,0 @@-module.exports = {- parser: '@typescript-eslint/parser',- parserOptions: {- ecmaVersion: 2022,- sourceType: 'module',- },- extends: [- 'eslint:recommended',- 'plugin:@typescript-eslint/recommended',- 'plugin:playwright/recommended',- ],- env: {- node: true,- es2022: true,- },- rules: {- // Code Quality- '@typescript-eslint/no-unused-vars': 'error',- '@typescript-eslint/no-explicit-any': 'warn',- 'prefer-const': 'error',- 'no-var': 'error',-- // Formatting Rules (ESLint handles formatting)- 'semi': ['error', 'always'],- 'quotes': ['error', 'single', { avoidEscape: true }],- 'comma-dangle': ['error', 'always-multiline'],- 'indent': ['error', 2, { SwitchCase: 1 }],- 'object-curly-spacing': ['error', 'always'],- 'array-bracket-spacing': ['error', 'never'],- 'space-before-function-paren': ['error', {- anonymous: 'always',- named: 'never',- asyncArrow: 'always',- }],- 'keyword-spacing': 'error',- 'space-infix-ops': 'error',- 'eol-last': 'error',- 'no-trailing-spaces': 'error',- 'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1 }],-- // Playwright-specific (enhanced)- 'playwright/expect-expect': 'error',- 'playwright/no-conditional-in-test': 'error',- 'playwright/no-page-pause': 'error',- 'playwright/no-wait-for-timeout': 'warn',- 'playwright/prefer-web-first-assertions': 'error',-- // Console usage- 'no-console': ['warn', { allow: ['warn', 'error'] }],- },- overrides: [- {- // Config files can use console and have relaxed formatting- files: ['*.config.{js,ts}', 'playwright.config.ts'],- rules: {- 'no-console': 'off',- '@typescript-eslint/no-explicit-any': 'off',- },- },- {- // Test files specific rules- files: ['**/*.spec.ts', '**/*.test.ts'],- rules: {- '@typescript-eslint/no-explicit-any': 'off', // Page objects often need any- },- },- ],-};diff --git a/tests/e2e/.oxfmtrc.json b/tests/e2e/.oxfmtrc.jsonnew file mode 100644index 0000000000..ec5a19cd68--- /dev/null+++ b/tests/e2e/.oxfmtrc.json@@ -0,0 +1,26 @@+{+ "$schema": "./node_modules/oxfmt/configuration_schema.json",+ "trailingComma": "all",+ "useTabs": true,+ "tabWidth": 1,+ "singleQuote": true,+ "jsxSingleQuote": false,+ "semi": true,+ "printWidth": 80,+ "bracketSpacing": true,+ "jsxBracketSameLine": false,+ "arrowParens": "always",+ "endOfLine": "lf",+ "quoteProps": "as-needed",+ "proseWrap": "preserve",+ "htmlWhitespaceSensitivity": "css",+ "embeddedLanguageFormatting": "auto",+ "sortPackageJson": false,+ "ignorePatterns": [+ "artifacts",+ "node_modules",+ "playwright-report",+ "**/*.md",+ "**/*.json"+ ]+}diff --git a/tests/e2e/.oxlintrc.json b/tests/e2e/.oxlintrc.jsonnew file mode 100644index 0000000000..a79dfc5665--- /dev/null+++ b/tests/e2e/.oxlintrc.json@@ -0,0 +1,45 @@+{+ "$schema": "./node_modules/oxlint/configuration_schema.json",+ "jsPlugins": ["eslint-plugin-playwright"],+ "plugins": ["eslint", "typescript", "unicorn", "import", "promise"],+ "categories": {+ "correctness": "warn"+ },+ "env": {+ "builtin": true,+ "es2022": true,+ "node": true+ },+ "options": {+ "typeAware": true,+ "typeCheck": false+ },+ "rules": {+ "prefer-const": "error",+ "no-var": "error",+ "no-console": ["warn", { "allow": ["warn", "error"] }],+ "typescript/no-unused-vars": "error",+ "typescript/no-explicit-any": "warn",+ "playwright/expect-expect": "error",+ "playwright/no-conditional-in-test": "error",+ "playwright/no-page-pause": "error",+ "playwright/no-wait-for-timeout": "warn",+ "playwright/prefer-web-first-assertions": "error"+ },+ "overrides": [+ {+ "files": ["*.config.{js,ts}", "playwright.config.ts"],+ "rules": {+ "no-console": "off",+ "typescript/no-explicit-any": "off"+ }+ },+ {+ "files": ["**/*.spec.ts", "**/*.test.ts"],+ "rules": {+ "typescript/no-explicit-any": "off"+ }+ }+ ],+ "ignorePatterns": ["node_modules", "artifacts", "playwright-report"]+}diff --git a/tests/e2e/.prettierignore b/tests/e2e/.prettierignoredeleted file mode 100644index df5f24f602..0000000000--- a/tests/e2e/.prettierignore+++ /dev/null@@ -1,30 +0,0 @@-# Dependencies-node_modules/--# Generated test outputs-artifacts/-playwright/.cache/--# Build outputs-dist/--# Environment files-.env-.env.local-.env*.local--# Lock files-yarn.lock-package-lock.json-pnpm-lock.yaml--# Logs-*.log-yarn-error.log--# IDE-.vscode/-.idea/--# Other-.DS_Store\ No newline at end of filediff --git a/tests/e2e/.prettierrc.json b/tests/e2e/.prettierrc.jsondeleted file mode 100644index f7ebf66074..0000000000--- a/tests/e2e/.prettierrc.json+++ /dev/null@@ -1,6 +0,0 @@-{- "useTabs": false,- "tabWidth": 2,- "singleQuote": true,- "trailingComma": "all"-}\ No newline at end of filediff --git a/tests/e2e/bootstrap/setup.py b/tests/e2e/bootstrap/setup.pyindex 9c84be6eb4..b84fe87cf1 100644--- a/tests/e2e/bootstrap/setup.py+++ b/tests/e2e/bootstrap/setup.py@@ -26,13 +26,12 @@ def test_setup(seeder_cfg = seeder.host_configs["8080"]out = _env_file(pytestconfig)out.parent.mkdir(parents=True, exist_ok=True)- out.write_text(- "# Generated by tests/e2e/bootstrap/setup.py — do not edit.\n"- f"SIGNOZ_E2E_BASE_URL={host_cfg.base()}\n"- f"SIGNOZ_E2E_USERNAME={USER_ADMIN_EMAIL}\n"- f"SIGNOZ_E2E_PASSWORD={USER_ADMIN_PASSWORD}\n"- f"SIGNOZ_E2E_SEEDER_URL={seeder_cfg.base()}\n"- )+ with out.open("w") as f:+ f.write("# Generated by tests/e2e/bootstrap/setup.py — do not edit.\n")+ f.write(f"SIGNOZ_E2E_BASE_URL={host_cfg.base()}\n")+ f.write(f"SIGNOZ_E2E_USERNAME={USER_ADMIN_EMAIL}\n")+ f.write(f"SIGNOZ_E2E_PASSWORD={USER_ADMIN_PASSWORD}\n")+ f.write(f"SIGNOZ_E2E_SEEDER_URL={seeder_cfg.base()}\n")def test_teardown(diff --git a/tests/e2e/fixtures/auth.ts b/tests/e2e/fixtures/auth.tsindex b51ae20f87..15fde4fbb6 100644--- a/tests/e2e/fixtures/auth.ts+++ b/tests/e2e/fixtures/auth.ts@@ -1,17 +1,17 @@import {- test as base,- expect,- type Browser,- type BrowserContext,- type Page,+ test as base,+ expect,+ type Browser,+ type BrowserContext,+ type Page,} from '@playwright/test';export type User = { email: string; password: string };// Default user — admin from the pytest bootstrap (.env.local) or staging .env.export const ADMIN: User = {- email: process.env.SIGNOZ_E2E_USERNAME!,- password: process.env.SIGNOZ_E2E_PASSWORD!,+ email: process.env.SIGNOZ_E2E_USERNAME!,+ password: process.env.SIGNOZ_E2E_PASSWORD!,};// Per-worker storageState cache. One login per unique user per worker.@@ -21,65 +21,65 @@ type StorageState = Awaited<ReturnType<BrowserContext['storageState']>>;const storageByUser = new Map<string, Promise<StorageState>>();async function storageFor(browser: Browser, user: User): Promise<StorageState> {- const cached = storageByUser.get(user.email);- if (cached) return cached;+ const cached = storageByUser.get(user.email);+ if (cached) return cached;- const task = (async () => {- const ctx = await browser.newContext();- const page = await ctx.newPage();- await login(page, user);- const state = await ctx.storageState();- await ctx.close();- return state;- })();+ const task = (async () => {+ const ctx = await browser.newContext();+ const page = await ctx.newPage();+ await login(page, user);+ const state = await ctx.storageState();+ await ctx.close();+ return state;+ })();- storageByUser.set(user.email, task);- return task;+ storageByUser.set(user.email, task);+ return task;}async function login(page: Page, user: User): Promise<void> {- if (!user.email || !user.password) {- throw new Error(- 'User credentials missing. Set SIGNOZ_E2E_USERNAME / SIGNOZ_E2E_PASSWORD ' +- '(pytest bootstrap writes them to .env.local), or pass a User via test.use({ user: ... }).',- );- }- await page.goto('/login?password=Y');- await page.getByTestId('email').fill(user.email);- await page.getByTestId('initiate_login').click();- await page.getByTestId('password').fill(user.password);- await page.getByRole('button', { name: 'Sign in with Password' }).click();- // Post-login lands somewhere different depending on whether the org is- // licensed (onboarding flow on ENTERPRISE) or not (legacy "Hello there"- // welcome). Wait for URL to move off /login — whichever page follows- // is fine, each spec navigates to the feature under test anyway.- await page.waitForURL((url) => !url.pathname.startsWith('/login'));+ if (!user.email || !user.password) {+ throw new Error(+ 'User credentials missing. Set SIGNOZ_E2E_USERNAME / SIGNOZ_E2E_PASSWORD ' ++ '(pytest bootstrap writes them to .env.local), or pass a User via test.use({ user: ... }).',+ );+ }+ await page.goto('/login?password=Y');+ await page.getByTestId('email').fill(user.email);+ await page.getByTestId('initiate_login').click();+ await page.getByTestId('password').fill(user.password);+ await page.getByRole('button', { name: 'Sign in with Password' }).click();+ // Post-login lands somewhere different depending on whether the org is+ // licensed (onboarding flow on ENTERPRISE) or not (legacy "Hello there"+ // welcome). Wait for URL to move off /login — whichever page follows+ // is fine, each spec navigates to the feature under test anyway.+ await page.waitForURL((url) => !url.pathname.startsWith('/login'));}export const test = base.extend<{- /**- * User identity for this test. Override with `test.use({ user: ... })` at- * the describe or test level to run the suite as a different user.- * Defaults to ADMIN (the pytest-bootstrap-seeded admin).- */- user: User;+ /**+ * User identity for this test. Override with `test.use({ user: ... })` at+ * the describe or test level to run the suite as a different user.+ * Defaults to ADMIN (the pytest-bootstrap-seeded admin).+ */+ user: User;- /**- * A Page whose context is already authenticated as `user`. First request- * for a given user triggers one login per worker; the resulting- * storageState is held in memory and reused for all later requests.- */- authedPage: Page;+ /**+ * A Page whose context is already authenticated as `user`. First request+ * for a given user triggers one login per worker; the resulting+ * storageState is held in memory and reused for all later requests.+ */+ authedPage: Page;}>({- user: [ADMIN, { option: true }],+ user: [ADMIN, { option: true }],- authedPage: async ({ browser, user }, use) => {- const storageState = await storageFor(browser, user);- const ctx = await browser.newContext({ storageState });- const page = await ctx.newPage();- await use(page);- await ctx.close();- },+ authedPage: async ({ browser, user }, use) => {+ const storageState = await storageFor(browser, user);+ const ctx = await browser.newContext({ storageState });+ const page = await ctx.newPage();+ await use(page);+ await ctx.close();+ },});export { expect };diff --git a/tests/e2e/package.json b/tests/e2e/package.jsonindex b2f60f9e11..a3d2a21d71 100644--- a/tests/e2e/package.json+++ b/tests/e2e/package.json@@ -16,8 +16,10 @@"codegen": "playwright codegen","install:browsers": "playwright install","install:cli": "npm install -g @playwright/cli@latest && playwright-cli install --skills",- "lint": "eslint . --ext .ts,.js",- "lint:fix": "eslint . --ext .ts,.js --fix",+ "fmt": "oxfmt .",+ "fmt:check": "oxfmt --check .",+ "lint": "oxlint .",+ "lint:fix": "oxlint . --fix","typecheck": "tsc --noEmit"},"keywords": [@@ -31,11 +33,11 @@"devDependencies": {"@playwright/test": "^1.57.0-alpha-2025-10-09","@types/node": "^20.0.0",- "@typescript-eslint/eslint-plugin": "^6.0.0",- "@typescript-eslint/parser": "^6.0.0","dotenv": "^16.0.0",- "eslint": "^9.26.0",- "eslint-plugin-playwright": "^0.16.0",+ "eslint-plugin-playwright": "^2.10.2",+ "oxfmt": "^0.41.0",+ "oxlint": "^1.59.0",+ "oxlint-tsgolint": "^0.20.0","typescript": "^5.0.0"},"engines": {diff --git a/tests/e2e/playwright.config.ts b/tests/e2e/playwright.config.tsindex 25aac4d5ef..4575a1ab9b 100644--- a/tests/e2e/playwright.config.ts+++ b/tests/e2e/playwright.config.ts@@ -12,50 +12,50 @@ dotenv.config({ path: path.resolve(__dirname, '.env') });dotenv.config({ path: path.resolve(__dirname, '.env.local'), override: true });export default defineConfig({- testDir: './tests',-- // All Playwright output lands under artifacts/. One subdir per reporter- // plus results/ for per-test artifacts (traces/screenshots/videos).- // CI can archive the whole dir with `tar czf artifacts.tgz tests/e2e/artifacts`.- outputDir: 'artifacts/results',-- // Run tests in parallel- fullyParallel: true,-- // Fail the build on CI if you accidentally left test.only- forbidOnly: !!process.env.CI,-- // Retry on CI only- retries: process.env.CI ? 2 : 0,-- // Workers- workers: process.env.CI ? 2 : undefined,-- // Reporter- reporter: [- ['html', { outputFolder: 'artifacts/html', open: 'never' }],- ['json', { outputFile: 'artifacts/json/results.json' }],- ['list'],- ],-- // Shared settings- use: {- baseURL:- process.env.SIGNOZ_E2E_BASE_URL || 'https://app.us.staging.signoz.cloud',- trace: 'on-first-retry',- screenshot: 'only-on-failure',- video: 'retain-on-failure',- colorScheme: 'dark',- locale: 'en-US',- viewport: { width: 1280, height: 720 },- },-- // Browser projects. No project-level auth — specs opt in via the- // authedPage fixture in tests/e2e/fixtures/auth.ts, which logs a user- // in on first use and caches the resulting storageState per worker.- projects: [- { name: 'chromium', use: devices['Desktop Chrome'] },- { name: 'firefox', use: devices['Desktop Firefox'] },- { name: 'webkit', use: devices['Desktop Safari'] },- ],+ testDir: './tests',++ // All Playwright output lands under artifacts/. One subdir per reporter+ // plus results/ for per-test artifacts (traces/screenshots/videos).+ // CI can archive the whole dir with `tar czf artifacts.tgz tests/e2e/artifacts`.+ outputDir: 'artifacts/results',++ // Run tests in parallel+ fullyParallel: true,++ // Fail the build on CI if you accidentally left test.only+ forbidOnly: !!process.env.CI,++ // Retry on CI only+ retries: process.env.CI ? 2 : 0,++ // Workers+ workers: process.env.CI ? 2 : undefined,++ // Reporter+ reporter: [+ ['html', { outputFolder: 'artifacts/html', open: 'never' }],+ ['json', { outputFile: 'artifacts/json/results.json' }],+ ['list'],+ ],++ // Shared settings+ use: {+ baseURL:+ process.env.SIGNOZ_E2E_BASE_URL || 'https://app.us.staging.signoz.cloud',+ trace: 'on-first-retry',+ screenshot: 'only-on-failure',+ video: 'retain-on-failure',+ colorScheme: 'dark',+ locale: 'en-US',+ viewport: { width: 1280, height: 720 },+ },++ // Browser projects. No project-level auth — specs opt in via the+ // authedPage fixture in tests/e2e/fixtures/auth.ts, which logs a user+ // in on first use and caches the resulting storageState per worker.+ projects: [+ { name: 'chromium', use: devices['Desktop Chrome'] },+ { name: 'firefox', use: devices['Desktop Firefox'] },+ { name: 'webkit', use: devices['Desktop Safari'] },+ ],});diff --git a/tests/e2e/tests/alerts/alerts.spec.ts b/tests/e2e/tests/alerts/alerts.spec.tsindex 86f5d85aee..d4a581b9c1 100644--- a/tests/e2e/tests/alerts/alerts.spec.ts+++ b/tests/e2e/tests/alerts/alerts.spec.ts@@ -1,7 +1,7 @@import { test, expect } from '../../fixtures/auth';test('TC-01 alerts page — tabs render', async ({ authedPage: page }) => {- await page.goto('/alerts');- await expect(page.getByRole('tab', { name: /alert rules/i })).toBeVisible();- await expect(page.getByRole('tab', { name: /configuration/i })).toBeVisible();+ await page.goto('/alerts');+ await expect(page.getByRole('tab', { name: /alert rules/i })).toBeVisible();+ await expect(page.getByRole('tab', { name: /configuration/i })).toBeVisible();});diff --git a/tests/e2e/yarn.lock b/tests/e2e/yarn.lockindex eac8777d11..d9505274a4 100644--- a/tests/e2e/yarn.lock+++ b/tests/e2e/yarn.lock@@ -2,143 +2,225 @@# yarn lockfile v1-"@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0":- version "4.9.0"- resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz#7308df158e064f0dd8b8fdb58aa14fa2a7f913b3"- integrity sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==- dependencies:- eslint-visitor-keys "^3.4.3"--"@eslint-community/regexpp@^4.12.1", "@eslint-community/regexpp@^4.5.1":- version "4.12.2"- resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.12.2.tgz#bccdf615bcf7b6e8db830ec0b8d21c9a25de597b"- integrity sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==--"@eslint/config-array@^0.20.0":- version "0.20.1"- resolved "https://registry.yarnpkg.com/@eslint/config-array/-/config-array-0.20.1.tgz#454f89be82b0e5b1ae872c154c7e2f3dd42c3979"- integrity sha512-OL0RJzC/CBzli0DrrR31qzj6d6i6Mm3HByuhflhl4LOBiWxN+3i6/t/ZQQNii4tjksXi8r2CRW1wMpWA2ULUEw==- dependencies:- "@eslint/object-schema" "^2.1.6"- debug "^4.3.1"- minimatch "^3.1.2"--"@eslint/config-helpers@^0.2.1":- version "0.2.3"- resolved "https://registry.yarnpkg.com/@eslint/config-helpers/-/config-helpers-0.2.3.tgz#39d6da64ed05d7662659aa7035b54cd55a9f3672"- integrity sha512-u180qk2Um1le4yf0ruXH3PYFeEZeYC3p/4wCTKrr2U1CmGdzGi3KtY0nuPDH48UJxlKCC5RDzbcbh4X0XlqgHg==--"@eslint/core@^0.13.0":- version "0.13.0"- resolved "https://registry.yarnpkg.com/@eslint/core/-/core-0.13.0.tgz#bf02f209846d3bf996f9e8009db62df2739b458c"- integrity sha512-yfkgDw1KR66rkT5A8ci4irzDysN7FRpq3ttJolR88OqQikAWqwA8j5VZyas+vjyBNFIJ7MfybJ9plMILI2UrCw==- dependencies:- "@types/json-schema" "^7.0.15"--"@eslint/eslintrc@^3.3.1":- version "3.3.3"- resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-3.3.3.tgz#26393a0806501b5e2b6a43aa588a4d8df67880ac"- integrity sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==- dependencies:- ajv "^6.12.4"- debug "^4.3.2"- espree "^10.0.1"- globals "^14.0.0"- ignore "^5.2.0"- import-fresh "^3.2.1"- js-yaml "^4.1.1"- minimatch "^3.1.2"- strip-json-comments "^3.1.1"--"@eslint/[email protected]":- version "9.26.0"- resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.26.0.tgz#1e13126b67a3db15111d2dcc61f69a2acff70bd5"- integrity sha512-I9XlJawFdSMvWjDt6wksMCrgns5ggLNfFwFvnShsleWruvXM514Qxk8V246efTw+eo9JABvVz+u3q2RiAowKxQ==--"@eslint/object-schema@^2.1.6":- version "2.1.7"- resolved "https://registry.yarnpkg.com/@eslint/object-schema/-/object-schema-2.1.7.tgz#6e2126a1347e86a4dedf8706ec67ff8e107ebbad"- integrity sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==--"@eslint/plugin-kit@^0.2.8":- version "0.2.8"- resolved "https://registry.yarnpkg.com/@eslint/plugin-kit/-/plugin-kit-0.2.8.tgz#47488d8f8171b5d4613e833313f3ce708e3525f8"- integrity sha512-ZAoA40rNMPwSm+AeHpCq8STiNAwzWLJuP8Xv4CHIc9wv/PSuExjMrmjfYNj682vW0OOiZ1HKxzvjQr9XZIisQA==- dependencies:- "@eslint/core" "^0.13.0"- levn "^0.4.1"--"@hono/node-server@^1.19.9":- version "1.19.13"- resolved "https://registry.yarnpkg.com/@hono/node-server/-/node-server-1.19.13.tgz#4838c766a1237253d4dde3281cf7d5c65186fd32"- integrity sha512-TsQLe4i2gvoTtrHje625ngThGBySOgSK3Xo2XRYOdqGN1teR8+I7vchQC46uLJi8OF62YTYA3AhSpumtkhsaKQ==--"@humanfs/core@^0.19.1":- version "0.19.1"- resolved "https://registry.yarnpkg.com/@humanfs/core/-/core-0.19.1.tgz#17c55ca7d426733fe3c561906b8173c336b40a77"- integrity sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==--"@humanfs/node@^0.16.6":- version "0.16.7"- resolved "https://registry.yarnpkg.com/@humanfs/node/-/node-0.16.7.tgz#822cb7b3a12c5a240a24f621b5a2413e27a45f26"- integrity sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==- dependencies:- "@humanfs/core" "^0.19.1"- "@humanwhocodes/retry" "^0.4.0"--"@humanwhocodes/module-importer@^1.0.1":- version "1.0.1"- resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c"- integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==--"@humanwhocodes/retry@^0.4.0", "@humanwhocodes/retry@^0.4.2":- version "0.4.3"- resolved "https://registry.yarnpkg.com/@humanwhocodes/retry/-/retry-0.4.3.tgz#c2b9d2e374ee62c586d3adbea87199b1d7a7a6ba"- integrity sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==--"@modelcontextprotocol/sdk@^1.8.0":- version "1.27.1"- resolved "https://registry.yarnpkg.com/@modelcontextprotocol/sdk/-/sdk-1.27.1.tgz#a602cf823bf8a68e13e7112f50aeb02b09fb83b9"- integrity sha512-sr6GbP+4edBwFndLbM60gf07z0FQ79gaExpnsjMGePXqFcSSb7t6iscpjk9DhFhwd+mTEQrzNafGP8/iGGFYaA==- dependencies:- "@hono/node-server" "^1.19.9"- ajv "^8.17.1"- ajv-formats "^3.0.1"- content-type "^1.0.5"- cors "^2.8.5"- cross-spawn "^7.0.5"- eventsource "^3.0.2"- eventsource-parser "^3.0.0"- express "^5.2.1"- express-rate-limit "^8.2.1"- hono "^4.11.4"- jose "^6.1.3"- json-schema-typed "^8.0.2"- pkce-challenge "^5.0.0"- raw-body "^3.0.0"- zod "^3.25 || ^4.0"- zod-to-json-schema "^3.25.1"--"@nodelib/[email protected]":- version "2.1.5"- resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"- integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==- dependencies:- "@nodelib/fs.stat" "2.0.5"- run-parallel "^1.1.9"--"@nodelib/[email protected]", "@nodelib/fs.stat@^2.0.2":- version "2.0.5"- resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b"- integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==--"@nodelib/fs.walk@^1.2.3":- version "1.2.8"- resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a"- integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==- dependencies:- "@nodelib/fs.scandir" "2.1.5"- fastq "^1.6.0"+"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-android-arm-eabi/-/binding-android-arm-eabi-0.41.0.tgz#09438448ab9479730582cd00fb86e4c33795a364"+ integrity sha512-REfrqeMKGkfMP+m/ScX4f5jJBSmVNYcpoDF8vP8f8eYPDuPGZmzp56NIUsYmx3h7f6NzC6cE3gqh8GDWrJHCKw==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-android-arm64/-/binding-android-arm64-0.41.0.tgz#b01eef08ff2a6be90f5805fe28339ec0130a955c"+ integrity sha512-s0b1dxNgb2KomspFV2LfogC2XtSJB42POXF4bMCLJyvQmAGos4ZtjGPfQreToQEaY0FQFjz3030ggI36rF1q5g==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-darwin-arm64/-/binding-darwin-arm64-0.41.0.tgz#a2e24b7c52d40e3bb01939fa9c994d56923294ce"+ integrity sha512-EGXGualADbv/ZmamE7/2DbsrYmjoPlAmHEpTL4vapLF4EfVD6fr8/uQDFnPJkUBjiSWFJZtFNsGeN1B6V3owmA==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-darwin-x64/-/binding-darwin-x64-0.41.0.tgz#c114c0a30195a65cfe0247e2ffd000416df4d4bc"+ integrity sha512-WxySJEvdQQYMmyvISH3qDpTvoS0ebnIP63IMxLLWowJyPp/AAH0hdWtlo+iGNK5y3eVfa5jZguwNaQkDKWpGSw==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-freebsd-x64/-/binding-freebsd-x64-0.41.0.tgz#a9057a31860ec79970a16b5a0a801a51fab99168"+ integrity sha512-Y2kzMkv3U3oyuYaR4wTfGjOTYTXiFC/hXmG0yVASKkbh02BJkvD98Ij8bIevr45hNZ0DmZEgqiXF+9buD4yMYQ==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-0.41.0.tgz#1a2be3cbbf2d9e90808858ba8fc38b24023ac44c"+ integrity sha512-ptazDjdUyhket01IjPTT6ULS1KFuBfTUU97osTP96X5y/0oso+AgAaJzuH81oP0+XXyrWIHbRzozSAuQm4p48g==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-0.41.0.tgz#f0a12feca29bfaf7437d94c32919ff3ac60c213f"+ integrity sha512-UkoL2OKxFD+56bPEBcdGn+4juTW4HRv/T6w1dIDLnvKKWr6DbarB/mtHXlADKlFiJubJz8pRkttOR7qjYR6lTA==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-0.41.0.tgz#b304c7ede72119f7fe7ce7861007c0ee6eb60c08"+ integrity sha512-gofu0PuumSOHYczD8p62CPY4UF6ee+rSLZJdUXkpwxg6pILiwSDBIouPskjF/5nF3A7QZTz2O9KFNkNxxFN9tA==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-arm64-musl/-/binding-linux-arm64-musl-0.41.0.tgz#295d6ce8d846ca1a287165bf4ff6e7b3cd51f823"+ integrity sha512-VfVZxL0+6RU86T8F8vKiDBa+iHsr8PAjQmKGBzSCAX70b6x+UOMFl+2dNihmKmUwqkCazCPfYjt6SuAPOeQJ3g==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-0.41.0.tgz#6c702f37bd69bb88bf78264eef5df9dbcdcada49"+ integrity sha512-bwzokz2eGvdfJbc0i+zXMJ4BBjQPqg13jyWpEEZDOrBCQ91r8KeY2Mi2kUeuMTZNFXju+jcAbAbpyJxRGla0eg==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-0.41.0.tgz#9dac4f7f4cf10d94ade5a109554f810a43525595"+ integrity sha512-POLM//PCH9uqDeNDwWL3b3DkMmI3oI2cU6hwc2lnztD1o7dzrQs3R9nq555BZ6wI7t2lyhT9CS+CRaz5X0XqLA==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-0.41.0.tgz#ddd573ad4fc8e5d017ab27177eaabea700d68754"+ integrity sha512-NNK7PzhFqLUwx/G12Xtm6scGv7UITvyGdAR5Y+TlqsG+essnuRWR4jRNODWRjzLZod0T3SayRbnkSIWMBov33w==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-0.41.0.tgz#3300ee81681382c1ec0a4013807c362c27ef4821"+ integrity sha512-qVf/zDC5cN9eKe4qI/O/m445er1IRl6swsSl7jHkqmOSVfknwCe5JXitYjZca+V/cNJSU/xPlC5EFMabMMFDpw==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.41.0.tgz#be9068d48bb521eea83ea6bea2b0e08b39d7638b"+ integrity sha512-ojxYWu7vUb6ysYqVCPHuAPVZHAI40gfZ0PDtZAMwVmh2f0V8ExpPIKoAKr7/8sNbAXJBBpZhs2coypIo2jJX4w==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-linux-x64-musl/-/binding-linux-x64-musl-0.41.0.tgz#e0232abd879874823213b71016042d001a740acb"+ integrity sha512-O2exZLBxoCMIv2vlvcbkdedazJPTdG0VSup+0QUCfYQtx751zCZNboX2ZUOiQ/gDTdhtXvSiot0h6GEGkOyalA==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-openharmony-arm64/-/binding-openharmony-arm64-0.41.0.tgz#3e5893cde8cae02494cbb5493de9c46613e77058"+ integrity sha512-N+31/VoL+z+NNBt8viy3I4NaIdPbiYeOnB884LKqvXldaE2dRztdPv3q5ipfZYv0RwFp7JfqS4I27K/DSHCakg==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-0.41.0.tgz#31d8dfeeddc855dbecc9f45d11cd892635d2e42f"+ integrity sha512-Z7NAtu/RN8kjCQ1y5oDD0nTAeRswh3GJ93qwcW51srmidP7XPBmZbLlwERu1W5veCevQJtPS9xmkpcDTYsGIwQ==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-0.41.0.tgz#873fb408a3e8952fae67763b225e4ea77356e926"+ integrity sha512-uNxxP3l4bJ6VyzIeRqCmBU2Q0SkCFgIhvx9/9dJ9V8t/v+jP1IBsuaLwCXGR8JPHtkj4tFp+RHtUmU2ZYAUpMA==++"@oxfmt/[email protected]":+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/@oxfmt/binding-win32-x64-msvc/-/binding-win32-x64-msvc-0.41.0.tgz#0adf46bca6908c6b49c790e598f4972b6f4cd191"+ integrity sha512-49ZSpbZ1noozyPapE8SUOSm3IN0Ze4b5nkO+4+7fq6oEYQQJFhE0saj5k/Gg4oewVPdjn0L3ZFeWk2Vehjcw7A==++"@oxlint-tsgolint/[email protected]":+ version "0.20.0"+ resolved "https://registry.yarnpkg.com/@oxlint-tsgolint/darwin-arm64/-/darwin-arm64-0.20.0.tgz#6d704883904fa6e5fc922a7cef882bad4c734a0b"+ integrity sha512-KKQcIHZHMxqpHUA1VXIbOG6chNCFkUWbQy6M+AFVtPKkA/3xAeJkJ3njoV66bfzwPHRcWQO+kcj5XqtbkjakoA==++"@oxlint-tsgolint/[email protected]":+ version "0.20.0"+ resolved "https://registry.yarnpkg.com/@oxlint-tsgolint/darwin-x64/-/darwin-x64-0.20.0.tgz#676d7a1cf82216d91e9bc143f676e7dbe59ce596"+ integrity sha512-7HeVMuclGfG+NLZi2ybY0T4fMI7/XxO/208rJk+zEIloKkVnlh11Wd241JMGwgNFXn+MLJbOqOfojDb2Dt4L1g==++"@oxlint-tsgolint/[email protected]":+ version "0.20.0"+ resolved "https://registry.yarnpkg.com/@oxlint-tsgolint/linux-arm64/-/linux-arm64-0.20.0.tgz#5a2e67cf18394b6b868301cf3d84c8b8be7ab6b9"+ integrity sha512-zxhUwz+WSxE6oWlZLK2z2ps9yC6ebmgoYmjAl0Oa48+GqkZ56NVgo+wb8DURNv6xrggzHStQxqQxe3mK51HZag==++"@oxlint-tsgolint/[email protected]":+ version "0.20.0"+ resolved "https://registry.yarnpkg.com/@oxlint-tsgolint/linux-x64/-/linux-x64-0.20.0.tgz#68468ad9253668748736191b6a7af51ae737c0a4"+ integrity sha512-/1l6FnahC9im8PK+Ekkx/V3yetO/PzZnJegE2FXcv/iXEhbeVxP/ouiTYcUQu9shT1FWJCSNti1VJHH+21Y1dg==++"@oxlint-tsgolint/[email protected]":+ version "0.20.0"+ resolved "https://registry.yarnpkg.com/@oxlint-tsgolint/win32-arm64/-/win32-arm64-0.20.0.tgz#32a0eba60f0a88cd6d6d53cc03eb1b2e43ca0c50"+ integrity sha512-oPZ5Yz8sVdo7P/5q+i3IKeix31eFZ55JAPa1+RGPoe9PoaYVsdMvR6Jvib6YtrqoJnFPlg3fjEjlEPL8VBKYJA==++"@oxlint-tsgolint/[email protected]":+ version "0.20.0"+ resolved "https://registry.yarnpkg.com/@oxlint-tsgolint/win32-x64/-/win32-x64-0.20.0.tgz#90d5582b1df2ae877b2c5d7620e3a55acf9cc45f"+ integrity sha512-4stx8RHj3SP9vQyRF/yZbz5igtPvYMEUR8CUoha4BVNZihi39DpCR8qkU7lpjB5Ga1DRMo2pHaA4bdTOMaY4mw==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-android-arm-eabi/-/binding-android-arm-eabi-1.61.0.tgz#c7a8fb22ac3084d6f4c873cdc9779f4f9e38b805"+ integrity sha512-6eZBPgiigK5txqoVgRqxbaxiom4lM8AP8CyKPPvpzKnQ3iFRFOIDc+0AapF+qsUSwjOzr5SGk4SxQDpQhkSJMQ==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-android-arm64/-/binding-android-arm64-1.61.0.tgz#5fe7c707e12513ede292da015d13e93781771e9f"+ integrity sha512-CkwLR69MUnyv5wjzebvbbtTSUwqLxM35CXE79bHqDIK+NtKmPEUpStTcLQRZMCo4MP0qRT6TXIQVpK0ZVScnMA==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-darwin-arm64/-/binding-darwin-arm64-1.61.0.tgz#1f58a4c592b76e293e5b9072cc0e4e7a5bef8191"+ integrity sha512-8JbefTkbmvqkqWjmQrHke+MdpgT2UghhD/ktM4FOQSpGeCgbMToJEKdl9zwhr/YWTl92i4QI1KiTwVExpcUN8A==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-darwin-x64/-/binding-darwin-x64-1.61.0.tgz#eade7425cc943c3146f3e0f0fb4d08d615ee78a9"+ integrity sha512-uWpoxDT47hTnDLcdEh5jVbso8rlTTu5o0zuqa9J8E0JAKmIWn7kGFEIB03Pycn2hd2vKxybPGLhjURy/9We5FQ==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-freebsd-x64/-/binding-freebsd-x64-1.61.0.tgz#8d82382a07ce4895c91694a810dee7f39866951b"+ integrity sha512-K/o4hEyW7flfMel0iBVznmMBt7VIMHGdjADocHKpK1DUF9erpWnJ+BSSWd2W0c8K3mPtpph+CuHzRU6CI3l9jQ==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.61.0.tgz#df76a5700651cda73ca5578de7308f9479b7cb1b"+ integrity sha512-P6040ZkcyweJ0Po9yEFqJCdvZnf3VNCGs1SIHgXDf8AAQNC6ID/heXQs9iSgo2FH7gKaKq32VWc59XZwL34C5Q==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-1.61.0.tgz#b198e5697cfb6cc55eff5ab5b9766732e143492d"+ integrity sha512-bwxrGCzTZkuB+THv2TQ1aTkVEfv5oz8sl+0XZZCpoYzErJD8OhPQOTA0ENPd1zJz8QsVdSzSrS2umKtPq4/JXg==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.61.0.tgz#a5cdae7ef9f9b79526ef764fb174bb362c3737ee"+ integrity sha512-vkhb9/wKguMkLlrm3FoJW/Xmdv31GgYAE+x8lxxQ+7HeOxXUySI0q36a3NTVIuQUdLzxCI1zzMGsk1o37FOe3w==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.61.0.tgz#227f6d94a3c00140a88ea338436783bd9da6f4ae"+ integrity sha512-bl1dQh8LnVqsj6oOQAcxwbuOmNJkwc4p6o//HTBZhNTzJy21TLDwAviMqUFNUxDHkPGpmdKTSN4tWTjLryP8xg==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.61.0.tgz#e504e6cd8691fe460b202599d4c962fc7ad98f94"+ integrity sha512-QoOX6KB2IiEpyOj/HKqaxi+NQHPnOgNgnr22n9N4ANJCzXkUlj1UmeAbFb4PpqdlHIzvGDM5xZ0OKtcLq9RhiQ==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-1.61.0.tgz#efe70d9e570756fe19fb60d05a39dd58e9e0f32d"+ integrity sha512-1TGcTerjY6p152wCof3oKElccq3xHljS/Mucp04gV/4ATpP6nO7YNnp7opEg6SHkv2a57/b4b8Ndm9znJ1/qAw==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-1.61.0.tgz#f9c42095192f235b03a5d3d1f1fbfb45002d5a93"+ integrity sha512-65wXEmZIrX2ADwC8i/qFL4EWLSbeuBpAm3suuX1vu4IQkKd+wLT/HU/BOl84kp91u2SxPkPDyQgu4yrqp8vwVA==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.61.0.tgz#23773cd6f8087f98c54383caccb98808fab6cca0"+ integrity sha512-TVvhgMvor7Qa6COeXxCJ7ENOM+lcAOGsQ0iUdPSCv2hxb9qSHLQ4XF1h50S6RE1gBOJ0WV3rNukg4JJJP1LWRA==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.61.0.tgz#f46b036cf74b382c03f6a00e18cd1ae53096517f"+ integrity sha512-SjpS5uYuFoDnDdZPwZE59ndF95AsY47R5MliuneTWR1pDm2CxGJaYXbKULI71t5TVfLQUWmrHEGRL9xvuq6dnA==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-linux-x64-musl/-/binding-linux-x64-musl-1.61.0.tgz#cff6c4c24de0863cecbce1c1f43adcafacd9011d"+ integrity sha512-gGfAeGD4sNJGILZbc/yKcIimO9wQnPMoYp9swAaKeEtwsSQAbU+rsdQze5SBtIP6j0QDzeYd4XSSUCRCF+LIeQ==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-openharmony-arm64/-/binding-openharmony-arm64-1.61.0.tgz#9fdd87fc10c2c51c510470f7c4136ab2df9ee7b3"+ integrity sha512-OlVT0LrG/ct33EVtWRyR+B/othwmDWeRxfi13wUdPeb3lAT5TgTcFDcfLfarZtzB4W1nWF/zICMgYdkggX2WmQ==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.61.0.tgz#25a87f62859a6703f2520d665f98f6c0f88a70e0"+ integrity sha512-vI//NZPJk6DToiovPtaiwD4iQ7kO1r5ReWQD0sOOyKRtP3E2f6jxin4uvwi3OvDzHA2EFfd7DcZl5dtkQh7g1w==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.61.0.tgz#06f7df42b074f28ef27540d38be69875e5d5afcb"+ integrity sha512-0ySj4/4zd2XjePs3XAQq7IigIstN4LPQZgCyigX5/ERMLjdWAJfnxcTsrtxZxuij8guJW8foXuHmhGxW0H4dDA==++"@oxlint/[email protected]":+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/@oxlint/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.61.0.tgz#7bc84b261bb8b515ade20f1044547cc8bbee44ce"+ integrity sha512-0xgSiyeqDLDZxXoe9CVJrOx3TUVsfyoOY7cNi03JbItNcC9WCZqrSNdrAbHONxhSPaVh/lzfnDcON1RqSUMhHw=="@playwright/test@^1.57.0-alpha-2025-10-09":version "1.57.0-alpha-2025-10-11"@@ -147,16 +229,6 @@dependencies:playwright "1.57.0-alpha-2025-10-11"-"@types/estree@^1.0.6":- version "1.0.8"- resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.8.tgz#958b91c991b1867ced318bedea0e215ee050726e"- integrity sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==--"@types/json-schema@^7.0.12", "@types/json-schema@^7.0.15":- version "7.0.15"- resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841"- integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==-"@types/node@^20.0.0":version "20.19.20"resolved "https://registry.yarnpkg.com/@types/node/-/node-20.19.20.tgz#116f5432a1e6383415a57cf5e00b5ac9b2a2ad03"@@ -164,1015 +236,91 @@dependencies:undici-types "~6.21.0"-"@types/semver@^7.5.0":- version "7.7.1"- resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.7.1.tgz#3ce3af1a5524ef327d2da9e4fd8b6d95c8d70528"- integrity sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA==--"@typescript-eslint/eslint-plugin@^6.0.0":- version "6.21.0"- resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.21.0.tgz#30830c1ca81fd5f3c2714e524c4303e0194f9cd3"- integrity sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==- dependencies:- "@eslint-community/regexpp" "^4.5.1"- "@typescript-eslint/scope-manager" "6.21.0"- "@typescript-eslint/type-utils" "6.21.0"- "@typescript-eslint/utils" "6.21.0"- "@typescript-eslint/visitor-keys" "6.21.0"- debug "^4.3.4"- graphemer "^1.4.0"- ignore "^5.2.4"- natural-compare "^1.4.0"- semver "^7.5.4"- ts-api-utils "^1.0.1"--"@typescript-eslint/parser@^6.0.0":- version "6.21.0"- resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.21.0.tgz#af8fcf66feee2edc86bc5d1cf45e33b0630bf35b"- integrity sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==- dependencies:- "@typescript-eslint/scope-manager" "6.21.0"- "@typescript-eslint/types" "6.21.0"- "@typescript-eslint/typescript-estree" "6.21.0"- "@typescript-eslint/visitor-keys" "6.21.0"- debug "^4.3.4"--"@typescript-eslint/[email protected]":- version "6.21.0"- resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz#ea8a9bfc8f1504a6ac5d59a6df308d3a0630a2b1"- integrity sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==- dependencies:- "@typescript-eslint/types" "6.21.0"- "@typescript-eslint/visitor-keys" "6.21.0"--"@typescript-eslint/[email protected]":- version "6.21.0"- resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.21.0.tgz#6473281cfed4dacabe8004e8521cee0bd9d4c01e"- integrity sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==- dependencies:- "@typescript-eslint/typescript-estree" "6.21.0"- "@typescript-eslint/utils" "6.21.0"- debug "^4.3.4"- ts-api-utils "^1.0.1"--"@typescript-eslint/[email protected]":- version "6.21.0"- resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.21.0.tgz#205724c5123a8fef7ecd195075fa6e85bac3436d"- integrity sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==--"@typescript-eslint/[email protected]":- version "6.21.0"- resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz#c47ae7901db3b8bddc3ecd73daff2d0895688c46"- integrity sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==- dependencies:- "@typescript-eslint/types" "6.21.0"- "@typescript-eslint/visitor-keys" "6.21.0"- debug "^4.3.4"- globby "^11.1.0"- is-glob "^4.0.3"- minimatch "9.0.3"- semver "^7.5.4"- ts-api-utils "^1.0.1"--"@typescript-eslint/[email protected]":- version "6.21.0"- resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.21.0.tgz#4714e7a6b39e773c1c8e97ec587f520840cd8134"- integrity sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==- dependencies:- "@eslint-community/eslint-utils" "^4.4.0"- "@types/json-schema" "^7.0.12"- "@types/semver" "^7.5.0"- "@typescript-eslint/scope-manager" "6.21.0"- "@typescript-eslint/types" "6.21.0"- "@typescript-eslint/typescript-estree" "6.21.0"- semver "^7.5.4"--"@typescript-eslint/[email protected]":- version "6.21.0"- resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz#87a99d077aa507e20e238b11d56cc26ade45fe47"- integrity sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==- dependencies:- "@typescript-eslint/types" "6.21.0"- eslint-visitor-keys "^3.4.1"--accepts@^2.0.0:- version "2.0.0"- resolved "https://registry.yarnpkg.com/accepts/-/accepts-2.0.0.tgz#bbcf4ba5075467f3f2131eab3cffc73c2f5d7895"- integrity sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==- dependencies:- mime-types "^3.0.0"- negotiator "^1.0.0"--acorn-jsx@^5.3.2:- version "5.3.2"- resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"- integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==--acorn@^8.15.0:- version "8.15.0"- resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.15.0.tgz#a360898bc415edaac46c8241f6383975b930b816"- integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==--ajv-formats@^3.0.1:- version "3.0.1"- resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-3.0.1.tgz#3d5dc762bca17679c3c2ea7e90ad6b7532309578"- integrity sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==- dependencies:- ajv "^8.0.0"--ajv@^6.12.4:- version "6.14.0"- resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.14.0.tgz#fd067713e228210636ebb08c60bd3765d6dbe73a"- integrity sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==- dependencies:- fast-deep-equal "^3.1.1"- fast-json-stable-stringify "^2.0.0"- json-schema-traverse "^0.4.1"- uri-js "^4.2.2"--ajv@^8.0.0, ajv@^8.17.1:- version "8.17.1"- resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.17.1.tgz#37d9a5c776af6bc92d7f4f9510eba4c0a60d11a6"- integrity sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==- dependencies:- fast-deep-equal "^3.1.3"- fast-uri "^3.0.1"- json-schema-traverse "^1.0.0"- require-from-string "^2.0.2"--ansi-styles@^4.1.0:- version "4.3.0"- resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937"- integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==- dependencies:- color-convert "^2.0.1"--argparse@^2.0.1:- version "2.0.1"- resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"- integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==--array-union@^2.1.0:- version "2.1.0"- resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d"- integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==--balanced-match@^1.0.0:- version "1.0.2"- resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"- integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==--body-parser@^2.2.1:- version "2.2.2"- resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-2.2.2.tgz#1a32cdb966beaf68de50a9dfbe5b58f83cb8890c"- integrity sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==- dependencies:- bytes "^3.1.2"- content-type "^1.0.5"- debug "^4.4.3"- http-errors "^2.0.0"- iconv-lite "^0.7.0"- on-finished "^2.4.1"- qs "^6.14.1"- raw-body "^3.0.1"- type-is "^2.0.1"--brace-expansion@^1.1.7:- version "1.1.12"- resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.12.tgz#ab9b454466e5a8cc3a187beaad580412a9c5b843"- integrity sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==- dependencies:- balanced-match "^1.0.0"- concat-map "0.0.1"--brace-expansion@^2.0.1:- version "2.0.2"- resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.2.tgz#54fc53237a613d854c7bd37463aad17df87214e7"- integrity sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==- dependencies:- balanced-match "^1.0.0"--braces@^3.0.3:- version "3.0.3"- resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789"- integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==- dependencies:- fill-range "^7.1.1"--bytes@^3.1.2, bytes@~3.1.2:- version "3.1.2"- resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5"- integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==--call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2:- version "1.0.2"- resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz#4b5428c222be985d79c3d82657479dbe0b59b2d6"- integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==- dependencies:- es-errors "^1.3.0"- function-bind "^1.1.2"--call-bound@^1.0.2:- version "1.0.4"- resolved "https://registry.yarnpkg.com/call-bound/-/call-bound-1.0.4.tgz#238de935d2a2a692928c538c7ccfa91067fd062a"- integrity sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==- dependencies:- call-bind-apply-helpers "^1.0.2"- get-intrinsic "^1.3.0"--callsites@^3.0.0:- version "3.1.0"- resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73"- integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==--chalk@^4.0.0:- version "4.1.2"- resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"- integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==- dependencies:- ansi-styles "^4.1.0"- supports-color "^7.1.0"--color-convert@^2.0.1:- version "2.0.1"- resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3"- integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==- dependencies:- color-name "~1.1.4"--color-name@~1.1.4:- version "1.1.4"- resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"- integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==-- version "0.0.1"- resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"- integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==--content-disposition@^1.0.0:- version "1.0.1"- resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-1.0.1.tgz#a8b7bbeb2904befdfb6787e5c0c086959f605f9b"- integrity sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==--content-type@^1.0.5:- version "1.0.5"- resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918"- integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==--cookie-signature@^1.2.1:- version "1.2.2"- resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.2.2.tgz#57c7fc3cc293acab9fec54d73e15690ebe4a1793"- integrity sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==--cookie@^0.7.1:- version "0.7.2"- resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.7.2.tgz#556369c472a2ba910f2979891b526b3436237ed7"- integrity sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==--cors@^2.8.5:- version "2.8.6"- resolved "https://registry.yarnpkg.com/cors/-/cors-2.8.6.tgz#ff5dd69bd95e547503820d29aba4f8faf8dfec96"- integrity sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==- dependencies:- object-assign "^4"- vary "^1"--cross-spawn@^7.0.5, cross-spawn@^7.0.6:- version "7.0.6"- resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f"- integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==- dependencies:- path-key "^3.1.0"- shebang-command "^2.0.0"- which "^2.0.1"--debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@^4.4.0, debug@^4.4.3:- version "4.4.3"- resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.3.tgz#c6ae432d9bd9662582fce08709b038c58e9e3d6a"- integrity sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==- dependencies:- ms "^2.1.3"--deep-is@^0.1.3:- version "0.1.4"- resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831"- integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==--depd@^2.0.0, depd@~2.0.0:- version "2.0.0"- resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df"- integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==--dir-glob@^3.0.1:- version "3.0.1"- resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f"- integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==- dependencies:- path-type "^4.0.0"-dotenv@^16.0.0:version "16.6.1"resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.6.1.tgz#773f0e69527a8315c7285d5ee73c4459d20a8020"integrity sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==-dunder-proto@^1.0.1:- version "1.0.1"- resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a"- integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==- dependencies:- call-bind-apply-helpers "^1.0.1"- es-errors "^1.3.0"- gopd "^1.2.0"-- version "1.1.1"- resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"- integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==--encodeurl@^2.0.0:- version "2.0.0"- resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-2.0.0.tgz#7b8ea898077d7e409d3ac45474ea38eaf0857a58"- integrity sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==--es-define-property@^1.0.1:- version "1.0.1"- resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.1.tgz#983eb2f9a6724e9303f61addf011c72e09e0b0fa"- integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==--es-errors@^1.3.0:- version "1.3.0"- resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f"- integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==--es-object-atoms@^1.0.0, es-object-atoms@^1.1.1:- version "1.1.1"- resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz#1c4f2c4837327597ce69d2ca190a7fdd172338c1"- integrity sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==- dependencies:- es-errors "^1.3.0"--escape-html@^1.0.3:- version "1.0.3"- resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"- integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==--escape-string-regexp@^4.0.0:- version "4.0.0"- resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"- integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==--eslint-plugin-playwright@^0.16.0:- version "0.16.0"- resolved "https://registry.yarnpkg.com/eslint-plugin-playwright/-/eslint-plugin-playwright-0.16.0.tgz#083c601a0704a7615509e63ac475bf7f0052d226"- integrity sha512-DcHpF0SLbNeh9MT4pMzUGuUSnJ7q5MWbP8sSEFIMS6j7Ggnduq8ghNlfhURgty4c1YFny7Ge9xYTO1FSAoV2Vw==--eslint-scope@^8.3.0:- version "8.4.0"- resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-8.4.0.tgz#88e646a207fad61436ffa39eb505147200655c82"- integrity sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==- dependencies:- esrecurse "^4.3.0"- estraverse "^5.2.0"--eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3:- version "3.4.3"- resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800"- integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==--eslint-visitor-keys@^4.2.0, eslint-visitor-keys@^4.2.1:- version "4.2.1"- resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz#4cfea60fe7dd0ad8e816e1ed026c1d5251b512c1"- integrity sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==--eslint@^9.26.0:- version "9.26.0"- resolved "https://registry.yarnpkg.com/eslint/-/eslint-9.26.0.tgz#978fe029adc2aceed28ab437bca876e83461c3b4"- integrity sha512-Hx0MOjPh6uK9oq9nVsATZKE/Wlbai7KFjfCuw9UHaguDW3x+HF0O5nIi3ud39TWgrTjTO5nHxmL3R1eANinWHQ==- dependencies:- "@eslint-community/eslint-utils" "^4.2.0"- "@eslint-community/regexpp" "^4.12.1"- "@eslint/config-array" "^0.20.0"- "@eslint/config-helpers" "^0.2.1"- "@eslint/core" "^0.13.0"- "@eslint/eslintrc" "^3.3.1"- "@eslint/js" "9.26.0"- "@eslint/plugin-kit" "^0.2.8"- "@humanfs/node" "^0.16.6"- "@humanwhocodes/module-importer" "^1.0.1"- "@humanwhocodes/retry" "^0.4.2"- "@modelcontextprotocol/sdk" "^1.8.0"- "@types/estree" "^1.0.6"- "@types/json-schema" "^7.0.15"- ajv "^6.12.4"- chalk "^4.0.0"- cross-spawn "^7.0.6"- debug "^4.3.2"- escape-string-regexp "^4.0.0"- eslint-scope "^8.3.0"- eslint-visitor-keys "^4.2.0"- espree "^10.3.0"- esquery "^1.5.0"- esutils "^2.0.2"- fast-deep-equal "^3.1.3"- file-entry-cache "^8.0.0"- find-up "^5.0.0"- glob-parent "^6.0.2"- ignore "^5.2.0"- imurmurhash "^0.1.4"- is-glob "^4.0.0"- json-stable-stringify-without-jsonify "^1.0.1"- lodash.merge "^4.6.2"- minimatch "^3.1.2"- natural-compare "^1.4.0"- optionator "^0.9.3"- zod "^3.24.2"--espree@^10.0.1, espree@^10.3.0:- version "10.4.0"- resolved "https://registry.yarnpkg.com/espree/-/espree-10.4.0.tgz#d54f4949d4629005a1fa168d937c3ff1f7e2a837"- integrity sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==- dependencies:- acorn "^8.15.0"- acorn-jsx "^5.3.2"- eslint-visitor-keys "^4.2.1"--esquery@^1.5.0:- version "1.7.0"- resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.7.0.tgz#08d048f261f0ddedb5bae95f46809463d9c9496d"- integrity sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==- dependencies:- estraverse "^5.1.0"--esrecurse@^4.3.0:- version "4.3.0"- resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921"- integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==- dependencies:- estraverse "^5.2.0"--estraverse@^5.1.0, estraverse@^5.2.0:- version "5.3.0"- resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123"- integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==--esutils@^2.0.2:- version "2.0.3"- resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"- integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==--etag@^1.8.1:- version "1.8.1"- resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887"- integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==--eventsource-parser@^3.0.0, eventsource-parser@^3.0.1:- version "3.0.6"- resolved "https://registry.yarnpkg.com/eventsource-parser/-/eventsource-parser-3.0.6.tgz#292e165e34cacbc936c3c92719ef326d4aeb4e90"- integrity sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg==--eventsource@^3.0.2:- version "3.0.7"- resolved "https://registry.yarnpkg.com/eventsource/-/eventsource-3.0.7.tgz#1157622e2f5377bb6aef2114372728ba0c156989"- integrity sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==- dependencies:- eventsource-parser "^3.0.1"--express-rate-limit@^8.2.1:- version "8.3.1"- resolved "https://registry.yarnpkg.com/express-rate-limit/-/express-rate-limit-8.3.1.tgz#0aaba098eadd40f6737f30a98e6b16fa1a29edfb"- integrity sha512-D1dKN+cmyPWuvB+G2SREQDzPY1agpBIcTa9sJxOPMCNeH3gwzhqJRDWCXW3gg0y//+LQ/8j52JbMROWyrKdMdw==- dependencies:- ip-address "10.1.0"--express@^5.2.1:- version "5.2.1"- resolved "https://registry.yarnpkg.com/express/-/express-5.2.1.tgz#8f21d15b6d327f92b4794ecf8cb08a72f956ac04"- integrity sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==- dependencies:- accepts "^2.0.0"- body-parser "^2.2.1"- content-disposition "^1.0.0"- content-type "^1.0.5"- cookie "^0.7.1"- cookie-signature "^1.2.1"- debug "^4.4.0"- depd "^2.0.0"- encodeurl "^2.0.0"- escape-html "^1.0.3"- etag "^1.8.1"- finalhandler "^2.1.0"- fresh "^2.0.0"- http-errors "^2.0.0"- merge-descriptors "^2.0.0"- mime-types "^3.0.0"- on-finished "^2.4.1"- once "^1.4.0"- parseurl "^1.3.3"- proxy-addr "^2.0.7"- qs "^6.14.0"- range-parser "^1.2.1"- router "^2.2.0"- send "^1.1.0"- serve-static "^2.2.0"- statuses "^2.0.1"- type-is "^2.0.1"- vary "^1.1.2"--fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:- version "3.1.3"- resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"- integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==--fast-glob@^3.2.9:- version "3.3.3"- resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.3.tgz#d06d585ce8dba90a16b0505c543c3ccfb3aeb818"- integrity sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==- dependencies:- "@nodelib/fs.stat" "^2.0.2"- "@nodelib/fs.walk" "^1.2.3"- glob-parent "^5.1.2"- merge2 "^1.3.0"- micromatch "^4.0.8"--fast-json-stable-stringify@^2.0.0:- version "2.1.0"- resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633"- integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==--fast-levenshtein@^2.0.6:- version "2.0.6"- resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"- integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==--fast-uri@^3.0.1:- version "3.1.0"- resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.1.0.tgz#66eecff6c764c0df9b762e62ca7edcfb53b4edfa"- integrity sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==--fastq@^1.6.0:- version "1.19.1"- resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.19.1.tgz#d50eaba803c8846a883c16492821ebcd2cda55f5"- integrity sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==- dependencies:- reusify "^1.0.4"--file-entry-cache@^8.0.0:- version "8.0.0"- resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-8.0.0.tgz#7787bddcf1131bffb92636c69457bbc0edd6d81f"- integrity sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==- dependencies:- flat-cache "^4.0.0"--fill-range@^7.1.1:- version "7.1.1"- resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292"- integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==- dependencies:- to-regex-range "^5.0.1"--finalhandler@^2.1.0:- version "2.1.1"- resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-2.1.1.tgz#a2c517a6559852bcdb06d1f8bd7f51b68fad8099"- integrity sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==- dependencies:- debug "^4.4.0"- encodeurl "^2.0.0"- escape-html "^1.0.3"- on-finished "^2.4.1"- parseurl "^1.3.3"- statuses "^2.0.1"--find-up@^5.0.0:- version "5.0.0"- resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc"- integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==- dependencies:- locate-path "^6.0.0"- path-exists "^4.0.0"--flat-cache@^4.0.0:- version "4.0.1"- resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-4.0.1.tgz#0ece39fcb14ee012f4b0410bd33dd9c1f011127c"- integrity sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==+eslint-plugin-playwright@^2.10.2:+ version "2.10.2"+ resolved "https://registry.yarnpkg.com/eslint-plugin-playwright/-/eslint-plugin-playwright-2.10.2.tgz#1f0bef35c0b9f996a6987a401e6d4e6a3a015861"+ integrity sha512-0N+2OWc3NZbOZ0gK8mp2TK6Qu3UWcJTQ9rqU0UM2yRJXgT758pvpY0lsOLIySfbyFrLqn3TcXjixbmcK90VnuQ==dependencies:- flatted "^3.2.9"- keyv "^4.5.4"--flatted@^3.2.9:- version "3.4.2"- resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.4.2.tgz#f5c23c107f0f37de8dbdf24f13722b3b98d52726"- integrity sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==-- version "0.2.0"- resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811"- integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==--fresh@^2.0.0:- version "2.0.0"- resolved "https://registry.yarnpkg.com/fresh/-/fresh-2.0.0.tgz#8dd7df6a1b3a1b3a5cf186c05a5dd267622635a4"- integrity sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==+ globals "^17.3.0"version "2.3.2"resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==-function-bind@^1.1.2:- version "1.1.2"- resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c"- integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==--get-intrinsic@^1.2.5, get-intrinsic@^1.3.0:- version "1.3.0"- resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz#743f0e3b6964a93a5491ed1bffaae054d7f98d01"- integrity sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==- dependencies:- call-bind-apply-helpers "^1.0.2"- es-define-property "^1.0.1"- es-errors "^1.3.0"- es-object-atoms "^1.1.1"- function-bind "^1.1.2"- get-proto "^1.0.1"- gopd "^1.2.0"- has-symbols "^1.1.0"- hasown "^2.0.2"- math-intrinsics "^1.1.0"--get-proto@^1.0.1:- version "1.0.1"- resolved "https://registry.yarnpkg.com/get-proto/-/get-proto-1.0.1.tgz#150b3f2743869ef3e851ec0c49d15b1d14d00ee1"- integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==- dependencies:- dunder-proto "^1.0.1"- es-object-atoms "^1.0.0"--glob-parent@^5.1.2:- version "5.1.2"- resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"- integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==- dependencies:- is-glob "^4.0.1"--glob-parent@^6.0.2:- version "6.0.2"- resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3"- integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==- dependencies:- is-glob "^4.0.3"--globals@^14.0.0:- version "14.0.0"- resolved "https://registry.yarnpkg.com/globals/-/globals-14.0.0.tgz#898d7413c29babcf6bafe56fcadded858ada724e"- integrity sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==--globby@^11.1.0:- version "11.1.0"- resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b"- integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==- dependencies:- array-union "^2.1.0"- dir-glob "^3.0.1"- fast-glob "^3.2.9"- ignore "^5.2.0"- merge2 "^1.4.1"- slash "^3.0.0"--gopd@^1.2.0:- version "1.2.0"- resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1"- integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==--graphemer@^1.4.0:- version "1.4.0"- resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6"- integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==--has-flag@^4.0.0:- version "4.0.0"- resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"- integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==--has-symbols@^1.1.0:- version "1.1.0"- resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.1.0.tgz#fc9c6a783a084951d0b971fe1018de813707a338"- integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==--hasown@^2.0.2:- version "2.0.2"- resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003"- integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==- dependencies:- function-bind "^1.1.2"--hono@^4.11.4:- version "4.12.12"- resolved "https://registry.yarnpkg.com/hono/-/hono-4.12.12.tgz#1f14b0ffb47c386ff50d457d66e706d9c9a7f09c"- integrity sha512-p1JfQMKaceuCbpJKAPKVqyqviZdS0eUxH9v82oWo1kb9xjQ5wA6iP3FNVAPDFlz5/p7d45lO+BpSk1tuSZMF4Q==--http-errors@^2.0.0, http-errors@^2.0.1, http-errors@~2.0.1:- version "2.0.1"- resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.1.tgz#36d2f65bc909c8790018dd36fb4d93da6caae06b"- integrity sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==- dependencies:- depd "~2.0.0"- inherits "~2.0.4"- setprototypeof "~1.2.0"- statuses "~2.0.2"- toidentifier "~1.0.1"--iconv-lite@^0.7.0, iconv-lite@~0.7.0:- version "0.7.2"- resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.7.2.tgz#d0bdeac3f12b4835b7359c2ad89c422a4d1cc72e"- integrity sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==- dependencies:- safer-buffer ">= 2.1.2 < 3.0.0"--ignore@^5.2.0, ignore@^5.2.4:- version "5.3.2"- resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5"- integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==--import-fresh@^3.2.1:- version "3.3.1"- resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.1.tgz#9cecb56503c0ada1f2741dbbd6546e4b13b57ccf"- integrity sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==- dependencies:- parent-module "^1.0.0"- resolve-from "^4.0.0"--imurmurhash@^0.1.4:- version "0.1.4"- resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"- integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==--inherits@~2.0.4:- version "2.0.4"- resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"- integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==-- version "10.1.0"- resolved "https://registry.yarnpkg.com/ip-address/-/ip-address-10.1.0.tgz#d8dcffb34d0e02eb241427444a6e23f5b0595aa4"- integrity sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==-- version "1.9.1"- resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3"- integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==--is-extglob@^2.1.1:- version "2.1.1"- resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"- integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==--is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3:- version "4.0.3"- resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084"- integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==- dependencies:- is-extglob "^2.1.1"--is-number@^7.0.0:- version "7.0.0"- resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"- integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==--is-promise@^4.0.0:- version "4.0.0"- resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-4.0.0.tgz#42ff9f84206c1991d26debf520dd5c01042dd2f3"- integrity sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==--isexe@^2.0.0:- version "2.0.0"- resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"- integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==--jose@^6.1.3:- version "6.2.1"- resolved "https://registry.yarnpkg.com/jose/-/jose-6.2.1.tgz#7a6b1de83816deaee9055a558e1278a7b2b9ea1b"- integrity sha512-jUaKr1yrbfaImV7R2TN/b3IcZzsw38/chqMpo2XJ7i2F8AfM/lA4G1goC3JVEwg0H7UldTmSt3P68nt31W7/mw==--js-yaml@^4.1.1:- version "4.1.1"- resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.1.tgz#854c292467705b699476e1a2decc0c8a3458806b"- integrity sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==- dependencies:- argparse "^2.0.1"-- version "3.0.1"- resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13"- integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==--json-schema-traverse@^0.4.1:- version "0.4.1"- resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660"- integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==--json-schema-traverse@^1.0.0:- version "1.0.0"- resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2"- integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==--json-schema-typed@^8.0.2:- version "8.0.2"- resolved "https://registry.yarnpkg.com/json-schema-typed/-/json-schema-typed-8.0.2.tgz#e98ee7b1899ff4a184534d1f167c288c66bbeff4"- integrity sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==--json-stable-stringify-without-jsonify@^1.0.1:- version "1.0.1"- resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"- integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==--keyv@^4.5.4:- version "4.5.4"- resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93"- integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==- dependencies:- json-buffer "3.0.1"--levn@^0.4.1:- version "0.4.1"- resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade"- integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==- dependencies:- prelude-ls "^1.2.1"- type-check "~0.4.0"--locate-path@^6.0.0:- version "6.0.0"- resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286"- integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==- dependencies:- p-locate "^5.0.0"--lodash.merge@^4.6.2:- version "4.6.2"- resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"- integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==--math-intrinsics@^1.1.0:- version "1.1.0"- resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9"- integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==--media-typer@^1.1.0:- version "1.1.0"- resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-1.1.0.tgz#6ab74b8f2d3320f2064b2a87a38e7931ff3a5561"- integrity sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==--merge-descriptors@^2.0.0:- version "2.0.0"- resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-2.0.0.tgz#ea922f660635a2249ee565e0449f951e6b603808"- integrity sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==--merge2@^1.3.0, merge2@^1.4.1:- version "1.4.1"- resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae"- integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==--micromatch@^4.0.8:- version "4.0.8"- resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202"- integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==- dependencies:- braces "^3.0.3"- picomatch "^2.3.1"--mime-db@^1.54.0:- version "1.54.0"- resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.54.0.tgz#cddb3ee4f9c64530dff640236661d42cb6a314f5"- integrity sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==--mime-types@^3.0.0, mime-types@^3.0.2:- version "3.0.2"- resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-3.0.2.tgz#39002d4182575d5af036ffa118100f2524b2e2ab"- integrity sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==- dependencies:- mime-db "^1.54.0"-- version "9.0.3"- resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.3.tgz#a6e00c3de44c3a542bfaae70abfc22420a6da825"- integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==- dependencies:- brace-expansion "^2.0.1"--minimatch@^3.1.2:- version "3.1.2"- resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"- integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==- dependencies:- brace-expansion "^1.1.7"--ms@^2.1.3:- version "2.1.3"- resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"- integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==--natural-compare@^1.4.0:- version "1.4.0"- resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"- integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==--negotiator@^1.0.0:- version "1.0.0"- resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-1.0.0.tgz#b6c91bb47172d69f93cfd7c357bbb529019b5f6a"- integrity sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==--object-assign@^4:- version "4.1.1"- resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"- integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==--object-inspect@^1.13.3:- version "1.13.4"- resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.4.tgz#8375265e21bc20d0fa582c22e1b13485d6e00213"- integrity sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==--on-finished@^2.4.1:- version "2.4.1"- resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f"- integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==- dependencies:- ee-first "1.1.1"--once@^1.4.0:- version "1.4.0"- resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"- integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==- dependencies:- wrappy "1"--optionator@^0.9.3:- version "0.9.4"- resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.4.tgz#7ea1c1a5d91d764fb282139c88fe11e182a3a734"- integrity sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==- dependencies:- deep-is "^0.1.3"- fast-levenshtein "^2.0.6"- levn "^0.4.1"- prelude-ls "^1.2.1"- type-check "^0.4.0"- word-wrap "^1.2.5"--p-limit@^3.0.2:- version "3.1.0"- resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b"- integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==- dependencies:- yocto-queue "^0.1.0"--p-locate@^5.0.0:- version "5.0.0"- resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834"- integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==- dependencies:- p-limit "^3.0.2"+globals@^17.3.0:+ version "17.5.0"+ resolved "https://registry.yarnpkg.com/globals/-/globals-17.5.0.tgz#a82c641d898f8dfbe0e81f66fdff7d0de43f88c6"+ integrity sha512-qoV+HK2yFl/366t2/Cb3+xxPUo5BuMynomoDmiaZBIdbs+0pYbjfZU+twLhGKp4uCZ/+NbtpVepH5bGCxRyy2g==-parent-module@^1.0.0:- version "1.0.1"- resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2"- integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==+oxfmt@^0.41.0:+ version "0.41.0"+ resolved "https://registry.yarnpkg.com/oxfmt/-/oxfmt-0.41.0.tgz#7dbfb63d19704a85412f36678c3ace092ce88673"+ integrity sha512-sKLdJZdQ3bw6x9qKiT7+eID4MNEXlDHf5ZacfIircrq6Qwjk0L6t2/JQlZZrVHTXJawK3KaMuBoJnEJPcqCEdg==dependencies:- callsites "^3.0.0"--parseurl@^1.3.3:- version "1.3.3"- resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4"- integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==--path-exists@^4.0.0:- version "4.0.0"- resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3"- integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==--path-key@^3.1.0:- version "3.1.1"- resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"- integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==--path-to-regexp@^8.0.0:- version "8.4.0"- resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-8.4.0.tgz#8e98fcd94826aff01a90c544ef74ffbaca3a78ed"- integrity sha512-PuseHIvAnz3bjrM2rGJtSgo1zjgxapTLZ7x2pjhzWwlp4SJQgK3f3iZIQwkpEnBaKz6seKBADpM4B4ySkuYypg==--path-type@^4.0.0:- version "4.0.0"- resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"- integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==--picomatch@^2.3.1:- version "2.3.2"- resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.2.tgz#5a942915e26b372dc0f0e6753149a16e6b1c5601"- integrity sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==--pkce-challenge@^5.0.0:- version "5.0.1"- resolved "https://registry.yarnpkg.com/pkce-challenge/-/pkce-challenge-5.0.1.tgz#3b4446865b17b1745e9ace2016a31f48ddf6230d"- integrity sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==+ tinypool "2.1.0"+ optionalDependencies:+ "@oxfmt/binding-android-arm-eabi" "0.41.0"+ "@oxfmt/binding-android-arm64" "0.41.0"+ "@oxfmt/binding-darwin-arm64" "0.41.0"+ "@oxfmt/binding-darwin-x64" "0.41.0"+ "@oxfmt/binding-freebsd-x64" "0.41.0"+ "@oxfmt/binding-linux-arm-gnueabihf" "0.41.0"+ "@oxfmt/binding-linux-arm-musleabihf" "0.41.0"+ "@oxfmt/binding-linux-arm64-gnu" "0.41.0"+ "@oxfmt/binding-linux-arm64-musl" "0.41.0"+ "@oxfmt/binding-linux-ppc64-gnu" "0.41.0"+ "@oxfmt/binding-linux-riscv64-gnu" "0.41.0"+ "@oxfmt/binding-linux-riscv64-musl" "0.41.0"+ "@oxfmt/binding-linux-s390x-gnu" "0.41.0"+ "@oxfmt/binding-linux-x64-gnu" "0.41.0"+ "@oxfmt/binding-linux-x64-musl" "0.41.0"+ "@oxfmt/binding-openharmony-arm64" "0.41.0"+ "@oxfmt/binding-win32-arm64-msvc" "0.41.0"+ "@oxfmt/binding-win32-ia32-msvc" "0.41.0"+ "@oxfmt/binding-win32-x64-msvc" "0.41.0"++oxlint-tsgolint@^0.20.0:+ version "0.20.0"+ resolved "https://registry.yarnpkg.com/oxlint-tsgolint/-/oxlint-tsgolint-0.20.0.tgz#e011319219faa572faf340c40d65708404b37e10"+ integrity sha512-/Uc9TQyN1l8w9QNvXtVHYtz+SzDJHKpb5X0UnHodl0BVzijUPk0LPlDOHAvogd1UI+iy9ZSF6gQxEqfzUxCULQ==+ optionalDependencies:+ "@oxlint-tsgolint/darwin-arm64" "0.20.0"+ "@oxlint-tsgolint/darwin-x64" "0.20.0"+ "@oxlint-tsgolint/linux-arm64" "0.20.0"+ "@oxlint-tsgolint/linux-x64" "0.20.0"+ "@oxlint-tsgolint/win32-arm64" "0.20.0"+ "@oxlint-tsgolint/win32-x64" "0.20.0"++oxlint@^1.59.0:+ version "1.61.0"+ resolved "https://registry.yarnpkg.com/oxlint/-/oxlint-1.61.0.tgz#e714742cfe7b815713feb14600b0ffe963d539a4"+ integrity sha512-ZC0ALuhDZ6ivOFG+sy0D0pEDN49EvsId98zVlmYdkcXHsEM14m/qTNUEsUpiFiCVbpIxYtVBmmLE87nsbUHohQ==+ optionalDependencies:+ "@oxlint/binding-android-arm-eabi" "1.61.0"+ "@oxlint/binding-android-arm64" "1.61.0"+ "@oxlint/binding-darwin-arm64" "1.61.0"+ "@oxlint/binding-darwin-x64" "1.61.0"+ "@oxlint/binding-freebsd-x64" "1.61.0"+ "@oxlint/binding-linux-arm-gnueabihf" "1.61.0"+ "@oxlint/binding-linux-arm-musleabihf" "1.61.0"+ "@oxlint/binding-linux-arm64-gnu" "1.61.0"+ "@oxlint/binding-linux-arm64-musl" "1.61.0"+ "@oxlint/binding-linux-ppc64-gnu" "1.61.0"+ "@oxlint/binding-linux-riscv64-gnu" "1.61.0"+ "@oxlint/binding-linux-riscv64-musl" "1.61.0"+ "@oxlint/binding-linux-s390x-gnu" "1.61.0"+ "@oxlint/binding-linux-x64-gnu" "1.61.0"+ "@oxlint/binding-linux-x64-musl" "1.61.0"+ "@oxlint/binding-openharmony-arm64" "1.61.0"+ "@oxlint/binding-win32-arm64-msvc" "1.61.0"+ "@oxlint/binding-win32-ia32-msvc" "1.61.0"+ "@oxlint/binding-win32-x64-msvc" "1.61.0"version "1.57.0-alpha-2025-10-11"@@ -1188,232 +336,10 @@ [email protected]:optionalDependencies:fsevents "2.3.2"-prelude-ls@^1.2.1:- version "1.2.1"- resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"- integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==--proxy-addr@^2.0.7:- version "2.0.7"- resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025"- integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==- dependencies:- forwarded "0.2.0"- ipaddr.js "1.9.1"--punycode@^2.1.0:- version "2.3.1"- resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5"- integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==--qs@^6.14.0, qs@^6.14.1:- version "6.15.0"- resolved "https://registry.yarnpkg.com/qs/-/qs-6.15.0.tgz#db8fd5d1b1d2d6b5b33adaf87429805f1909e7b3"- integrity sha512-mAZTtNCeetKMH+pSjrb76NAM8V9a05I9aBZOHztWy/UqcJdQYNsf59vrRKWnojAT9Y+GbIvoTBC++CPHqpDBhQ==- dependencies:- side-channel "^1.1.0"--queue-microtask@^1.2.2:- version "1.2.3"- resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"- integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==--range-parser@^1.2.1:- version "1.2.1"- resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031"- integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==--raw-body@^3.0.0, raw-body@^3.0.1:- version "3.0.2"- resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-3.0.2.tgz#3e3ada5ae5568f9095d84376fd3a49b8fb000a51"- integrity sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==- dependencies:- bytes "~3.1.2"- http-errors "~2.0.1"- iconv-lite "~0.7.0"- unpipe "~1.0.0"--require-from-string@^2.0.2:- version "2.0.2"- resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909"- integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==--resolve-from@^4.0.0:- version "4.0.0"- resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"- integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==--reusify@^1.0.4:- version "1.1.0"- resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.1.0.tgz#0fe13b9522e1473f51b558ee796e08f11f9b489f"- integrity sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==--router@^2.2.0:- version "2.2.0"- resolved "https://registry.yarnpkg.com/router/-/router-2.2.0.tgz#019be620b711c87641167cc79b99090f00b146ef"- integrity sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==- dependencies:- debug "^4.4.0"- depd "^2.0.0"- is-promise "^4.0.0"- parseurl "^1.3.3"- path-to-regexp "^8.0.0"--run-parallel@^1.1.9:- version "1.2.0"- resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee"- integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==- dependencies:- queue-microtask "^1.2.2"--"safer-buffer@>= 2.1.2 < 3.0.0":- version "2.1.2"- resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"- integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==--semver@^7.5.4:- version "7.7.3"- resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.3.tgz#4b5f4143d007633a8dc671cd0a6ef9147b8bb946"- integrity sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==--send@^1.1.0, send@^1.2.0:- version "1.2.1"- resolved "https://registry.yarnpkg.com/send/-/send-1.2.1.tgz#9eab743b874f3550f40a26867bf286ad60d3f3ed"- integrity sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==- dependencies:- debug "^4.4.3"- encodeurl "^2.0.0"- escape-html "^1.0.3"- etag "^1.8.1"- fresh "^2.0.0"- http-errors "^2.0.1"- mime-types "^3.0.2"- ms "^2.1.3"- on-finished "^2.4.1"- range-parser "^1.2.1"- statuses "^2.0.2"--serve-static@^2.2.0:- version "2.2.1"- resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-2.2.1.tgz#7f186a4a4e5f5b663ad7a4294ff1bf37cf0e98a9"- integrity sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==- dependencies:- encodeurl "^2.0.0"- escape-html "^1.0.3"- parseurl "^1.3.3"- send "^1.2.0"--setprototypeof@~1.2.0:- version "1.2.0"- resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424"- integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==--shebang-command@^2.0.0:- version "2.0.0"- resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea"- integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==- dependencies:- shebang-regex "^3.0.0"--shebang-regex@^3.0.0:- version "3.0.0"- resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"- integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==--side-channel-list@^1.0.0:- version "1.0.0"- resolved "https://registry.yarnpkg.com/side-channel-list/-/side-channel-list-1.0.0.tgz#10cb5984263115d3b7a0e336591e290a830af8ad"- integrity sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==- dependencies:- es-errors "^1.3.0"- object-inspect "^1.13.3"--side-channel-map@^1.0.1:- version "1.0.1"- resolved "https://registry.yarnpkg.com/side-channel-map/-/side-channel-map-1.0.1.tgz#d6bb6b37902c6fef5174e5f533fab4c732a26f42"- integrity sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==- dependencies:- call-bound "^1.0.2"- es-errors "^1.3.0"- get-intrinsic "^1.2.5"- object-inspect "^1.13.3"--side-channel-weakmap@^1.0.2:- version "1.0.2"- resolved "https://registry.yarnpkg.com/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz#11dda19d5368e40ce9ec2bdc1fb0ecbc0790ecea"- integrity sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==- dependencies:- call-bound "^1.0.2"- es-errors "^1.3.0"- get-intrinsic "^1.2.5"- object-inspect "^1.13.3"- side-channel-map "^1.0.1"--side-channel@^1.1.0:- version "1.1.0"- resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.1.0.tgz#c3fcff9c4da932784873335ec9765fa94ff66bc9"- integrity sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==- dependencies:- es-errors "^1.3.0"- object-inspect "^1.13.3"- side-channel-list "^1.0.0"- side-channel-map "^1.0.1"- side-channel-weakmap "^1.0.2"--slash@^3.0.0:- version "3.0.0"- resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"- integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==--statuses@^2.0.1, statuses@^2.0.2, statuses@~2.0.2:- version "2.0.2"- resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.2.tgz#8f75eecef765b5e1cfcdc080da59409ed424e382"- integrity sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==--strip-json-comments@^3.1.1:- version "3.1.1"- resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"- integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==--supports-color@^7.1.0:- version "7.2.0"- resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da"- integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==- dependencies:- has-flag "^4.0.0"--to-regex-range@^5.0.1:- version "5.0.1"- resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"- integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==- dependencies:- is-number "^7.0.0"--toidentifier@~1.0.1:- version "1.0.1"- resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35"- integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==--ts-api-utils@^1.0.1:- version "1.4.3"- resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.4.3.tgz#bfc2215fe6528fecab2b0fba570a2e8a4263b064"- integrity sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==--type-check@^0.4.0, type-check@~0.4.0:- version "0.4.0"- resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1"- integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==- dependencies:- prelude-ls "^1.2.1"--type-is@^2.0.1:- version "2.0.1"- resolved "https://registry.yarnpkg.com/type-is/-/type-is-2.0.1.tgz#64f6cf03f92fce4015c2b224793f6bdd4b068c97"- integrity sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==- dependencies:- content-type "^1.0.5"- media-typer "^1.1.0"- mime-types "^3.0.0"+ version "2.1.0"+ resolved "https://registry.yarnpkg.com/tinypool/-/tinypool-2.1.0.tgz#303a671d6ef68d03c9512cdc9a47c86b8a85f20c"+ integrity sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw==typescript@^5.0.0:version "5.9.3"@@ -1424,57 +350,3 @@ undici-types@~6.21.0:version "6.21.0"resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb"integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==--unpipe@~1.0.0:- version "1.0.0"- resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"- integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==--uri-js@^4.2.2:- version "4.4.1"- resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"- integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==- dependencies:- punycode "^2.1.0"--vary@^1, vary@^1.1.2:- version "1.1.2"- resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"- integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==--which@^2.0.1:- version "2.0.2"- resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"- integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==- dependencies:- isexe "^2.0.0"--word-wrap@^1.2.5:- version "1.2.5"- resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34"- integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==--wrappy@1:- version "1.0.2"- resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"- integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==--yocto-queue@^0.1.0:- version "0.1.0"- resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"- integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==--zod-to-json-schema@^3.25.1:- version "3.25.1"- resolved "https://registry.yarnpkg.com/zod-to-json-schema/-/zod-to-json-schema-3.25.1.tgz#7f24962101a439ddade2bf1aeab3c3bfec7d84ba"- integrity sha512-pM/SU9d3YAggzi6MtR4h7ruuQlqKtad8e9S0fmxcMi+ueAK5Korys/aWcV9LIIHTVbj01NdzxcnXSN+O74ZIVA==--zod@^3.24.2:- version "3.25.76"- resolved "https://registry.yarnpkg.com/zod/-/zod-3.25.76.tgz#26841c3f6fd22a6a2760e7ccb719179768471e34"- integrity sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==--"zod@^3.25 || ^4.0":- version "4.3.6"- resolved "https://registry.yarnpkg.com/zod/-/zod-4.3.6.tgz#89c56e0aa7d2b05107d894412227087885ab112a"- integrity sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==diff --git a/tests/fixtures/alerts.py b/tests/fixtures/alerts.pyindex 56158df226..95dc679b4c 100644--- a/tests/fixtures/alerts.py+++ b/tests/fixtures/alerts.py@@ -1,9 +1,9 @@import base64import jsonimport time-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Callable, Listimport pytestimport requests@@ -20,9 +20,7 @@ logger = setup_logger(__name__)@pytest.fixture(name="create_alert_rule", scope="function")-def create_alert_rule(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-) -> Callable[[dict], str]:+def create_alert_rule(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> Callable[[dict], str]:admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)rule_ids = []@@ -34,9 +32,7 @@ def create_alert_rule(headers={"Authorization": f"Bearer {admin_token}"},timeout=5,)- assert (- response.status_code == HTTPStatus.OK- ), f"Failed to create rule, api returned {response.status_code} with response: {response.text}"+ assert response.status_code == HTTPStatus.OK, f"Failed to create rule, api returned {response.status_code} with response: {response.text}"rule_id = response.json()["data"]["id"]rule_ids.append(rule_id)return rule_id@@ -64,23 +60,21 @@ def create_alert_rule(@pytest.fixture(name="insert_alert_data", scope="function")def insert_alert_data(- insert_metrics: Callable[[List[Metrics]], None],- insert_traces: Callable[[List[Traces]], None],- insert_logs: Callable[[List[Logs]], None],-) -> Callable[[List[types.AlertData]], None]:+ insert_metrics: Callable[[list[Metrics]], None],+ insert_traces: Callable[[list[Traces]], None],+ insert_logs: Callable[[list[Logs]], None],+) -> Callable[[list[types.AlertData]], None]:def _insert_alert_data(- alert_data_items: List[types.AlertData],+ alert_data_items: list[types.AlertData],base_time: datetime = None,) -> None:- metrics: List[Metrics] = []- traces: List[Traces] = []- logs: List[Logs] = []+ metrics: list[Metrics] = []+ traces: list[Traces] = []+ logs: list[Logs] = []- now = base_time or datetime.now(tz=timezone.utc).replace(- second=0, microsecond=0- )+ now = base_time or datetime.now(tz=UTC).replace(second=0, microsecond=0)for data_item in alert_data_items:if data_item.type == "metrics":@@ -113,9 +107,7 @@ def insert_alert_data(yield _insert_alert_data-def collect_webhook_firing_alerts(- webhook_test_container: types.TestContainerDocker, notification_channel_name: str-) -> List[types.FiringAlert]:+def collect_webhook_firing_alerts(webhook_test_container: types.TestContainerDocker, notification_channel_name: str) -> list[types.FiringAlert]:# Prepare the endpoint path for the channel name, for alerts tests we have# used different paths for receiving alerts from each channel so that# multiple rules can be tested in isolation.@@ -127,10 +119,7 @@ def collect_webhook_firing_alerts("url": rule_webhook_endpoint,}res = requests.post(url, json=req, timeout=5)- assert res.status_code == HTTPStatus.OK, (- f"Failed to collect firing alerts for notification channel {notification_channel_name}, "- f"status code: {res.status_code}, response: {res.text}"- )+ assert res.status_code == HTTPStatus.OK, f"Failed to collect firing alerts for notification channel {notification_channel_name}, status code: {res.status_code}, response: {res.text}"response = res.json()alerts = []for req in response["requests"]:@@ -144,9 +133,7 @@ def collect_webhook_firing_alerts(return alerts-def _verify_alerts_labels(- firing_alerts: list[dict[str, str]], expected_alerts: list[dict[str, str]]-) -> tuple[int, list[dict[str, str]]]:+def _verify_alerts_labels(firing_alerts: list[dict[str, str]], expected_alerts: list[dict[str, str]]) -> tuple[int, list[dict[str, str]]]:"""Checks how many of the expected alerts have been fired.Returns the count of expected alerts that have been fired.@@ -159,10 +146,7 @@ def _verify_alerts_labels(for fired_alert in firing_alerts:# Check if current expected alert is present in the fired alerts- if all(- key in fired_alert and fired_alert[key] == value- for key, value in alert.items()- ):+ if all(key in fired_alert and fired_alert[key] == value for key, value in alert.items()):is_alert_fired = Truebreak@@ -181,35 +165,24 @@ def verify_webhook_alert_expectation() -> bool:# time to wait till the expected alerts are fired- time_to_wait = datetime.now() + timedelta(- seconds=alert_expectations.wait_time_seconds- )- expected_alerts_labels = [- alert.labels for alert in alert_expectations.expected_alerts- ]+ time_to_wait = datetime.now() + timedelta(seconds=alert_expectations.wait_time_seconds)+ expected_alerts_labels = [alert.labels for alert in alert_expectations.expected_alerts]while datetime.now() < time_to_wait:- firing_alerts = collect_webhook_firing_alerts(- test_alert_container, notification_channel_name- )+ firing_alerts = collect_webhook_firing_alerts(test_alert_container, notification_channel_name)firing_alert_labels = [alert.labels for alert in firing_alerts]if alert_expectations.should_alert:# verify the number of alerts fired, currently we're only verifying the labels of the alerts# but there could be verification of annotations and other fields in the FiringAlert- (verified_count, missing_alerts) = _verify_alerts_labels(- firing_alert_labels, expected_alerts_labels- )+ (verified_count, missing_alerts) = _verify_alerts_labels(firing_alert_labels, expected_alerts_labels)if verified_count == len(alert_expectations.expected_alerts):- logger.info(- "Got expected number of alerts: %s", {"count": verified_count}- )+ logger.info("Got expected number of alerts: %s", {"count": verified_count})return True- else:- # No alert is supposed to be fired if should_alert is False- if len(firing_alerts) > 0:- break+ # No alert is supposed to be fired if should_alert is False+ elif len(firing_alerts) > 0:+ break# wait for some time before checking againtime.sleep(1)@@ -220,7 +193,7 @@ def verify_webhook_alert_expectation(if not alert_expectations.should_alert:assert len(firing_alerts) == 0, ("Expected no alerts to be fired, ",- f"got {len(firing_alerts)} alerts, " f"firing alerts: {firing_alerts}",+ f"got {len(firing_alerts)} alerts, firing alerts: {firing_alerts}",)logger.info("No alerts fired, as expected")return Truediff --git a/tests/fixtures/audit.py b/tests/fixtures/audit.pyindex 729de9e038..9a2ceabecd 100644--- a/tests/fixtures/audit.py+++ b/tests/fixtures/audit.py@@ -1,7 +1,8 @@import datetimeimport jsonfrom abc import ABC-from typing import Any, Callable, Generator, List, Optional+from collections.abc import Callable, Generator+from typing import Anyimport numpy as npimport pytest@@ -54,8 +55,8 @@ class AuditTagAttributes(ABC):tag_type: strtag_data_type: strstring_value: str- int64_value: Optional[np.int64]- float64_value: Optional[np.float64]+ int64_value: np.int64 | None+ float64_value: np.float64 | Nonedef __init__(self,@@ -63,9 +64,9 @@ class AuditTagAttributes(ABC):tag_key: str,tag_type: str,tag_data_type: str,- string_value: Optional[str],- int64_value: Optional[np.int64],- float64_value: Optional[np.float64],+ string_value: str | None,+ int64_value: np.int64 | None,+ float64_value: np.float64 | None,) -> None:self.unix_milli = np.int64(int(timestamp.timestamp() * 1e3))self.tag_key = tag_key@@ -121,14 +122,14 @@ class AuditLog(ABC):resource_json: dict[str, str]event_name: str- resource: List[AuditResource]- tag_attributes: List[AuditTagAttributes]- resource_keys: List[AuditResourceOrAttributeKeys]- attribute_keys: List[AuditResourceOrAttributeKeys]+ resource: list[AuditResource]+ tag_attributes: list[AuditTagAttributes]+ resource_keys: list[AuditResourceOrAttributeKeys]+ attribute_keys: list[AuditResourceOrAttributeKeys]def __init__(self,- timestamp: Optional[datetime.datetime] = None,+ timestamp: datetime.datetime | None = None,resources: dict[str, Any] = {},attributes: dict[str, Any] = {},body: str = "",@@ -180,13 +181,9 @@ class AuditLog(ABC):float64_value=None,))- self.resource_keys.append(- AuditResourceOrAttributeKeys(name=k, datatype="string")- )+ self.resource_keys.append(AuditResourceOrAttributeKeys(name=k, datatype="string"))- self.resource_fingerprint = LogsOrTracesFingerprint(- self.resource_json- ).calculate()+ self.resource_fingerprint = LogsOrTracesFingerprint(self.resource_json).calculate()# Process attributes by typeself.attributes_string = {}@@ -207,9 +204,7 @@ class AuditLog(ABC):float64_value=None,))- self.attribute_keys.append(- AuditResourceOrAttributeKeys(name=k, datatype="bool")- )+ self.attribute_keys.append(AuditResourceOrAttributeKeys(name=k, datatype="bool"))elif isinstance(v, int):self.attributes_number[k] = np.float64(v)self.tag_attributes.append(@@ -223,9 +218,7 @@ class AuditLog(ABC):float64_value=None,))- self.attribute_keys.append(- AuditResourceOrAttributeKeys(name=k, datatype="int64")- )+ self.attribute_keys.append(AuditResourceOrAttributeKeys(name=k, datatype="int64"))elif isinstance(v, float):self.attributes_number[k] = np.float64(v)self.tag_attributes.append(@@ -239,9 +232,7 @@ class AuditLog(ABC):float64_value=np.float64(v),))- self.attribute_keys.append(- AuditResourceOrAttributeKeys(name=k, datatype="float64")- )+ self.attribute_keys.append(AuditResourceOrAttributeKeys(name=k, datatype="float64"))else:self.attributes_string[k] = str(v)self.tag_attributes.append(@@ -255,9 +246,7 @@ class AuditLog(ABC):float64_value=None,))- self.attribute_keys.append(- AuditResourceOrAttributeKeys(name=k, datatype="string")- )+ self.attribute_keys.append(AuditResourceOrAttributeKeys(name=k, datatype="string"))self.scope_name = scope_nameself.scope_version = scope_version@@ -300,9 +289,9 @@ class AuditLog(ABC):@pytest.fixture(name="insert_audit_logs", scope="function")def insert_audit_logs(clickhouse: types.TestContainerClickhouse,-) -> Generator[Callable[[List[AuditLog]], None], Any, None]:- def _insert_audit_logs(logs: List[AuditLog]) -> None:- resources: List[AuditResource] = []+) -> Generator[Callable[[list[AuditLog]], None], Any]:+ def _insert_audit_logs(logs: list[AuditLog]) -> None:+ resources: list[AuditResource] = []for log in logs:resources.extend(log.resource)@@ -318,7 +307,7 @@ def insert_audit_logs(],)- tag_attributes: List[AuditTagAttributes] = []+ tag_attributes: list[AuditTagAttributes] = []for log in logs:tag_attributes.extend(log.tag_attributes)@@ -338,7 +327,7 @@ def insert_audit_logs(],)- attribute_keys: List[AuditResourceOrAttributeKeys] = []+ attribute_keys: list[AuditResourceOrAttributeKeys] = []for log in logs:attribute_keys.extend(log.attribute_keys)@@ -350,7 +339,7 @@ def insert_audit_logs(column_names=["name", "datatype"],)- resource_keys: List[AuditResourceOrAttributeKeys] = []+ resource_keys: list[AuditResourceOrAttributeKeys] = []for log in logs:resource_keys.extend(log.resource_keys)@@ -399,6 +388,4 @@ def insert_audit_logs("logs_attribute_keys","logs_resource_keys",]:- clickhouse.conn.query(- f"TRUNCATE TABLE signoz_audit.{table} ON CLUSTER '{cluster}' SYNC"- )+ clickhouse.conn.query(f"TRUNCATE TABLE signoz_audit.{table} ON CLUSTER '{cluster}' SYNC")diff --git a/tests/fixtures/auth.py b/tests/fixtures/auth.pyindex fd308f0c52..fee5e15c4d 100644--- a/tests/fixtures/auth.py+++ b/tests/fixtures/auth.py@@ -1,6 +1,6 @@import time+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callable, Dict, List, Tupleimport pytestimport requests@@ -57,9 +57,7 @@ def _login(signoz: types.SigNoz, email: str, password: str) -> str:@pytest.fixture(name="create_user_admin", scope="package")-def create_user_admin(- signoz: types.SigNoz, request: pytest.FixtureRequest, pytestconfig: pytest.Config-) -> types.Operation:+def create_user_admin(signoz: types.SigNoz, request: pytest.FixtureRequest, pytestconfig: pytest.Config) -> types.Operation:def create() -> None:response = requests.post(signoz.self.host_configs["8080"].get("/api/v1/register"),@@ -143,7 +141,7 @@ def get_token(signoz: types.SigNoz) -> Callable[[str, str], str]:@pytest.fixture(name="get_tokens", scope="function")-def get_tokens(signoz: types.SigNoz) -> Callable[[str, str], Tuple[str, str]]:+def get_tokens(signoz: types.SigNoz) -> Callable[[str, str], tuple[str, str]]:def _get_tokens(email: str, password: str) -> str:response = requests.get(signoz.self.host_configs["8080"].get("/api/v2/sessions/context"),@@ -193,11 +191,7 @@ def apply_license(request=MappingRequest(method=HttpMethods.GET,url="/v2/licenses/me",- headers={- "X-Signoz-Cloud-Api-Key": {- WireMockMatchers.EQUAL_TO: "secret-key"- }- },+ headers={"X-Signoz-Cloud-Api-Key": {WireMockMatchers.EQUAL_TO: "secret-key"}},),response=MappingResponse(status=200,@@ -245,9 +239,7 @@ def apply_license(# redirects first-time admins to a questionnaire. Mark the preference# complete so specs can navigate directly to the feature under test.pref_resp = requests.put(- signoz.self.host_configs["8080"].get(- "/api/v1/org/preferences/org_onboarding"- ),+ signoz.self.host_configs["8080"].get("/api/v1/org/preferences/org_onboarding"),json={"value": True},headers=auth_header,timeout=5,@@ -276,7 +268,7 @@ def apply_license(# This is also idempotent in nature.def add_license(signoz: types.SigNoz,- make_http_mocks: Callable[[types.TestContainerDocker, List[Mapping]], None],+ make_http_mocks: Callable[[types.TestContainerDocker, list[Mapping]], None],get_token: Callable[[str, str], str], # pylint: disable=redefined-outer-name) -> None:make_http_mocks(@@ -286,11 +278,7 @@ def add_license(request=MappingRequest(method=HttpMethods.GET,url="/v2/licenses/me",- headers={- "X-Signoz-Cloud-Api-Key": {- WireMockMatchers.EQUAL_TO: "secret-key"- }- },+ headers={"X-Signoz-Cloud-Api-Key": {WireMockMatchers.EQUAL_TO: "secret-key"}},),response=MappingResponse(status=200,@@ -368,7 +356,7 @@ def create_active_user(return invited_user["id"]-def find_user_by_email(signoz: types.SigNoz, token: str, email: str) -> Dict:+def find_user_by_email(signoz: types.SigNoz, token: str, email: str) -> dict:"""Find a user by email from the user list. Raises AssertionError if not found."""response = requests.get(signoz.self.host_configs["8080"].get(USERS_BASE),@@ -381,7 +369,7 @@ def find_user_by_email(signoz: types.SigNoz, token: str, email: str) -> Dict:return user-def find_user_with_roles_by_email(signoz: types.SigNoz, token: str, email: str) -> Dict:+def find_user_with_roles_by_email(signoz: types.SigNoz, token: str, email: str) -> dict:"""Find a user by email and return UserWithRoles (user fields + userRoles).Raises AssertionError if the user is not found.@@ -396,7 +384,7 @@ def find_user_with_roles_by_email(signoz: types.SigNoz, token: str, email: str)return response.json()["data"]-def assert_user_has_role(data: Dict, role_name: str) -> None:+def assert_user_has_role(data: dict, role_name: str) -> None:"""Assert that a UserWithRoles response contains the expected managed role."""role_names = {ur["role"]["name"] for ur in data.get("userRoles", [])}assert role_name in role_names, f"Expected role '{role_name}' in {role_names}"@@ -427,9 +415,7 @@ def change_user_role(# Remove old roleresponse = requests.delete(- signoz.self.host_configs["8080"].get(- f"{USERS_BASE}/{user_id}/roles/{old_role_entry['id']}"- ),+ signoz.self.host_configs["8080"].get(f"{USERS_BASE}/{user_id}/roles/{old_role_entry['id']}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=5,)diff --git a/tests/fixtures/clickhouse.py b/tests/fixtures/clickhouse.pyindex 30e14c0464..3ec8613fda 100644--- a/tests/fixtures/clickhouse.py+++ b/tests/fixtures/clickhouse.py@@ -1,5 +1,6 @@import os-from typing import Any, Generator+from collections.abc import Generator+from typing import Anyimport clickhouse_connectimport clickhouse_connect.driver@@ -18,7 +19,7 @@ logger = setup_logger(__name__)@pytest.fixture(name="clickhouse", scope="package")def clickhouse(- tmpfs: Generator[types.LegacyPath, Any, None],+ tmpfs: Generator[types.LegacyPath, Any],network: Network,zookeeper: types.TestContainerDocker,request: pytest.FixtureRequest,@@ -153,9 +154,7 @@ def clickhouse(with open(custom_function_file_path, "w", encoding="utf-8") as f:f.write(custom_function_config)- container.with_volume_mapping(- cluster_config_file_path, "/etc/clickhouse-server/config.d/cluster.xml"- )+ container.with_volume_mapping(cluster_config_file_path, "/etc/clickhouse-server/config.d/cluster.xml")container.with_volume_mapping(custom_function_file_path,"/etc/clickhouse-server/custom-function.xml",@@ -183,9 +182,7 @@ def clickhouse(],)if exit_code != 0:- raise RuntimeError(- f"Failed to install histogramQuantile binary: {output.decode()}"- )+ raise RuntimeError(f"Failed to install histogramQuantile binary: {output.decode()}")connection = clickhouse_connect.get_client(user=container.username,@@ -210,12 +207,8 @@ def clickhouse(),},container_configs={- "9000": types.TestContainerUrlConfig(- "tcp", container.get_wrapped_container().name, 9000- ),- "8123": types.TestContainerUrlConfig(- "tcp", container.get_wrapped_container().name, 8123- ),+ "9000": types.TestContainerUrlConfig("tcp", container.get_wrapped_container().name, 9000),+ "8123": types.TestContainerUrlConfig("tcp", container.get_wrapped_container().name, 8123),},),conn=connection,@@ -261,9 +254,7 @@ def clickhouse(pytestconfig,"clickhouse",empty=lambda: types.TestContainerSQL(- container=types.TestContainerDocker(- id="", host_configs={}, container_configs={}- ),+ container=types.TestContainerDocker(id="", host_configs={}, container_configs={}),conn=None,env={},),diff --git a/tests/fixtures/cloudintegrations.py b/tests/fixtures/cloudintegrations.pyindex 96b589a03d..0e171fa4de 100644--- a/tests/fixtures/cloudintegrations.py+++ b/tests/fixtures/cloudintegrations.py@@ -1,7 +1,7 @@"""Fixtures for cloud integration tests."""+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport pytestimport requests@@ -52,9 +52,7 @@ def deprecated_create_cloud_integration_account(timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Failed to create test account: {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Failed to create test account: {response.status_code}"data = response.json().get("data", response.json())created_accounts.append((data.get("account_id"), cloud_provider))@@ -127,9 +125,7 @@ def create_cloud_integration_account(timeout=10,)- assert (- response.status_code == HTTPStatus.CREATED- ), f"Failed to create test account: {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.CREATED, f"Failed to create test account: {response.status_code}: {response.text}"data = response.json()["data"]created_accounts.append((data["id"], cloud_provider))@@ -143,9 +139,7 @@ def create_cloud_integration_account(try:admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)for account_id, cloud_provider in created_accounts:- delete_endpoint = (- f"/api/v1/cloud_integrations/{cloud_provider}/accounts/{account_id}"- )+ delete_endpoint = f"/api/v1/cloud_integrations/{cloud_provider}/accounts/{account_id}"r = requests.delete(signoz.self.host_configs["8080"].get(delete_endpoint),headers={"Authorization": f"Bearer {admin_token}"},@@ -206,11 +200,7 @@ def setup_create_account_mocks(request=MappingRequest(method=HttpMethods.GET,url="/v2/deployments/me",- headers={- "X-Signoz-Cloud-Api-Key": {- WireMockMatchers.EQUAL_TO: "secret-key"- }- },+ headers={"X-Signoz-Cloud-Api-Key": {WireMockMatchers.EQUAL_TO: "secret-key"}},),response=MappingResponse(status=200,diff --git a/tests/fixtures/fs.py b/tests/fixtures/fs.pyindex aee27c78d8..918816cbe9 100644--- a/tests/fixtures/fs.py+++ b/tests/fixtures/fs.py@@ -1,5 +1,6 @@import os-from typing import Any, Generator+from collections.abc import Generator+from typing import Anyimport pytest@@ -9,7 +10,7 @@ from fixtures import types@pytest.fixture(scope="package")def tmpfs(tmp_path_factory: pytest.TempPathFactory,-) -> Generator[types.LegacyPath, Any, None]:+) -> Generator[types.LegacyPath, Any]:def _tmp(basename: str):return tmp_path_factory.mktemp(basename)@@ -19,7 +20,5 @@ def tmpfs(def get_testdata_file_path(file: str) -> str:# Integration testdata lives at tests/integration/testdata/. This helper# resolves from tests/fixtures/fs.py, so walk up to tests/ and across.- testdata_dir = os.path.join(- os.path.dirname(__file__), "..", "integration", "testdata"- )+ testdata_dir = os.path.join(os.path.dirname(__file__), "..", "integration", "testdata")return os.path.join(testdata_dir, file)diff --git a/tests/fixtures/gateway.py b/tests/fixtures/gateway.pyindex 6a65c788d2..6d31b97304 100644--- a/tests/fixtures/gateway.py+++ b/tests/fixtures/gateway.py@@ -1,5 +1,4 @@import json-from typing import Optionalimport requestsfrom wiremock.client import WireMockMatchers@@ -14,9 +13,7 @@ def common_gateway_headers():"""Common headers expected on requests forwarded to the gateway."""return {"X-Signoz-Cloud-Api-Key": {WireMockMatchers.EQUAL_TO: "secret-key"},- "X-Consumer-Username": {- WireMockMatchers.EQUAL_TO: "lid:00000000-0000-0000-0000-000000000000"- },+ "X-Consumer-Username": {WireMockMatchers.EQUAL_TO: "lid:00000000-0000-0000-0000-000000000000"},"X-Consumer-Groups": {WireMockMatchers.EQUAL_TO: "ns:default"},}@@ -34,9 +31,7 @@ def get_gateway_requests(signoz: types.SigNoz, method: str, url: str) -> list:return response.json().get("requests", [])-def get_latest_gateway_request_body(- signoz: types.SigNoz, method: str, url: str-) -> Optional[dict]:+def get_latest_gateway_request_body(signoz: types.SigNoz, method: str, url: str) -> dict | None:"""Return the parsed JSON body of the most recent matching gateway request.WireMock returns requests in reverse chronological order, so ``matched[0]``diff --git a/tests/fixtures/http.py b/tests/fixtures/http.pyindex 547940c7e6..6df7f206a2 100644--- a/tests/fixtures/http.py+++ b/tests/fixtures/http.py@@ -1,4 +1,4 @@-from typing import Callable, List+from collections.abc import Callableimport dockerimport docker.errors@@ -42,11 +42,7 @@ def zeus(container.get_exposed_port(8080),)},- container_configs={- "8080": types.TestContainerUrlConfig(- "http", container.get_wrapped_container().name, 8080- )- },+ container_configs={"8080": types.TestContainerUrlConfig("http", container.get_wrapped_container().name, 8080)},)def delete(container: types.TestContainerDocker):@@ -99,11 +95,7 @@ def gateway(container.get_exposed_port(8080),)},- container_configs={- "8080": types.TestContainerUrlConfig(- "http", container.get_wrapped_container().name, 8080- )- },+ container_configs={"8080": types.TestContainerUrlConfig("http", container.get_wrapped_container().name, 8080)},)def delete(container: types.TestContainerDocker):@@ -132,10 +124,8 @@ def gateway(@pytest.fixture(name="make_http_mocks", scope="function")-def make_http_mocks() -> Callable[[types.TestContainerDocker, List[Mapping]], None]:- def _make_http_mocks(- container: types.TestContainerDocker, mappings: List[Mapping]- ) -> None:+def make_http_mocks() -> Callable[[types.TestContainerDocker, list[Mapping]], None]:+ def _make_http_mocks(container: types.TestContainerDocker, mappings: list[Mapping]) -> None:Config.base_url = container.host_configs["8080"].get("/__admin")for mapping in mappings:diff --git a/tests/fixtures/idp.py b/tests/fixtures/idp.pyindex 20986bb4f3..b0a2fbfb5b 100644--- a/tests/fixtures/idp.py+++ b/tests/fixtures/idp.py@@ -1,4 +1,5 @@-from typing import Any, Callable, Dict, List+from collections.abc import Callable+from typing import Anyfrom urllib.parse import urljoin, urlparsefrom xml.etree import ElementTree@@ -15,9 +16,7 @@ from fixtures.keycloak import IDP_ROOT_PASSWORD, IDP_ROOT_USERNAME@pytest.fixture(name="create_saml_client", scope="function")-def create_saml_client(- idp: types.TestContainerIDP, signoz: types.SigNoz-) -> Callable[[str, str], None]:+def create_saml_client(idp: types.TestContainerIDP, signoz: types.SigNoz) -> Callable[[str, str], None]:def _create_saml_client(client_id: str, callback_path: str) -> None:client = KeycloakAdmin(server_url=idp.container.host_configs["6060"].base(),@@ -34,9 +33,7 @@ def create_saml_client("description": f"client for {client_id}","rootUrl": "","adminUrl": "",- "baseUrl": urljoin(- f"{signoz.self.host_configs['8080'].base()}", callback_path- ),+ "baseUrl": urljoin(f"{signoz.self.host_configs['8080'].base()}", callback_path),"surrogateAuthRequired": False,"enabled": True,"alwaysDisplayInConsole": False,@@ -71,9 +68,7 @@ def create_saml_client("saml_signature_canonicalization_method": "http://www.w3.org/2001/10/xml-exc-c14n#","saml.onetimeuse.condition": "false","saml.server.signature.keyinfo.xmlSigKeyInfoKeyNameTransformer": "NONE",- "saml_assertion_consumer_url_post": urljoin(- f"{signoz.self.host_configs['8080'].base()}", callback_path- ),+ "saml_assertion_consumer_url_post": urljoin(f"{signoz.self.host_configs['8080'].base()}", callback_path),},"authenticationFlowBindingOverrides": {},"fullScopeAllowed": True,@@ -164,10 +159,8 @@ def create_saml_client(@pytest.fixture(name="update_saml_client_attributes", scope="function")def update_saml_client_attributes(idp: types.TestContainerIDP,-) -> Callable[[str, Dict[str, Any]], None]:- def _update_saml_client_attributes(- client_id: str, attributes: Dict[str, Any]- ) -> None:+) -> Callable[[str, dict[str, Any]], None]:+ def _update_saml_client_attributes(client_id: str, attributes: dict[str, Any]) -> None:client = KeycloakAdmin(server_url=idp.container.host_configs["6060"].base(),username=IDP_ROOT_USERNAME,@@ -189,9 +182,7 @@ def update_saml_client_attributes(@pytest.fixture(name="create_oidc_client", scope="function")-def create_oidc_client(- idp: types.TestContainerIDP, signoz: types.SigNoz-) -> Callable[[str, str], None]:+def create_oidc_client(idp: types.TestContainerIDP, signoz: types.SigNoz) -> Callable[[str, str], None]:def _create_oidc_client(client_id: str, callback_path: str) -> None:client = KeycloakAdmin(server_url=idp.container.host_configs["6060"].base(),@@ -215,9 +206,7 @@ def create_oidc_client("enabled": True,"alwaysDisplayInConsole": False,"clientAuthenticatorType": "client-secret",- "redirectUris": [- f"{urljoin(signoz.self.host_configs['8080'].base(), callback_path)}"- ],+ "redirectUris": [f"{urljoin(signoz.self.host_configs['8080'].base(), callback_path)}"],"webOrigins": ["/*"],"notBefore": 0,"bearerOnly": False,@@ -287,9 +276,7 @@ def get_saml_settings(idp: types.TestContainerIDP) -> dict:return {"entityID": entity_id,"certificate": certificate_el.text if certificate_el is not None else None,- "singleSignOnServiceLocation": (- sso_post_el.get("Location") if sso_post_el is not None else None- ),+ "singleSignOnServiceLocation": (sso_post_el.get("Location") if sso_post_el is not None else None),}return _get_saml_settings@@ -422,7 +409,7 @@ def create_group_idp(idp: types.TestContainerIDP) -> Callable[[str], str]:def create_user_idp_with_groups(idp: types.TestContainerIDP,create_group_idp: Callable[[str], str], # pylint: disable=redefined-outer-name-) -> Callable[[str, str, bool, List[str]], None]:+) -> Callable[[str, str, bool, list[str]], None]:"""Creates a user in Keycloak IDP with specified groups."""client = KeycloakAdmin(server_url=idp.container.host_configs["6060"].base(),@@ -433,9 +420,7 @@ def create_user_idp_with_groups(created_users = []- def _create_user_idp_with_groups(- email: str, password: str, verified: bool, groups: List[str]- ) -> None:+ def _create_user_idp_with_groups(email: str, password: str, verified: bool, groups: list[str]) -> None:# Create groups firstgroup_ids = []for group_name in groups:@@ -493,7 +478,7 @@ def add_user_to_group(def create_user_idp_with_role(idp: types.TestContainerIDP,create_group_idp: Callable[[str], str], # pylint: disable=redefined-outer-name-) -> Callable[[str, str, bool, str, List[str]], None]:+) -> Callable[[str, str, bool, str, list[str]], None]:"""Creates a user in Keycloak IDP with a custom role attribute and optional groups."""client = KeycloakAdmin(server_url=idp.container.host_configs["6060"].base(),@@ -504,9 +489,7 @@ def create_user_idp_with_role(created_users = []- def _create_user_idp_with_role(- email: str, password: str, verified: bool, role: str, groups: List[str]- ) -> None:+ def _create_user_idp_with_role(email: str, password: str, verified: bool, role: str, groups: list[str]) -> None:# Create groups firstgroup_ids = []for group_name in groups:@@ -559,9 +542,7 @@ def setup_user_profile(idp: types.TestContainerIDP) -> Callable[[], None]:# Check if signoz_role attribute already existsattributes = profile.get("attributes", [])- signoz_role_exists = any(- attr.get("name") == "signoz_role" for attr in attributes- )+ signoz_role_exists = any(attr.get("name") == "signoz_role" for attr in attributes)if not signoz_role_exists:# Add signoz_role attribute to user profile@@ -645,11 +626,7 @@ def get_oidc_domain(signoz: types.SigNoz, admin_token: str) -> dict:timeout=2,)return next(- (- domain- for domain in response.json()["data"]- if domain["name"] == "oidc.integration.test"- ),+ (domain for domain in response.json()["data"] if domain["name"] == "oidc.integration.test"),None,)@@ -680,9 +657,7 @@ def perform_oidc_login(session_context = get_session_context(email)url = session_context["orgs"][0]["authNSupport"]["callback"][0]["url"]parsed_url = urlparse(url)- actual_url = (- f"{idp.container.host_configs['6060'].get(parsed_url.path)}?{parsed_url.query}"- )+ actual_url = f"{idp.container.host_configs['6060'].get(parsed_url.path)}?{parsed_url.query}"driver.get(actual_url)idp_login(email, password)@@ -694,11 +669,7 @@ def get_saml_domain(signoz: types.SigNoz, admin_token: str) -> dict:timeout=2,)return next(- (- domain- for domain in response.json()["data"]- if domain["name"] == "saml.integration.test"- ),+ (domain for domain in response.json()["data"] if domain["name"] == "saml.integration.test"),None,)diff --git a/tests/fixtures/keycloak.py b/tests/fixtures/keycloak.pyindex 90e5bce33c..9ad15b5235 100644--- a/tests/fixtures/keycloak.py+++ b/tests/fixtures/keycloak.py@@ -52,12 +52,8 @@ def idp(),},container_configs={- "6060": types.TestContainerUrlConfig(- "http", container.get_wrapped_container().name, 6060- ),- "6061": types.TestContainerUrlConfig(- "http", container.get_wrapped_container().name, 6061- ),+ "6060": types.TestContainerUrlConfig("http", container.get_wrapped_container().name, 6060),+ "6061": types.TestContainerUrlConfig("http", container.get_wrapped_container().name, 6061),},),)@@ -84,11 +80,7 @@ def idp(request,pytestconfig,"idp",- lambda: types.TestContainerIDP(- container=types.TestContainerDocker(- id="", host_configs={}, container_configs={}- )- ),+ lambda: types.TestContainerIDP(container=types.TestContainerDocker(id="", host_configs={}, container_configs={})),create,delete,restore,diff --git a/tests/fixtures/logs.py b/tests/fixtures/logs.pyindex 25e59a8091..1ec32fa187 100644--- a/tests/fixtures/logs.py+++ b/tests/fixtures/logs.py@@ -1,8 +1,9 @@import datetimeimport jsonfrom abc import ABC+from collections.abc import Callable, Generatorfrom http import HTTPStatus-from typing import Any, Callable, Generator, List, Literal, Optional+from typing import Any, Literalimport numpy as npimport pytest@@ -25,9 +26,7 @@ class LogsResource(ABC):fingerprint: str,seen_at_ts_bucket_start: np.int64,) -> None:- self.labels = json.dumps(- labels, separators=(",", ":")- ) # clickhouse treats {"a": "b"} differently from {"a":"b"}. In the first case it is not able to run json functions+ self.labels = json.dumps(labels, separators=(",", ":")) # clickhouse treats {"a": "b"} differently from {"a":"b"}. In the first case it is not able to run json functionsself.fingerprint = fingerprintself.seen_at_ts_bucket_start = seen_at_ts_bucket_start@@ -67,7 +66,7 @@ class LogsTagAttributes(ABC):tag_key: str,tag_type: str,tag_data_type: str,- string_value: Optional[str],+ string_value: str | None,number_value: np.float64,) -> None:self.unix_milli = np.int64(int(timestamp.timestamp() * 1e3))@@ -111,14 +110,14 @@ class Logs(ABC):scope_version: strscope_string: dict[str, str]- resource: List[LogsResource]- tag_attributes: List[LogsTagAttributes]- resource_keys: List[LogsResourceOrAttributeKeys]- attribute_keys: List[LogsResourceOrAttributeKeys]+ resource: list[LogsResource]+ tag_attributes: list[LogsTagAttributes]+ resource_keys: list[LogsResourceOrAttributeKeys]+ attribute_keys: list[LogsResourceOrAttributeKeys]def __init__(self,- timestamp: Optional[datetime.datetime] = None,+ timestamp: datetime.datetime | None = None,resources: dict[str, Any] = {},attributes: dict[str, Any] = {},body: str = "default body",@@ -169,9 +168,7 @@ class Logs(ABC):# Process resources and attributesself.resources_string = {k: str(v) for k, v in resources.items()}- self.resource_json = (- {} if resource_write_mode == "legacy_only" else dict(self.resources_string)- )+ self.resource_json = {} if resource_write_mode == "legacy_only" else dict(self.resources_string)for k, v in self.resources_string.items():self.tag_attributes.append(LogsTagAttributes(@@ -183,14 +180,10 @@ class Logs(ABC):number_value=None,))- self.resource_keys.append(- LogsResourceOrAttributeKeys(name=k, datatype="string")- )+ self.resource_keys.append(LogsResourceOrAttributeKeys(name=k, datatype="string"))# Calculate resource fingerprint- self.resource_fingerprint = LogsOrTracesFingerprint(- self.resources_string- ).calculate()+ self.resource_fingerprint = LogsOrTracesFingerprint(self.resources_string).calculate()# Process attributes by typeself.attributes_string = {}@@ -210,9 +203,7 @@ class Logs(ABC):number_value=None,))- self.attribute_keys.append(- LogsResourceOrAttributeKeys(name=k, datatype="bool")- )+ self.attribute_keys.append(LogsResourceOrAttributeKeys(name=k, datatype="bool"))elif isinstance(v, (int, float)):self.attributes_number[k] = np.float64(v)self.tag_attributes.append(@@ -225,9 +216,7 @@ class Logs(ABC):number_value=np.float64(v),))- self.attribute_keys.append(- LogsResourceOrAttributeKeys(name=k, datatype="float64")- )+ self.attribute_keys.append(LogsResourceOrAttributeKeys(name=k, datatype="float64"))else:self.attributes_string[k] = str(v)self.tag_attributes.append(@@ -240,9 +229,7 @@ class Logs(ABC):number_value=None,))- self.attribute_keys.append(- LogsResourceOrAttributeKeys(name=k, datatype="string")- )+ self.attribute_keys.append(LogsResourceOrAttributeKeys(name=k, datatype="string"))# Initialize scope fieldsself.scope_name = scope_name@@ -280,9 +267,7 @@ class Logs(ABC):number_value=None,))- self.attribute_keys.append(- LogsResourceOrAttributeKeys(name="severity_text", datatype="string")- )+ self.attribute_keys.append(LogsResourceOrAttributeKeys(name="severity_text", datatype="string"))self.tag_attributes.append(LogsTagAttributes(@@ -294,9 +279,7 @@ class Logs(ABC):number_value=float(self.severity_number),))- self.attribute_keys.append(- LogsResourceOrAttributeKeys(name="severity_number", datatype="float64")- )+ self.attribute_keys.append(LogsResourceOrAttributeKeys(name="severity_number", datatype="float64"))def _get_severity_number(self, severity_text: str) -> np.uint8:"""Convert severity text to numeric value"""@@ -357,12 +340,12 @@ class Logs(ABC):def load_from_file(cls,file_path: str,- base_time: Optional[datetime.datetime] = None,- ) -> List["Logs"]:+ base_time: datetime.datetime | None = None,+ ) -> list["Logs"]:"""Load logs from a JSONL file."""data_list = []- with open(file_path, "r", encoding="utf-8") as f:+ with open(file_path, encoding="utf-8") as f:for line in f:line = line.strip()if not line:@@ -391,7 +374,7 @@ class Logs(ABC):return logs-def insert_logs_to_clickhouse(conn, logs: List[Logs]) -> None:+def insert_logs_to_clickhouse(conn, logs: list[Logs]) -> None:"""Insert logs into ClickHouse tables following the same logic as the Go exporter.Handles insertion into:@@ -404,7 +387,7 @@ def insert_logs_to_clickhouse(conn, logs: List[Logs]) -> None:Pure function so the seeder container can reuse the exact insert pathused by the pytest fixture. `conn` is a clickhouse-connect Client."""- resources: List[LogsResource] = []+ resources: list[LogsResource] = []for log in logs:resources.extend(log.resource)@@ -420,7 +403,7 @@ def insert_logs_to_clickhouse(conn, logs: List[Logs]) -> None:],)- tag_attributes: List[LogsTagAttributes] = []+ tag_attributes: list[LogsTagAttributes] = []for log in logs:tag_attributes.extend(log.tag_attributes)@@ -431,7 +414,7 @@ def insert_logs_to_clickhouse(conn, logs: List[Logs]) -> None:data=[tag_attribute.np_arr() for tag_attribute in tag_attributes],)- attribute_keys: List[LogsResourceOrAttributeKeys] = []+ attribute_keys: list[LogsResourceOrAttributeKeys] = []for log in logs:attribute_keys.extend(log.attribute_keys)@@ -442,7 +425,7 @@ def insert_logs_to_clickhouse(conn, logs: List[Logs]) -> None:data=[attribute_key.np_arr() for attribute_key in attribute_keys],)- resource_keys: List[LogsResourceOrAttributeKeys] = []+ resource_keys: list[LogsResourceOrAttributeKeys] = []for log in logs:resource_keys.extend(log.resource_keys)@@ -500,8 +483,8 @@ def truncate_logs_tables(conn, cluster: str) -> None:@pytest.fixture(name="insert_logs", scope="function")def insert_logs(clickhouse: types.TestContainerClickhouse,-) -> Generator[Callable[[List[Logs]], None], Any, None]:- def _insert_logs(logs: List[Logs]) -> None:+) -> Generator[Callable[[list[Logs]], None], Any]:+ def _insert_logs(logs: list[Logs]) -> None:insert_logs_to_clickhouse(clickhouse.conn, logs)yield _insert_logs@@ -515,8 +498,8 @@ def insert_logs(@pytest.fixture(name="materialize_log_field", scope="function")def materialize_log_field(signoz: types.SigNoz,-) -> Generator[Callable[[str, str, str, str], None], None, None]:- mat_fields: List[tuple[str, str, str]] = []+) -> Generator[Callable[[str, str, str, str], None]]:+ mat_fields: list[tuple[str, str, str]] = []def _materialize_log_field(token: str,@@ -535,10 +518,7 @@ def materialize_log_field(},timeout=10,)- assert response.status_code == HTTPStatus.OK, (- f"Failed to materialize log field {name}: "- f"{response.status_code} {response.text}"- )+ assert response.status_code == HTTPStatus.OK, f"Failed to materialize log field {name}: {response.status_code} {response.text}"mat_fields.append((field_type, data_type, name))yield _materialize_log_field@@ -548,16 +528,10 @@ def materialize_log_field(if mat_field_type == "resources":mat_field_type = "resource"field = f"{mat_field_type}_{mat_field_data_type}_{mat_field_name}"- signoz.telemetrystore.conn.query(- f"ALTER TABLE signoz_logs.logs_v2 ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}' DROP INDEX IF EXISTS {field}_idx"- )+ signoz.telemetrystore.conn.query(f"ALTER TABLE signoz_logs.logs_v2 ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}' DROP INDEX IF EXISTS {field}_idx")for table in ["logs_v2", "distributed_logs_v2"]:- signoz.telemetrystore.conn.query(- f"ALTER TABLE signoz_logs.{table} ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}' DROP COLUMN IF EXISTS {field}"- )- signoz.telemetrystore.conn.query(- f"ALTER TABLE signoz_logs.{table} ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}' DROP COLUMN IF EXISTS {field}_exists"- )+ signoz.telemetrystore.conn.query(f"ALTER TABLE signoz_logs.{table} ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}' DROP COLUMN IF EXISTS {field}")+ signoz.telemetrystore.conn.query(f"ALTER TABLE signoz_logs.{table} ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}' DROP COLUMN IF EXISTS {field}_exists")@pytest.fixture(name="ttl_legacy_logs_v2_table_setup", scope="function")@@ -569,20 +543,14 @@ def ttl_legacy_logs_v2_table_setup(request, signoz: types.SigNoz):"""# Setup code- result = signoz.telemetrystore.conn.query(- f"RENAME TABLE signoz_logs.logs_v2 TO signoz_logs.logs_v2_backup ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}'"- ).result_rows+ result = signoz.telemetrystore.conn.query(f"RENAME TABLE signoz_logs.logs_v2 TO signoz_logs.logs_v2_backup ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}'").result_rowsassert result is not None# Add cleanup to restore original table- request.addfinalizer(- lambda: signoz.telemetrystore.conn.query(- f"RENAME TABLE signoz_logs.logs_v2_backup TO signoz_logs.logs_v2 ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}'"- )- )+ request.addfinalizer(lambda: signoz.telemetrystore.conn.query(f"RENAME TABLE signoz_logs.logs_v2_backup TO signoz_logs.logs_v2 ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}'"))# Create new test tablesresult = signoz.telemetrystore.conn.query(- f"""CREATE TABLE signoz_logs.logs_v2 ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}'+ f"""CREATE TABLE signoz_logs.logs_v2 ON CLUSTER '{signoz.telemetrystore.env["SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER"]}'(`id` String,`timestamp` UInt64 CODEC(DoubleDelta, LZ4)@@ -594,11 +562,7 @@ def ttl_legacy_logs_v2_table_setup(request, signoz: types.SigNoz):assert result is not None# Add cleanup to drop test table- request.addfinalizer(- lambda: signoz.telemetrystore.conn.query(- f"DROP TABLE IF EXISTS signoz_logs.logs_v2 ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}'"- )- )+ request.addfinalizer(lambda: signoz.telemetrystore.conn.query(f"DROP TABLE IF EXISTS signoz_logs.logs_v2 ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}'"))yield # Test runs here@@ -612,20 +576,14 @@ def ttl_legacy_logs_v2_resource_table_setup(request, signoz: types.SigNoz):"""# Setup code- result = signoz.telemetrystore.conn.query(- f"RENAME TABLE signoz_logs.logs_v2_resource TO signoz_logs.logs_v2_resource_backup ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}'"- ).result_rows+ result = signoz.telemetrystore.conn.query(f"RENAME TABLE signoz_logs.logs_v2_resource TO signoz_logs.logs_v2_resource_backup ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}'").result_rowsassert result is not None# Add cleanup to restore original table- request.addfinalizer(- lambda: signoz.telemetrystore.conn.query(- f"RENAME TABLE signoz_logs.logs_v2_resource_backup TO signoz_logs.logs_v2_resource ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}'"- )- )+ request.addfinalizer(lambda: signoz.telemetrystore.conn.query(f"RENAME TABLE signoz_logs.logs_v2_resource_backup TO signoz_logs.logs_v2_resource ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}'"))# Create new test tablesresult = signoz.telemetrystore.conn.query(- f"""CREATE TABLE signoz_logs.logs_v2_resource ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}'+ f"""CREATE TABLE signoz_logs.logs_v2_resource ON CLUSTER '{signoz.telemetrystore.env["SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER"]}'(`id` String,`seen_at_ts_bucket_start` Int64 CODEC(Delta(8), ZSTD(1))@@ -636,11 +594,7 @@ def ttl_legacy_logs_v2_resource_table_setup(request, signoz: types.SigNoz):assert result is not None# Add cleanup to drop test table- request.addfinalizer(- lambda: signoz.telemetrystore.conn.query(- f"DROP TABLE IF EXISTS signoz_logs.logs_v2_resource ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}';"- )- )+ request.addfinalizer(lambda: signoz.telemetrystore.conn.query(f"DROP TABLE IF EXISTS signoz_logs.logs_v2_resource ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}';"))yield # Test runs here@@ -661,7 +615,6 @@ def remove_logs_ttl_settings(signoz: types.SigNoz):"logs_resource_keys",]for table in tables:-try:# Reset _retention_days and _retention_days_cold default values to 0 for tables that have these columnsif table in [@@ -671,19 +624,19 @@ def remove_logs_ttl_settings(signoz: types.SigNoz):"distributed_logs_v2_resource",]:reset_retention_query = f"""- ALTER TABLE signoz_logs.{table} ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}'+ ALTER TABLE signoz_logs.{table} ON CLUSTER '{signoz.telemetrystore.env["SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER"]}'MODIFY COLUMN _retention_days UInt16 DEFAULT 0"""signoz.telemetrystore.conn.query(reset_retention_query)reset_retention_cold_query = f"""- ALTER TABLE signoz_logs.{table} ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}'+ ALTER TABLE signoz_logs.{table} ON CLUSTER '{signoz.telemetrystore.env["SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER"]}'MODIFY COLUMN _retention_days_cold UInt16 DEFAULT 0"""signoz.telemetrystore.conn.query(reset_retention_cold_query)else:alter_query = f"""- ALTER TABLE signoz_logs.{table} ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}'+ ALTER TABLE signoz_logs.{table} ON CLUSTER '{signoz.telemetrystore.env["SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER"]}'REMOVE TTL"""signoz.telemetrystore.conn.query(alter_query)diff --git a/tests/fixtures/meter.py b/tests/fixtures/meter.pyindex 3edbcb6e6f..9ca15bb9ae 100644--- a/tests/fixtures/meter.py+++ b/tests/fixtures/meter.py@@ -1,7 +1,8 @@import hashlibimport json+from collections.abc import Callable, Generatorfrom datetime import datetime, timedelta-from typing import Any, Callable, Generator, List+from typing import Anyimport numpy as npimport pytest@@ -44,9 +45,7 @@ class MeterSample:self.value = np.float64(value)fingerprint_str = metric_name + self.labels- self.fingerprint = np.uint64(- int(hashlib.md5(fingerprint_str.encode()).hexdigest()[:16], 16)- )+ self.fingerprint = np.uint64(int(hashlib.md5(fingerprint_str.encode()).hexdigest()[:16], 16))def to_samples_row(self) -> list:return [@@ -70,7 +69,7 @@ def make_meter_samples(count: int = 60,base_value: float = 100.0,**kwargs,-) -> List[MeterSample]:+) -> list[MeterSample]:samples = []for i in range(count):ts = now - timedelta(minutes=count - i)@@ -89,8 +88,8 @@ def make_meter_samples(@pytest.fixture(name="insert_meter_samples", scope="function")def insert_meter_samples(clickhouse: types.TestContainerClickhouse,-) -> Generator[Callable[[List[MeterSample]], None], Any, None]:- def _insert_meter_samples(samples: List[MeterSample]) -> None:+) -> Generator[Callable[[list[MeterSample]], None], Any]:+ def _insert_meter_samples(samples: list[MeterSample]) -> None:if len(samples) == 0:return@@ -116,6 +115,4 @@ def insert_meter_samples(cluster = clickhouse.env["SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER"]for table in ["samples", "samples_agg_1d"]:- clickhouse.conn.query(- f"TRUNCATE TABLE signoz_meter.{table} ON CLUSTER '{cluster}' SYNC"- )+ clickhouse.conn.query(f"TRUNCATE TABLE signoz_meter.{table} ON CLUSTER '{cluster}' SYNC")diff --git a/tests/fixtures/metrics.py b/tests/fixtures/metrics.pyindex bbac17fe3e..e3c347fa2d 100644--- a/tests/fixtures/metrics.py+++ b/tests/fixtures/metrics.py@@ -2,7 +2,8 @@ import datetimeimport hashlibimport jsonfrom abc import ABC-from typing import Any, Callable, Generator, List, Optional+from collections.abc import Callable, Generator+from typing import Anyimport numpy as npimport pytest@@ -63,9 +64,7 @@ class MetricsTimeSeries(ABC):# Calculate fingerprint from metric_name + labelsfingerprint_str = metric_name + self.labels- self.fingerprint = np.uint64(- int(hashlib.md5(fingerprint_str.encode()).hexdigest()[:16], 16)- )+ self.fingerprint = np.uint64(int(hashlib.md5(fingerprint_str.encode()).hexdigest()[:16], 16))def to_row(self) -> list:return [@@ -267,7 +266,7 @@ class Metrics(ABC):self,metric_name: str,labels: dict[str, str] = {},- timestamp: Optional[datetime.datetime] = None,+ timestamp: datetime.datetime | None = None,value: float = 0.0,temporality: str = "Unspecified",flags: int = 0,@@ -334,7 +333,7 @@ class Metrics(ABC):cls,data: dict,# base_time: Optional[datetime.datetime] = None,- metric_name_override: Optional[str] = None,+ metric_name_override: str | None = None,) -> "Metrics":"""Create a Metrics instance from a dict.@@ -368,9 +367,9 @@ class Metrics(ABC):def load_from_file(cls,file_path: str,- base_time: Optional[datetime.datetime] = None,- metric_name_override: Optional[str] = None,- ) -> List["Metrics"]:+ base_time: datetime.datetime | None = None,+ metric_name_override: str | None = None,+ ) -> list["Metrics"]:"""Load metrics from a JSONL file.@@ -383,7 +382,7 @@ class Metrics(ABC):metric_name_override: If provided, overrides metric_name for all metrics"""data_list = []- with open(file_path, "r", encoding="utf-8") as f:+ with open(file_path, encoding="utf-8") as f:for line in f:line = line.strip()if not line:@@ -410,14 +409,12 @@ class Metrics(ABC):original_ts = parse_timestamp(data["timestamp"])adjusted_ts = original_ts + time_offsetdata["timestamp"] = adjusted_ts.isoformat()- metrics.append(- cls.from_dict(data, metric_name_override=metric_name_override)- )+ metrics.append(cls.from_dict(data, metric_name_override=metric_name_override))return metrics-def insert_metrics_to_clickhouse(conn, metrics: List[Metrics]) -> None:+def insert_metrics_to_clickhouse(conn, metrics: list[Metrics]) -> None:"""Insert metrics into ClickHouse tables.Handles insertion into:@@ -567,8 +564,8 @@ def truncate_metrics_tables(conn, cluster: str) -> None:@pytest.fixture(name="insert_metrics", scope="function")def insert_metrics(clickhouse: types.TestContainerClickhouse,-) -> Generator[Callable[[List[Metrics]], None], Any, None]:- def _insert_metrics(metrics: List[Metrics]) -> None:+) -> Generator[Callable[[list[Metrics]], None], Any]:+ def _insert_metrics(metrics: list[Metrics]) -> None:insert_metrics_to_clickhouse(clickhouse.conn, metrics)yield _insert_metrics@@ -600,11 +597,7 @@ def remove_metrics_ttl_and_storage_settings(signoz: types.SigNoz):cluster = signoz.telemetrystore.env["SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER"]for table in tables:try:- signoz.telemetrystore.conn.query(- f"ALTER TABLE signoz_metrics.{table} ON CLUSTER '{cluster}' REMOVE TTL"- )- signoz.telemetrystore.conn.query(- f"ALTER TABLE signoz_metrics.{table} ON CLUSTER '{cluster}' RESET SETTING storage_policy;"- )+ signoz.telemetrystore.conn.query(f"ALTER TABLE signoz_metrics.{table} ON CLUSTER '{cluster}' REMOVE TTL")+ signoz.telemetrystore.conn.query(f"ALTER TABLE signoz_metrics.{table} ON CLUSTER '{cluster}' RESET SETTING storage_policy;")except Exception as e: # pylint: disable=broad-exception-caughtprint(f"ttl and storage policy reset failed for {table}: {e}")diff --git a/tests/fixtures/metrics_generators.py b/tests/fixtures/metrics_generators.pyindex eede1ba82e..05120730c6 100644--- a/tests/fixtures/metrics_generators.py+++ b/tests/fixtures/metrics_generators.py@@ -1,8 +1,8 @@import mathimport random+from collections.abc import Generatorfrom dataclasses import dataclass, field-from datetime import datetime, timedelta, timezone-from typing import Dict, Generator, List, Optional, Tuple+from datetime import UTC, datetime, timedeltafrom fixtures.metrics import Metrics@@ -10,7 +10,7 @@ from fixtures.metrics import Metrics@dataclassclass DeterministicAnomalies:# resets: (offset)- COUNTER_RESET_OFFSETS: List[timedelta] = field(+ COUNTER_RESET_OFFSETS: list[timedelta] = field(default_factory=lambda: [timedelta(hours=6),timedelta(hours=24),@@ -18,7 +18,7 @@ class DeterministicAnomalies:)# gaps: (offset, duration)- DATA_GAP_OFFSETS: List[Tuple[timedelta, timedelta]] = field(+ DATA_GAP_OFFSETS: list[tuple[timedelta, timedelta]] = field(default_factory=lambda: [(timedelta(hours=12), timedelta(minutes=30)), # 30 min gap(timedelta(hours=36), timedelta(minutes=15)), # 15 min gap@@ -26,14 +26,14 @@ class DeterministicAnomalies:)# spikes: (offset, multiplier)- SPIKE_OFFSETS: List[Tuple[timedelta, float]] = field(+ SPIKE_OFFSETS: list[tuple[timedelta, float]] = field(default_factory=lambda: [(timedelta(hours=18), 10.0), # at this point the value spikes 10x])# 0 value offsets- ZERO_VALUE_OFFSETS: List[timedelta] = field(+ ZERO_VALUE_OFFSETS: list[timedelta] = field(default_factory=lambda: [timedelta(hours=30), # at this point the value drops to zero]@@ -83,7 +83,7 @@ class MetricsDataGenerator:duration = (self.end - self.start).total_seconds()self.num_points = int(duration / step_seconds)- def _timestamps(self) -> Generator[datetime, None, None]:+ def _timestamps(self) -> Generator[datetime]:current = self.startwhile current < self.end:yield current@@ -92,16 +92,12 @@ class MetricsDataGenerator:def _offset_from_start(self, ts: datetime) -> timedelta:return ts - self.start- def steady_with_noise(- self, base: float, noise_pct: float = 0.1- ) -> Generator[float, None, None]:+ def steady_with_noise(self, base: float, noise_pct: float = 0.1) -> Generator[float]:for _ in range(self.num_points):noise = self.rng.uniform(-noise_pct, noise_pct) * baseyield base + noise- def diurnal_pattern(- self, min_val: float, max_val: float- ) -> Generator[float, None, None]:+ def diurnal_pattern(self, min_val: float, max_val: float) -> Generator[float]:amplitude = (max_val - min_val) / 2baseline = min_val + amplitude@@ -117,9 +113,7 @@ class MetricsDataGenerator:if i >= self.num_points - 1:break- def monotonic_increasing(- self, rate_per_minute: float, noise_pct: float = 0.1- ) -> Generator[float, None, None]:+ def monotonic_increasing(self, rate_per_minute: float, noise_pct: float = 0.1) -> Generator[float]:value = 0.0for ts in self._timestamps():offset = self._offset_from_start(ts)@@ -139,7 +133,7 @@ class MetricsDataGenerator:base: float,spike_factor: float = 10.0,spike_interval_minutes: int = 60,- ) -> Generator[float, None, None]:+ ) -> Generator[float]:for i, ts in enumerate(self._timestamps()):offset = self._offset_from_start(ts)@@ -160,7 +154,7 @@ class MetricsDataGenerator:self,base: float,noise_pct: float = 0.1,- ) -> Generator[float, None, None]:+ ) -> Generator[float]:for ts in self._timestamps():offset = self._offset_from_start(ts)@@ -170,9 +164,7 @@ class MetricsDataGenerator:noise = self.rng.uniform(-noise_pct, noise_pct) * baseyield max(0, base + noise)- def latency_distribution(- self, p50_ms: float, p99_ms: float- ) -> Generator[List[float], None, None]:+ def latency_distribution(self, p50_ms: float, p99_ms: float) -> Generator[list[float]]:# see otel defaults (in ms)# https://opentelemetry.io/docs/specs/otel/metrics/sdk/#explicit-bucket-histogram-aggregationbuckets = [5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500, 10000]@@ -209,9 +201,9 @@ class MetricsDataGenerator:def generate_gauge_metrics(self,metric_name: str = "system.cpu.utilization",- services: List[str] = None,- hosts: List[str] = None,- ) -> List[Metrics]:+ services: list[str] = None,+ hosts: list[str] = None,+ ) -> list[Metrics]:if services is None:services = ["frontend", "backend", "worker", "database"]if hosts is None:@@ -249,10 +241,10 @@ class MetricsDataGenerator:def generate_cumulative_counter_metrics(self,metric_name: str = "http.server.request.count",- services: List[str] = None,- endpoints: List[str] = None,- status_codes: List[str] = None,- ) -> List[Metrics]:+ services: list[str] = None,+ endpoints: list[str] = None,+ status_codes: list[str] = None,+ ) -> list[Metrics]:if services is None:services = ["api", "web", "auth"]if endpoints is None:@@ -304,10 +296,10 @@ class MetricsDataGenerator:def generate_delta_counter_metrics(self,metric_name: str = "http.server.request.delta",- services: List[str] = None,- endpoints: List[str] = None,- status_codes: List[str] = None,- ) -> List[Metrics]:+ services: list[str] = None,+ endpoints: list[str] = None,+ status_codes: list[str] = None,+ ) -> list[Metrics]:if services is None:services = ["api", "web", "auth"]if endpoints is None:@@ -359,9 +351,9 @@ class MetricsDataGenerator:def generate_connection_gauge_metrics(self,metric_name: str = "db.client.connections",- services: List[str] = None,- pool_names: List[str] = None,- ) -> List[Metrics]:+ services: list[str] = None,+ pool_names: list[str] = None,+ ) -> list[Metrics]:if services is None:services = ["backend", "worker"]if pool_names is None:@@ -398,16 +390,14 @@ class MetricsDataGenerator:def generate_gc_duration_metrics(self,metric_name: str = "process.runtime.gc.duration",- services: List[str] = None,- ) -> List[Metrics]:+ services: list[str] = None,+ ) -> list[Metrics]:if services is None:services = ["frontend", "backend", "worker", "api"]metrics = []for service in services:- values = list[float](- self.spike_pattern(5.0, 10.0, 30)- ) # bump every 30 minutes (to similate real pattern)+ values = list[float](self.spike_pattern(5.0, 10.0, 30)) # bump every 30 minutes (to similate real pattern)labels = {"service_name": service}for i, ts in enumerate[datetime](self._timestamps()):@@ -431,7 +421,7 @@ class MetricsDataGenerator:return metrics- def generate_all_metrics(self) -> Dict[str, List[Metrics]]:+ def generate_all_metrics(self) -> dict[str, list[Metrics]]:return {"gauge": self.generate_gauge_metrics(),"cumulative_counter": self.generate_cumulative_counter_metrics(),@@ -440,7 +430,7 @@ class MetricsDataGenerator:"gc_duration": self.generate_gc_duration_metrics(),}- def generate_flat_metrics(self) -> List[Metrics]:+ def generate_flat_metrics(self) -> list[Metrics]:all_metrics = []for metrics_list in self.generate_all_metrics().values():all_metrics.extend(metrics_list)@@ -452,7 +442,7 @@ def create_test_data_generator(step_seconds: int = 60,seed: int = 42,) -> MetricsDataGenerator:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start = now - timedelta(hours=duration_hours)return MetricsDataGenerator(start_time=start,@@ -464,13 +454,13 @@ def create_test_data_generator(def generate_simple_gauge_series(metric_name: str,- labels: Dict[str, str],- values: List[float],- start_time: Optional[datetime] = None,+ labels: dict[str, str],+ values: list[float],+ start_time: datetime | None = None,step_seconds: int = 60,-) -> List[Metrics]:+) -> list[Metrics]:if start_time is None:- start_time = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ start_time = datetime.now(tz=UTC).replace(second=0, microsecond=0)metrics = []for i, value in enumerate(values):@@ -491,14 +481,14 @@ def generate_simple_gauge_series(def generate_simple_counter_series(metric_name: str,- labels: Dict[str, str],- values: List[float],+ labels: dict[str, str],+ values: list[float],temporality: str = "Cumulative",- start_time: Optional[datetime] = None,+ start_time: datetime | None = None,step_seconds: int = 60,-) -> List[Metrics]:+) -> list[Metrics]:if start_time is None:- start_time = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ start_time = datetime.now(tz=UTC).replace(second=0, microsecond=0)metrics = []for i, value in enumerate(values):@@ -519,14 +509,14 @@ def generate_simple_counter_series(def generate_non_monotonic_sum_series(metric_name: str,- labels: Dict[str, str],- values: List[float],+ labels: dict[str, str],+ values: list[float],temporality: str = "Cumulative",- start_time: Optional[datetime] = None,+ start_time: datetime | None = None,step_seconds: int = 60,-) -> List[Metrics]:+) -> list[Metrics]:if start_time is None:- start_time = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ start_time = datetime.now(tz=UTC).replace(second=0, microsecond=0)metrics = []for i, value in enumerate(values):@@ -547,15 +537,15 @@ def generate_non_monotonic_sum_series(def generate_counter_with_resets(metric_name: str,- labels: Dict[str, str],+ labels: dict[str, str],num_points: int,rate_per_point: float,- reset_at_indices: List[int],- start_time: Optional[datetime] = None,+ reset_at_indices: list[int],+ start_time: datetime | None = None,step_seconds: int = 60,-) -> List[Metrics]:+) -> list[Metrics]:if start_time is None:- start_time = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ start_time = datetime.now(tz=UTC).replace(second=0, microsecond=0)metrics = []value = 0.0@@ -582,16 +572,16 @@ def generate_counter_with_resets(def generate_sparse_series(metric_name: str,- labels: Dict[str, str],- values_at_indices: Dict[int, float],+ labels: dict[str, str],+ values_at_indices: dict[int, float],total_points: int,temporality: str = "Unspecified",type_: str = "Gauge",- start_time: Optional[datetime] = None,+ start_time: datetime | None = None,step_seconds: int = 60,-) -> List[Metrics]:+) -> list[Metrics]:if start_time is None:- start_time = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ start_time = datetime.now(tz=UTC).replace(second=0, microsecond=0)metrics = []for i, value in values_at_indices.items():diff --git a/tests/fixtures/migrator.py b/tests/fixtures/migrator.pyindex 93de2c5af3..689c38f4d8 100644--- a/tests/fixtures/migrator.py+++ b/tests/fixtures/migrator.py@@ -25,7 +25,7 @@ def migrator(container = client.containers.run(image=f"signoz/signoz-schema-migrator:{version}",- command=f"sync --replication=true --cluster-name=cluster --up= --dsn={clickhouse.env["SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_DSN"]}",+ command=f"sync --replication=true --cluster-name=cluster --up= --dsn={clickhouse.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_DSN']}",detach=True,auto_remove=False,network=network.id,@@ -43,7 +43,7 @@ def migrator(container = client.containers.run(image=f"signoz/signoz-schema-migrator:{version}",- command=f"async --replication=true --cluster-name=cluster --up= --dsn={clickhouse.env["SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_DSN"]}",+ command=f"async --replication=true --cluster-name=cluster --up= --dsn={clickhouse.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_DSN']}",detach=True,auto_remove=False,network=network.id,diff --git a/tests/fixtures/network.py b/tests/fixtures/network.pyindex 02c2714cfd..ddcdb6442e 100644--- a/tests/fixtures/network.py+++ b/tests/fixtures/network.py@@ -10,9 +10,7 @@ logger = setup_logger(__name__)@pytest.fixture(name="network", scope="package")-def network(- request: pytest.FixtureRequest, pytestconfig: pytest.Config-) -> types.Network:+def network(request: pytest.FixtureRequest, pytestconfig: pytest.Config) -> types.Network:"""Package-Scoped fixture for creating a network"""diff --git a/tests/fixtures/notification_channel.py b/tests/fixtures/notification_channel.pyindex f9419f5f53..bf730f56a2 100644--- a/tests/fixtures/notification_channel.py+++ b/tests/fixtures/notification_channel.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport dockerimport docker.errors@@ -39,11 +39,7 @@ def notification_channel(container.get_exposed_port(8080),)},- container_configs={- "8080": types.TestContainerUrlConfig(- "http", container.get_wrapped_container().name, 8080- )- },+ container_configs={"8080": types.TestContainerUrlConfig("http", container.get_wrapped_container().name, 8080)},)def delete(container: types.TestContainerDocker):@@ -101,11 +97,7 @@ def create_webhook_notification_channel(headers={"Authorization": f"Bearer {admin_token}"},timeout=5,)- assert response.status_code == HTTPStatus.CREATED, (- f"Failed to create channel, "- f"Response: {response.text} "- f"Response status: {response.status_code}"- )+ assert response.status_code == HTTPStatus.CREATED, f"Failed to create channel, Response: {response.text} Response status: {response.status_code}"channel_id = response.json()["data"]["id"]return channel_iddiff --git a/tests/fixtures/postgres.py b/tests/fixtures/postgres.pyindex b6f02a1be5..1b1f2256be 100644--- a/tests/fixtures/postgres.py+++ b/tests/fixtures/postgres.py@@ -12,9 +12,7 @@ logger = setup_logger(__name__)@pytest.fixture(name="postgres", scope="package")-def postgres(- network: Network, request: pytest.FixtureRequest, pytestconfig: pytest.Config-) -> types.TestContainerSQL:+def postgres(network: Network, request: pytest.FixtureRequest, pytestconfig: pytest.Config) -> types.TestContainerSQL:"""Package-scoped fixture for PostgreSQL TestContainer."""@@ -33,9 +31,7 @@ def postgres(container.with_network(network)container.start()- engine = create_engine(- f"postgresql+psycopg2://{container.username}:{container.password}@{container.get_container_host_ip()}:{container.get_exposed_port(5432)}/{container.dbname}"- )+ engine = create_engine(f"postgresql+psycopg2://{container.username}:{container.password}@{container.get_container_host_ip()}:{container.get_exposed_port(5432)}/{container.dbname}")with engine.connect() as conn:result = conn.execute(sql.text("SELECT 1"))@@ -51,11 +47,7 @@ def postgres(container.get_exposed_port(5432),)},- container_configs={- "5432": types.TestContainerUrlConfig(- "postgresql", container.get_wrapped_container().name, 5432- )- },+ container_configs={"5432": types.TestContainerUrlConfig("postgresql", container.get_wrapped_container().name, 5432)},),conn=engine,env={@@ -83,9 +75,7 @@ def postgres(host_config = container.host_configs["5432"]env = cache["env"]- engine = create_engine(- f"postgresql+psycopg2://{env['SIGNOZ_SQLSTORE_POSTGRES_USER']}:{env['SIGNOZ_SQLSTORE_POSTGRES_PASSWORD']}@{host_config.address}:{host_config.port}/{env['SIGNOZ_SQLSTORE_POSTGRES_DBNAME']}"- )+ engine = create_engine(f"postgresql+psycopg2://{env['SIGNOZ_SQLSTORE_POSTGRES_USER']}:{env['SIGNOZ_SQLSTORE_POSTGRES_PASSWORD']}@{host_config.address}:{host_config.port}/{env['SIGNOZ_SQLSTORE_POSTGRES_DBNAME']}")with engine.connect() as conn:result = conn.execute(sql.text("SELECT 1"))@@ -102,9 +92,7 @@ def postgres(pytestconfig,"postgres",lambda: types.TestContainerSQL(- container=types.TestContainerDocker(- id="", host_configs={}, container_configs={}- ),+ container=types.TestContainerDocker(id="", host_configs={}, container_configs={}),conn=None,env={},),diff --git a/tests/fixtures/querier.py b/tests/fixtures/querier.pyindex 85489e752c..a7315ca35f 100644--- a/tests/fixtures/querier.py+++ b/tests/fixtures/querier.py@@ -1,7 +1,7 @@from dataclasses import dataclass-from datetime import datetime, timedelta, timezone+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Any, Dict, List, Optional, Union+from typing import Anyimport requests@@ -17,10 +17,10 @@ QUERY_TIMEOUT = 30 # seconds@dataclassclass TelemetryFieldKey:name: str- field_data_type: Optional[str] = None- field_context: Optional[str] = None+ field_data_type: str | None = None+ field_context: str | None = None- def to_dict(self) -> Dict:+ def to_dict(self) -> dict:return {"name": self.name,"fieldDataType": self.field_data_type,@@ -33,7 +33,7 @@ class OrderBy:key: TelemetryFieldKeydirection: str = "asc"- def to_dict(self) -> Dict:+ def to_dict(self) -> dict:return {"key": self.key.to_dict(), "direction": self.direction}@@ -41,14 +41,14 @@ class OrderBy:class BuilderQuery:signal: strname: str = "A"- source: Optional[str] = None- limit: Optional[int] = None- filter_expression: Optional[str] = None- select_fields: Optional[List[TelemetryFieldKey]] = None- order: Optional[List[OrderBy]] = None-- def to_dict(self) -> Dict:- spec: Dict[str, Any] = {+ source: str | None = None+ limit: int | None = None+ filter_expression: str | None = None+ select_fields: list[TelemetryFieldKey] | None = None+ order: list[OrderBy] | None = None++ def to_dict(self) -> dict:+ spec: dict[str, Any] = {"signal": self.signal,"name": self.name,}@@ -61,9 +61,7 @@ class BuilderQuery:if self.select_fields:spec["selectFields"] = [f.to_dict() for f in self.select_fields]if self.order:- spec["order"] = [- o.to_dict() if hasattr(o, "to_dict") else o for o in self.order- ]+ spec["order"] = [o.to_dict() if hasattr(o, "to_dict") else o for o in self.order]return {"type": "builder_query", "spec": spec}@@ -72,11 +70,11 @@ class TraceOperatorQuery:name: strexpression: strreturn_spans_from: str- limit: Optional[int] = None- order: Optional[List[OrderBy]] = None+ limit: int | None = None+ order: list[OrderBy] | None = None- def to_dict(self) -> Dict:- spec: Dict[str, Any] = {+ def to_dict(self) -> dict:+ spec: dict[str, Any] = {"name": self.name,"expression": self.expression,"returnSpansFrom": self.return_spans_from,@@ -84,9 +82,7 @@ class TraceOperatorQuery:if self.limit is not None:spec["limit"] = self.limitif self.order:- spec["order"] = [- o.to_dict() if hasattr(o, "to_dict") else o for o in self.order- ]+ spec["order"] = [o.to_dict() if hasattr(o, "to_dict") else o for o in self.order]return {"type": "builder_trace_operator", "spec": spec}@@ -94,11 +90,11 @@ class TraceOperatorQuery:class QueryRangeRequest:start: int # nanosecondsend: int # nanoseconds- queries: List[Union[BuilderQuery, TraceOperatorQuery]]- request_type: Optional[str] = "raw"+ queries: list[BuilderQuery | TraceOperatorQuery]+ request_type: str | None = "raw"- def to_dict(self) -> Dict:- body: Dict[str, Any] = {+ def to_dict(self) -> dict:+ body: dict[str, Any] = {"start": self.start,"end": self.end,"compositeQuery": {@@ -115,11 +111,11 @@ def make_query_request(token: str,start_ms: int,end_ms: int,- queries: List[Dict],+ queries: list[dict],*,request_type: str = "time_series",- format_options: Optional[Dict] = None,- variables: Optional[Dict] = None,+ format_options: dict | None = None,+ variables: dict | None = None,no_cache: bool = True,timeout: int = QUERY_TIMEOUT,) -> requests.Response:@@ -152,16 +148,16 @@ def build_builder_query(time_aggregation: str,space_aggregation: str,*,- comparisonSpaceAggregationParam: Optional[Dict] = None,- temporality: Optional[str] = None,- source: Optional[str] = None,+ comparisonSpaceAggregationParam: dict | None = None,+ temporality: str | None = None,+ source: str | None = None,step_interval: int = DEFAULT_STEP_INTERVAL,- group_by: Optional[List[str]] = None,- filter_expression: Optional[str] = None,- functions: Optional[List[Dict]] = None,+ group_by: list[str] | None = None,+ filter_expression: str | None = None,+ functions: list[dict] | None = None,disabled: bool = False,-) -> Dict:- spec: Dict[str, Any] = {+) -> dict:+ spec: dict[str, Any] = {"name": name,"signal": "metrics","aggregations": [@@ -179,9 +175,7 @@ def build_builder_query(if temporality:spec["aggregations"][0]["temporality"] = temporalityif comparisonSpaceAggregationParam:- spec["aggregations"][0][- "comparisonSpaceAggregationParam"- ] = comparisonSpaceAggregationParam+ spec["aggregations"][0]["comparisonSpaceAggregationParam"] = comparisonSpaceAggregationParamif group_by:spec["groupBy"] = [{@@ -203,10 +197,10 @@ def build_formula_query(name: str,expression: str,*,- functions: Optional[List[Dict]] = None,+ functions: list[dict] | None = None,disabled: bool = False,-) -> Dict:- spec: Dict[str, Any] = {+) -> dict:+ spec: dict[str, Any] = {"name": name,"expression": expression,"disabled": disabled,@@ -216,14 +210,14 @@ def build_formula_query(return {"type": "builder_formula", "spec": spec}-def build_function(name: str, *args: Any) -> Dict:- func: Dict[str, Any] = {"name": name}+def build_function(name: str, *args: Any) -> dict:+ func: dict[str, Any] = {"name": name}if args:func["args"] = [{"value": arg} for arg in args]return func-def get_series_values(response_json: Dict, query_name: str) -> List[Dict]:+def get_series_values(response_json: dict, query_name: str) -> list[dict]:results = response_json.get("data", {}).get("data", {}).get("results", [])result = find_named_result(results, query_name)if not result:@@ -238,7 +232,7 @@ def get_series_values(response_json: Dict, query_name: str) -> List[Dict]:return series[0].get("values", [])-def get_all_series(response_json: Dict, query_name: str) -> List[Dict]:+def get_all_series(response_json: dict, query_name: str) -> list[dict]:results = response_json.get("data", {}).get("data", {}).get("results", [])result = find_named_result(results, query_name)if not result:@@ -250,18 +244,18 @@ def get_all_series(response_json: Dict, query_name: str) -> List[Dict]:return aggregations[0].get("series", [])-def get_scalar_value(response_json: Dict, query_name: str) -> Optional[float]:+def get_scalar_value(response_json: dict, query_name: str) -> float | None:values = get_series_values(response_json, query_name)if values:return values[0].get("value")return None-def get_all_warnings(response_json: Dict) -> List[Dict]:+def get_all_warnings(response_json: dict) -> list[dict]:return response_json.get("data", {}).get("warning", {}).get("warnings", [])-def get_error_message(response_json: Dict) -> str:+def get_error_message(response_json: dict) -> str:return response_json.get("error", {}).get("message", "")@@ -274,8 +268,8 @@ def compare_values(def compare_series_values(- values1: List[Dict],- values2: List[Dict],+ values1: list[dict],+ values2: list[dict],tolerance: float = DEFAULT_TOLERANCE,) -> bool:if len(values1) != len(values2):@@ -293,24 +287,17 @@ def compare_series_values(def compare_all_series(- series1: List[Dict],- series2: List[Dict],+ series1: list[dict],+ series2: list[dict],tolerance: float = DEFAULT_TOLERANCE,) -> bool:if len(series1) != len(series2):return False# oh my lovely python- def series_key(s: Dict) -> str:+ def series_key(s: dict) -> str:labels = s.get("labels", [])- return str(- sorted(- [- (lbl.get("key", {}).get("name", ""), lbl.get("value", ""))- for lbl in labels- ]- )- )+ return str(sorted([(lbl.get("key", {}).get("name", ""), lbl.get("value", "")) for lbl in labels]))sorted1 = sorted(series1, key=series_key)sorted2 = sorted(series2, key=series_key)@@ -328,8 +315,8 @@ def compare_all_series(def assert_results_equal(- result_cached: Dict,- result_no_cache: Dict,+ result_cached: dict,+ result_no_cache: dict,query_name: str,context: str,tolerance: float = DEFAULT_TOLERANCE,@@ -340,27 +327,16 @@ def assert_results_equal(sorted_cached = sorted(values_cached, key=lambda x: x["timestamp"])sorted_no_cache = sorted(values_no_cache, key=lambda x: x["timestamp"])- assert len(sorted_cached) == len(sorted_no_cache), (- f"{context}: Different number of values. "- f"Cached: {len(sorted_cached)}, No-cache: {len(sorted_no_cache)}\n"- f"Cached timestamps: {[v['timestamp'] for v in sorted_cached]}\n"- f"No-cache timestamps: {[v['timestamp'] for v in sorted_no_cache]}"- )+ assert len(sorted_cached) == len(sorted_no_cache), f"{context}: Different number of values. Cached: {len(sorted_cached)}, No-cache: {len(sorted_no_cache)}\nCached timestamps: {[v['timestamp'] for v in sorted_cached]}\nNo-cache timestamps: {[v['timestamp'] for v in sorted_no_cache]}"for v_cached, v_no_cache in zip(sorted_cached, sorted_no_cache):- assert v_cached["timestamp"] == v_no_cache["timestamp"], (- f"{context}: Timestamp mismatch. "- f"Cached: {v_cached['timestamp']}, No-cache: {v_no_cache['timestamp']}"- )- assert compare_values(v_cached["value"], v_no_cache["value"], tolerance), (- f"{context}: Value mismatch at timestamp {v_cached['timestamp']}. "- f"Cached: {v_cached['value']}, No-cache: {v_no_cache['value']}"- )+ assert v_cached["timestamp"] == v_no_cache["timestamp"], f"{context}: Timestamp mismatch. Cached: {v_cached['timestamp']}, No-cache: {v_no_cache['timestamp']}"+ assert compare_values(v_cached["value"], v_no_cache["value"], tolerance), f"{context}: Value mismatch at timestamp {v_cached['timestamp']}. Cached: {v_cached['value']}, No-cache: {v_no_cache['value']}"def assert_all_series_equal(- result_cached: Dict,- result_no_cache: Dict,+ result_cached: dict,+ result_no_cache: dict,query_name: str,context: str,tolerance: float = DEFAULT_TOLERANCE,@@ -368,25 +344,21 @@ def assert_all_series_equal(series_cached = get_all_series(result_cached, query_name)series_no_cache = get_all_series(result_no_cache, query_name)- assert compare_all_series(- series_cached, series_no_cache, tolerance- ), f"{context}: Cached series differ from non-cached series"+ assert compare_all_series(series_cached, series_no_cache, tolerance), f"{context}: Cached series differ from non-cached series"-def expected_minutely_bucket_timestamps_ms(now: datetime) -> List[List[int]]:- previous_five = [- int((now - timedelta(minutes=m)).timestamp() * 1000) for m in range(5, 0, -1)- ]+def expected_minutely_bucket_timestamps_ms(now: datetime) -> list[list[int]]:+ previous_five = [int((now - timedelta(minutes=m)).timestamp() * 1000) for m in range(5, 0, -1)]with_current = previous_five + [int(now.timestamp() * 1000)]return [previous_five, with_current]def assert_minutely_bucket_timestamps(- points: List[Dict[str, Any]],+ points: list[dict[str, Any]],now: datetime,*,context: str,-) -> List[int]:+) -> list[int]:expected = expected_minutely_bucket_timestamps_ms(now)actual = [p["timestamp"] for p in points]assert actual in expected, f"Unexpected timestamps for {context}: {actual}"@@ -394,10 +366,10 @@ def assert_minutely_bucket_timestamps(def assert_minutely_bucket_values(- points: List[Dict[str, Any]],+ points: list[dict[str, Any]],now: datetime,*,- expected_by_ts: Dict[int, float],+ expected_by_ts: dict[int, float],context: str,) -> None:timestamps = assert_minutely_bucket_timestamps(points, now, context=context)@@ -406,24 +378,17 @@ def assert_minutely_bucket_values(for point in points:ts = point["timestamp"]- assert point["value"] == expected[ts], (- f"Unexpected value for {context} at timestamp={ts}: "- f"got {point['value']}, expected {expected[ts]}"- )+ assert point["value"] == expected[ts], f"Unexpected value for {context} at timestamp={ts}: got {point['value']}, expected {expected[ts]}"def index_series_by_label(- series: List[Dict[str, Any]],+ series: list[dict[str, Any]],label_name: str,-) -> Dict[str, Dict[str, Any]]:- series_by_label: Dict[str, Dict[str, Any]] = {}+) -> dict[str, dict[str, Any]]:+ series_by_label: dict[str, dict[str, Any]] = {}for s in series:label = next(- (- l- for l in s.get("labels", [])- if l.get("key", {}).get("name") == label_name- ),+ (l for l in s.get("labels", []) if l.get("key", {}).get("name") == label_name),None,)assert label is not None, f"Expected {label_name} label in series"@@ -432,17 +397,11 @@ def index_series_by_label(def find_named_result(- results: List[Dict[str, Any]],+ results: list[dict[str, Any]],name: str,-) -> Optional[Dict[str, Any]]:+) -> dict[str, Any] | None:return next(- (- r- for r in results- if r.get("name") == name- or r.get("queryName") == name- or (r.get("spec") or {}).get("name") == name- ),+ (r for r in results if r.get("name") == name or r.get("queryName") == name or (r.get("spec") or {}).get("name") == name),None,)@@ -450,18 +409,18 @@ def find_named_result(def build_scalar_query(name: str,signal: str,- aggregations: List[Dict],+ aggregations: list[dict],*,- source: Optional[str] = None,- group_by: Optional[List[Dict]] = None,- order: Optional[List[Dict]] = None,- limit: Optional[int] = None,- filter_expression: Optional[str] = None,- having_expression: Optional[str] = None,+ source: str | None = None,+ group_by: list[dict] | None = None,+ order: list[dict] | None = None,+ limit: int | None = None,+ filter_expression: str | None = None,+ having_expression: str | None = None,step_interval: int = DEFAULT_STEP_INTERVAL,disabled: bool = False,-) -> Dict:- spec: Dict[str, Any] = {+) -> dict:+ spec: dict[str, Any] = {"name": name,"signal": signal,"stepInterval": step_interval,@@ -494,7 +453,7 @@ def build_group_by_field(name: str,field_data_type: str = "string",field_context: str = "resource",-) -> Dict:+) -> dict:return {"name": name,"fieldDataType": field_data_type,@@ -502,12 +461,12 @@ def build_group_by_field(}-def build_order_by(name: str, direction: str = "desc") -> Dict:+def build_order_by(name: str, direction: str = "desc") -> dict:return {"key": {"name": name}, "direction": direction}-def build_logs_aggregation(expression: str, alias: Optional[str] = None) -> Dict:- agg: Dict[str, Any] = {"expression": expression}+def build_logs_aggregation(expression: str, alias: str | None = None) -> dict:+ agg: dict[str, Any] = {"expression": expression}if alias:agg["alias"] = aliasreturn agg@@ -518,7 +477,7 @@ def build_metrics_aggregation(time_aggregation: str,space_aggregation: str,temporality: str = "cumulative",-) -> Dict:+) -> dict:return {"metricName": metric_name,"temporality": temporality,@@ -527,65 +486,51 @@ def build_metrics_aggregation(}-def get_scalar_table_data(response_json: Dict) -> List[List[Any]]:+def get_scalar_table_data(response_json: dict) -> list[list[Any]]:results = response_json.get("data", {}).get("data", {}).get("results", [])if not results:return []return results[0].get("data", [])-def get_scalar_columns(response_json: Dict) -> List[Dict]:+def get_scalar_columns(response_json: dict) -> list[dict]:results = response_json.get("data", {}).get("data", {}).get("results", [])if not results:return []return results[0].get("columns", [])-def get_column_data_from_response(response_json: Dict, column_name: str) -> List[Any]:+def get_column_data_from_response(response_json: dict, column_name: str) -> list[Any]:results = response_json.get("data", {}).get("data", {}).get("results", [])if not results:return []rows = results[0].get("rows") or []- return [- row["data"][column_name] for row in rows if column_name in row.get("data", {})- ]+ return [row["data"][column_name] for row in rows if column_name in row.get("data", {})]def assert_scalar_result_order(- data: List[List[Any]],- expected_order: List[tuple],+ data: list[list[Any]],+ expected_order: list[tuple],context: str = "",) -> None:- assert len(data) == len(expected_order), (- f"{context}: Expected {len(expected_order)} rows, got {len(data)}. "- f"Data: {data}"- )+ assert len(data) == len(expected_order), f"{context}: Expected {len(expected_order)} rows, got {len(data)}. Data: {data}"for i, (row, expected) in enumerate(zip(data, expected_order)):for j, expected_val in enumerate(expected):actual_val = row[j]- assert actual_val == expected_val, (- f"{context}: Row {i}, column {j} mismatch. "- f"Expected {expected_val}, got {actual_val}. "- f"Full row: {row}, expected: {expected}"- )+ assert actual_val == expected_val, f"{context}: Row {i}, column {j} mismatch. Expected {expected_val}, got {actual_val}. Full row: {row}, expected: {expected}"def assert_scalar_column_order(- data: List[List[Any]],+ data: list[list[Any]],column_index: int,- expected_values: List[Any],+ expected_values: list[Any],context: str = "",) -> None:- assert len(data) == len(- expected_values- ), f"{context}: Expected {len(expected_values)} rows, got {len(data)}"+ assert len(data) == len(expected_values), f"{context}: Expected {len(expected_values)} rows, got {len(data)}"actual_values = [row[column_index] for row in data]- assert actual_values == expected_values, (- f"{context}: Column {column_index} order mismatch. "- f"Expected {expected_values}, got {actual_values}"- )+ assert actual_values == expected_values, f"{context}: Column {column_index} order mismatch. Expected {expected_values}, got {actual_values}"def format_timestamp(dt: datetime) -> str:@@ -602,28 +547,21 @@ def format_timestamp(dt: datetime) -> str:return f"{base_str}Z"-def assert_identical_query_response(- response1: requests.Response, response2: requests.Response-) -> None:+def assert_identical_query_response(response1: requests.Response, response2: requests.Response) -> None:"""Assert that two query responses are identical in status and data."""assert response1.status_code == response2.status_code, "Status codes do not match"if response1.status_code == HTTPStatus.OK:- assert (- response1.json()["status"] == response2.json()["status"]- ), "Response statuses do not match"- assert (- response1.json()["data"]["data"]["results"]- == response2.json()["data"]["data"]["results"]- ), "Response data do not match"+ assert response1.json()["status"] == response2.json()["status"], "Response statuses do not match"+ assert response1.json()["data"]["data"]["results"] == response2.json()["data"]["data"]["results"], "Response data do not match"-def generate_logs_with_corrupt_metadata() -> List[Logs]:+def generate_logs_with_corrupt_metadata() -> list[Logs]:"""Specifically, entries with 'id', 'timestamp', 'severity_text', 'severity_number' and 'body' fields in metadata"""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)return [Logs(@@ -714,7 +652,7 @@ def generate_logs_with_corrupt_metadata() -> List[Logs]:]-def generate_traces_with_corrupt_metadata() -> List[Traces]:+def generate_traces_with_corrupt_metadata() -> list[Traces]:"""Specifically, entries with 'id', 'timestamp', 'trace_id' and 'duration_nano' fields in metadata"""@@ -725,7 +663,7 @@ def generate_traces_with_corrupt_metadata() -> List[Traces]:topic_service_trace_id = TraceIdGenerator.trace_id()topic_service_span_id = TraceIdGenerator.span_id()- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)return [Traces(diff --git a/tests/fixtures/reuse.py b/tests/fixtures/reuse.pyindex 8dde545546..eb02b34c06 100644--- a/tests/fixtures/reuse.py+++ b/tests/fixtures/reuse.py@@ -1,4 +1,5 @@-from typing import Callable, TypeVar+from collections.abc import Callable+from typing import TypeVarimport pytest@@ -95,8 +96,6 @@ def wrap( # pylint: disable=too-many-arguments,too-many-positional-argumentsrequest.addfinalizer(finalizer)if reuse(request):- pytestconfig.cache.set(- key, resource.__cache__() if hasattr(resource, "__cache__") else resource- )+ pytestconfig.cache.set(key, resource.__cache__() if hasattr(resource, "__cache__") else resource)return resourcediff --git a/tests/fixtures/seeder.py b/tests/fixtures/seeder.pyindex e949ef7485..d3224a5ec2 100644--- a/tests/fixtures/seeder.py+++ b/tests/fixtures/seeder.py@@ -32,21 +32,11 @@ def seeder()container = DockerContainer("signoz-tests-seeder:latest")- container.with_env(- "CH_HOST", clickhouse.container.container_configs["8123"].address- )- container.with_env(- "CH_PORT", str(clickhouse.container.container_configs["8123"].port)- )- container.with_env(- "CH_USER", clickhouse.env["SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_USERNAME"]- )- container.with_env(- "CH_PASSWORD", clickhouse.env["SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_PASSWORD"]- )- container.with_env(- "CH_CLUSTER", clickhouse.env["SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER"]- )+ container.with_env("CH_HOST", clickhouse.container.container_configs["8123"].address)+ container.with_env("CH_PORT", str(clickhouse.container.container_configs["8123"].port))+ container.with_env("CH_USER", clickhouse.env["SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_USERNAME"])+ container.with_env("CH_PASSWORD", clickhouse.env["SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_PASSWORD"])+ container.with_env("CH_CLUSTER", clickhouse.env["SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER"])container.with_exposed_ports(8080)container.with_network(network=network)container.start()@@ -71,9 +61,7 @@ def seeder("8080": types.TestContainerUrlConfig("http", host, host_port),},container_configs={- "8080": types.TestContainerUrlConfig(- "http", container.get_wrapped_container().name, 8080- ),+ "8080": types.TestContainerUrlConfig("http", container.get_wrapped_container().name, 8080),},)@@ -92,9 +80,7 @@ def seeder(request,pytestconfig,"seeder",- empty=lambda: types.TestContainerDocker(- id="", host_configs={}, container_configs={}- ),+ empty=lambda: types.TestContainerDocker(id="", host_configs={}, container_configs={}),create=create,delete=delete,restore=restore,diff --git a/tests/fixtures/serviceaccount.py b/tests/fixtures/serviceaccount.pyindex 9a21bd6691..18b676446a 100644--- a/tests/fixtures/serviceaccount.py+++ b/tests/fixtures/serviceaccount.py@@ -26,9 +26,7 @@ def find_role_by_name(signoz: types.SigNoz, token: str, name: str) -> str:return role["id"]-def create_service_account(- signoz: types.SigNoz, token: str, name: str, role: str = "signoz-viewer"-) -> str:+def create_service_account(signoz: types.SigNoz, token: str, name: str, role: str = "signoz-viewer") -> str:"""Create a service account, assign a role, and return its ID."""resp = requests.post(signoz.self.host_configs["8080"].get(SERVICE_ACCOUNT_BASE),@@ -41,9 +39,7 @@ def create_service_account(role_id = find_role_by_name(signoz, token, role)role_resp = requests.post(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"),json={"id": role_id},headers={"Authorization": f"Bearer {token}"},timeout=5,@@ -53,16 +49,12 @@ def create_service_account(return service_account_id-def create_service_account_with_key(- signoz: types.SigNoz, token: str, name: str, role: str = "signoz-admin"-) -> tuple:+def create_service_account_with_key(signoz: types.SigNoz, token: str, name: str, role: str = "signoz-admin") -> tuple:"""Create a service account with an API key and return (service_account_id, api_key)."""service_account_id = create_service_account(signoz, token, name, role)key_resp = requests.post(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"),json={"name": "auth-key", "expiresAt": 0},headers={"Authorization": f"Bearer {token}"},timeout=5,@@ -73,14 +65,10 @@ def create_service_account_with_key(return service_account_id, api_key-def delete_service_account(- signoz: types.SigNoz, token: str, service_account_id: str-) -> None:+def delete_service_account(signoz: types.SigNoz, token: str, service_account_id: str) -> None:"""Soft-delete a service account."""resp = requests.delete(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -95,8 +83,4 @@ def find_service_account_by_name(signoz: types.SigNoz, token: str, name: str) ->timeout=5,)assert list_resp.status_code == HTTPStatus.OK, list_resp.text- return next(- service_account- for service_account in list_resp.json()["data"]- if service_account["name"] == name- )+ return next(service_account for service_account in list_resp.json()["data"] if service_account["name"] == name)diff --git a/tests/fixtures/signoz.py b/tests/fixtures/signoz.pyindex 3f23dbac91..fe5394b943 100644--- a/tests/fixtures/signoz.py+++ b/tests/fixtures/signoz.py@@ -2,7 +2,6 @@ import platformimport timefrom http import HTTPStatusfrom os import path-from typing import Optionalimport dockerimport docker.errors@@ -26,7 +25,7 @@ def create_signoz(request: pytest.FixtureRequest,pytestconfig: pytest.Config,cache_key: str = "signoz",- env_overrides: Optional[dict] = None,+ env_overrides: dict | None = None,) -> types.SigNoz:"""Factory function for creating a SigNoz container.diff --git a/tests/fixtures/sqlite.py b/tests/fixtures/sqlite.pyindex adf6470f24..23ac6cedc9 100644--- a/tests/fixtures/sqlite.py+++ b/tests/fixtures/sqlite.py@@ -1,5 +1,6 @@from collections import namedtuple-from typing import Any, Generator+from collections.abc import Generator+from typing import Anyimport pytestfrom sqlalchemy import create_engine, sql@@ -11,7 +12,7 @@ ConnectionTuple = namedtuple("ConnectionTuple", "connection config")@pytest.fixture(name="sqlite", scope="package")def sqlite(- tmpfs: Generator[types.LegacyPath, Any, None],+ tmpfs: Generator[types.LegacyPath, Any],request: pytest.FixtureRequest,pytestconfig: pytest.Config,) -> types.TestContainerSQL:@@ -69,9 +70,7 @@ def sqlite(pytestconfig,"sqlite",lambda: types.TestContainerSQL(- container=types.TestContainerDocker(- id="", host_configs={}, container_configs={}- ),+ container=types.TestContainerDocker(id="", host_configs={}, container_configs={}),conn=None,env={},),diff --git a/tests/fixtures/traces.py b/tests/fixtures/traces.pyindex e7939824a0..567c12891a 100644--- a/tests/fixtures/traces.py+++ b/tests/fixtures/traces.py@@ -4,8 +4,9 @@ import jsonimport secretsimport uuidfrom abc import ABC+from collections.abc import Callable, Generatorfrom enum import Enum-from typing import Any, Callable, Generator, List, Optional+from typing import Anyfrom urllib.parse import urlparseimport numpy as np@@ -65,9 +66,7 @@ class TracesResource(ABC):fingerprint: str,seen_at_ts_bucket_start: np.int64,) -> None:- self.labels = json.dumps(- labels, separators=(",", ":")- ) # clickhouse treats {"a": "b"} differently from {"a":"b"}. In the first case it is not able to run json functions+ self.labels = json.dumps(labels, separators=(",", ":")) # clickhouse treats {"a": "b"} differently from {"a":"b"}. In the first case it is not able to run json functionsself.fingerprint = fingerprintself.seen_at_ts_bucket_start = seen_at_ts_bucket_start@@ -81,18 +80,14 @@ class TracesResourceOrAttributeKeys(ABC):tag_type: stris_column: bool- def __init__(- self, name: str, datatype: str, tag_type: str, is_column: bool = False- ) -> None:+ def __init__(self, name: str, datatype: str, tag_type: str, is_column: bool = False) -> None:self.name = nameself.datatype = datatypeself.tag_type = tag_typeself.is_column = is_columndef np_arr(self) -> np.array:- return np.array(- [self.name, self.tag_type, self.datatype, self.is_column], dtype=object- )+ return np.array([self.name, self.tag_type, self.datatype, self.is_column], dtype=object)class TracesTagAttributes(ABC):@@ -109,7 +104,7 @@ class TracesTagAttributes(ABC):tag_key: str,tag_type: str,tag_data_type: str,- string_value: Optional[str],+ string_value: str | None,number_value: np.float64,) -> None:self.unix_milli = np.int64(int(timestamp.timestamp() * 1e3))@@ -148,9 +143,7 @@ class TracesEvent(ABC):self.attribute_map = attribute_mapdef np_arr(self) -> np.array:- return np.array(- [self.name, self.time_unix_nano, json.dumps(self.attribute_map)]- )+ return np.array([self.name, self.time_unix_nano, json.dumps(self.attribute_map)])class TracesErrorEvent(ABC):@@ -243,7 +236,7 @@ class Traces(ABC):attributes_number: dict[str, np.float64]attributes_bool: dict[str, bool]resources_string: dict[str, str]- events: List[str]+ events: list[str]links: strresponse_status_code: strexternal_http_url: str@@ -256,16 +249,16 @@ class Traces(ABC):has_error: boolis_remote: str- resource: List[TracesResource]- tag_attributes: List[TracesTagAttributes]- resource_keys: List[TracesResourceOrAttributeKeys]- attribute_keys: List[TracesResourceOrAttributeKeys]- span_attributes: List[TracesSpanAttribute]- error_events: List[TracesErrorEvent]+ resource: list[TracesResource]+ tag_attributes: list[TracesTagAttributes]+ resource_keys: list[TracesResourceOrAttributeKeys]+ attribute_keys: list[TracesResourceOrAttributeKeys]+ span_attributes: list[TracesSpanAttribute]+ error_events: list[TracesErrorEvent]def __init__(self,- timestamp: Optional[datetime.datetime] = None,+ timestamp: datetime.datetime | None = None,duration: datetime.timedelta = datetime.timedelta(seconds=1),trace_id: str = "",span_id: str = "",@@ -276,8 +269,8 @@ class Traces(ABC):status_message: str = "",resources: dict[str, Any] = {},attributes: dict[str, Any] = {},- events: List[TracesEvent] = [],- links: List[TracesLink] = [],+ events: list[TracesEvent] = [],+ links: list[TracesLink] = [],trace_state: str = "",flags: np.uint32 = 0,) -> None:@@ -344,11 +337,7 @@ class Traces(ABC):number_value=None,))- self.resource_keys.append(- TracesResourceOrAttributeKeys(- name=k, datatype="string", tag_type="resource"- )- )+ self.resource_keys.append(TracesResourceOrAttributeKeys(name=k, datatype="string", tag_type="resource"))self.span_attributes.append(TracesSpanAttribute(key=k,@@ -359,9 +348,7 @@ class Traces(ABC):)# Calculate resource fingerprint- self.resource_fingerprint = LogsOrTracesFingerprint(- self.resources_string- ).calculate()+ self.resource_fingerprint = LogsOrTracesFingerprint(self.resources_string).calculate()# Process attributes by type and populate custom fieldsself.attribute_string = {}@@ -384,11 +371,7 @@ class Traces(ABC):number_value=None,))- self.attribute_keys.append(- TracesResourceOrAttributeKeys(- name=k, datatype="bool", tag_type="tag"- )- )+ self.attribute_keys.append(TracesResourceOrAttributeKeys(name=k, datatype="bool", tag_type="tag"))self.span_attributes.append(TracesSpanAttribute(key=k,@@ -409,11 +392,7 @@ class Traces(ABC):number_value=np.float64(v),))- self.attribute_keys.append(- TracesResourceOrAttributeKeys(- name=k, datatype="float64", tag_type="tag"- )- )+ self.attribute_keys.append(TracesResourceOrAttributeKeys(name=k, datatype="float64", tag_type="tag"))self.span_attributes.append(TracesSpanAttribute(key=k,@@ -434,11 +413,7 @@ class Traces(ABC):number_value=None,))- self.attribute_keys.append(- TracesResourceOrAttributeKeys(- name=k, datatype="string", tag_type="tag"- )- )+ self.attribute_keys.append(TracesResourceOrAttributeKeys(name=k, datatype="string", tag_type="tag"))self.span_attributes.append(TracesSpanAttribute(key=k,@@ -451,9 +426,7 @@ class Traces(ABC):# Process events and derive error eventsself.events = []for event in events:- self.events.append(- json.dumps([event.name, event.time_unix_nano, event.attribute_map])- )+ self.events.append(json.dumps([event.name, event.time_unix_nano, event.attribute_map]))# Create error events for exception events (following Go exporter logic)if event.name == "exception":@@ -475,9 +448,7 @@ class Traces(ABC):),)- self.links = json.dumps(- [link.__dict__() for link in links_copy], separators=(",", ":")- )+ self.links = json.dumps([link.__dict__() for link in links_copy], separators=(",", ":"))# Initialize resourceself.resource = []@@ -541,9 +512,7 @@ class Traces(ABC):except Exception: # pylint: disable=broad-exception-caughtself.external_http_url = str_valueself.http_url = str_value- elif (- key in ["http.method", "http.request.method"] and self.kind == 3- ): # SPAN_KIND_CLIENT+ elif key in ["http.method", "http.request.method"] and self.kind == 3: # SPAN_KIND_CLIENTself.external_http_method = str_valueself.http_method = str_valueelif key in ["http.url", "url.full"] and self.kind != 3:@@ -621,12 +590,8 @@ class Traces(ABC):timestamp = parse_timestamp(data["timestamp"])duration = parse_duration(data.get("duration", "PT1S"))- kind = TracesKind.from_value(- data.get("kind", TracesKind.SPAN_KIND_INTERNAL.value)- )- status_code = TracesStatusCode.from_value(- data.get("status_code", TracesStatusCode.STATUS_CODE_UNSET.value)- )+ kind = TracesKind.from_value(data.get("kind", TracesKind.SPAN_KIND_INTERNAL.value))+ status_code = TracesStatusCode.from_value(data.get("status_code", TracesStatusCode.STATUS_CODE_UNSET.value))return cls(timestamp=timestamp,@@ -648,12 +613,12 @@ class Traces(ABC):def load_from_file(cls,file_path: str,- base_time: Optional[datetime.datetime] = None,- ) -> List["Traces"]:+ base_time: datetime.datetime | None = None,+ ) -> list["Traces"]:"""Load traces from a JSONL file."""data_list = []- with open(file_path, "r", encoding="utf-8") as f:+ with open(file_path, encoding="utf-8") as f:for line in f:line = line.strip()if not line:@@ -689,7 +654,7 @@ class Traces(ABC):return traces-def insert_traces_to_clickhouse(conn, traces: List[Traces]) -> None:+def insert_traces_to_clickhouse(conn, traces: list[Traces]) -> None:"""Insert traces into ClickHouse tables following the same logic as the Go exporter.Handles insertion into:@@ -703,7 +668,7 @@ def insert_traces_to_clickhouse(conn, traces: List[Traces]) -> None:exact insert path used by the pytest fixtures. `conn` is aclickhouse-connect Client."""- resources: List[TracesResource] = []+ resources: list[TracesResource] = []for trace in traces:resources.extend(trace.resource)@@ -714,7 +679,7 @@ def insert_traces_to_clickhouse(conn, traces: List[Traces]) -> None:data=[resource.np_arr() for resource in resources],)- tag_attributes: List[TracesTagAttributes] = []+ tag_attributes: list[TracesTagAttributes] = []for trace in traces:tag_attributes.extend(trace.tag_attributes)@@ -725,8 +690,8 @@ def insert_traces_to_clickhouse(conn, traces: List[Traces]) -> None:data=[tag_attribute.np_arr() for tag_attribute in tag_attributes],)- attribute_keys: List[TracesResourceOrAttributeKeys] = []- resource_keys: List[TracesResourceOrAttributeKeys] = []+ attribute_keys: list[TracesResourceOrAttributeKeys] = []+ resource_keys: list[TracesResourceOrAttributeKeys] = []for trace in traces:attribute_keys.extend(trace.attribute_keys)resource_keys.extend(trace.resource_keys)@@ -785,7 +750,7 @@ def insert_traces_to_clickhouse(conn, traces: List[Traces]) -> None:data=[trace.np_arr() for trace in traces],)- error_events: List[TracesErrorEvent] = []+ error_events: list[TracesErrorEvent] = []for trace in traces:error_events.extend(trace.error_events)@@ -816,8 +781,8 @@ def truncate_traces_tables(conn, cluster: str) -> None:@pytest.fixture(name="insert_traces", scope="function")def insert_traces(clickhouse: types.TestContainerClickhouse,-) -> Generator[Callable[[List[Traces]], None], Any, None]:- def _insert_traces(traces: List[Traces]) -> None:+) -> Generator[Callable[[list[Traces]], None], Any]:+ def _insert_traces(traces: list[Traces]) -> None:insert_traces_to_clickhouse(clickhouse.conn, traces)yield _insert_traces@@ -846,11 +811,7 @@ def remove_traces_ttl_and_storage_settings(signoz: types.SigNoz):for table in tables:try:- signoz.telemetrystore.conn.query(- f"ALTER TABLE signoz_traces.{table} ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}' REMOVE TTL"- )- signoz.telemetrystore.conn.query(- f"ALTER TABLE signoz_traces.{table} ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}' RESET SETTING storage_policy;"- )+ signoz.telemetrystore.conn.query(f"ALTER TABLE signoz_traces.{table} ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}' REMOVE TTL")+ signoz.telemetrystore.conn.query(f"ALTER TABLE signoz_traces.{table} ON CLUSTER '{signoz.telemetrystore.env['SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_CLUSTER']}' RESET SETTING storage_policy;")except Exception as e: # pylint: disable=broad-exception-caughtprint(f"ttl and storage policy reset failed for {table}: {e}")diff --git a/tests/fixtures/types.py b/tests/fixtures/types.pyindex d9e8fd980a..120d46ced9 100644--- a/tests/fixtures/types.py+++ b/tests/fixtures/types.py@@ -1,5 +1,5 @@from dataclasses import dataclass-from typing import Dict, List, Literal+from typing import Literalfrom urllib.parse import urljoinimport clickhouse_connect@@ -39,33 +39,22 @@ class TestContainerUrlConfig:class TestContainerDocker:__test__ = Falseid: str- host_configs: Dict[str, TestContainerUrlConfig]- container_configs: Dict[str, TestContainerUrlConfig]+ host_configs: dict[str, TestContainerUrlConfig]+ container_configs: dict[str, TestContainerUrlConfig]@staticmethoddef from_cache(cache: dict) -> "TestContainerDocker":return TestContainerDocker(id=cache["id"],- host_configs={- port: TestContainerUrlConfig(**config)- for port, config in cache["host_configs"].items()- },- container_configs={- port: TestContainerUrlConfig(**config)- for port, config in cache["container_configs"].items()- },+ host_configs={port: TestContainerUrlConfig(**config) for port, config in cache["host_configs"].items()},+ container_configs={port: TestContainerUrlConfig(**config) for port, config in cache["container_configs"].items()},)def __cache__(self) -> dict:return {"id": self.id,- "host_configs": {- port: config.__cache__() for port, config in self.host_configs.items()- },- "container_configs": {- port: config.__cache__()- for port, config in self.container_configs.items()- },+ "host_configs": {port: config.__cache__() for port, config in self.host_configs.items()},+ "container_configs": {port: config.__cache__() for port, config in self.container_configs.items()},}def __log__(self) -> str:@@ -77,7 +66,7 @@ class TestContainerSQL:__test__ = Falsecontainer: TestContainerDockerconn: Engine- env: Dict[str, str]+ env: dict[str, str]def __cache__(self) -> dict:return {@@ -94,7 +83,7 @@ class TestContainerClickhouse:__test__ = Falsecontainer: TestContainerDockerconn: clickhouse_connect.driver.client.Client- env: Dict[str, str]+ env: dict[str, str]def __cache__(self) -> dict:return {@@ -187,7 +176,7 @@ class AlertExpectation:# whether we expect any alerts to be firedshould_alert: bool# alerts that we expect to be fired- expected_alerts: List[FiringAlert]+ expected_alerts: list[FiringAlert]# seconds to wait for the alerts to be fired, if no# alerts are fired in the expected time, the test will failwait_time_seconds: int@@ -200,6 +189,6 @@ class AlertTestCase:# path to the rule file in testdata directoryrule_path: str# list of alert data that will be inserted into the database- alert_data: List[AlertData]+ alert_data: list[AlertData]# list of alert expectations for the test casealert_expectation: AlertExpectationdiff --git a/tests/fixtures/zookeeper.py b/tests/fixtures/zookeeper.pyindex 4ce9de8439..9066d30baf 100644--- a/tests/fixtures/zookeeper.py+++ b/tests/fixtures/zookeeper.py@@ -10,9 +10,7 @@ logger = setup_logger(__name__)@pytest.fixture(name="zookeeper", scope="package")-def zookeeper(- network: Network, request: pytest.FixtureRequest, pytestconfig: pytest.Config-) -> types.TestContainerDocker:+def zookeeper(network: Network, request: pytest.FixtureRequest, pytestconfig: pytest.Config) -> types.TestContainerDocker:"""Package-scoped fixture for Zookeeper TestContainer."""diff --git a/tests/integration/bootstrap/setup.py b/tests/integration/bootstrap/setup.pyindex 8727a528ba..838553da9f 100644--- a/tests/integration/bootstrap/setup.py+++ b/tests/integration/bootstrap/setup.py@@ -10,14 +10,10 @@ logger = logging.getLogger(__name__)def test_setup(signoz: types.SigNoz) -> None:- response = requests.get(- signoz.self.host_configs["8080"].get("/api/v1/version"), timeout=2- )+ response = requests.get(signoz.self.host_configs["8080"].get("/api/v1/version"), timeout=2)assert response.status_code == HTTPStatus.OK- healthz = requests.get(- signoz.self.host_configs["8080"].get("/api/v2/healthz"), timeout=2- )+ healthz = requests.get(signoz.self.host_configs["8080"].get("/api/v2/healthz"), timeout=2)logger.info("healthz response: %s", healthz.json())assert healthz.status_code == HTTPStatus.OK@@ -35,9 +31,7 @@ def test_telemetry_databases_exist(signoz: types.SigNoz) -> None:]for db_name in required_databases:- assert any(- db_name in str(db) for db in databases- ), f"Database {db_name} not found"+ assert any(db_name in str(db) for db in databases), f"Database {db_name} not found"def test_teardown(diff --git a/tests/integration/tests/alerts/01_notification_channel.py b/tests/integration/tests/alerts/01_notification_channel.pyindex e7d5f93ddc..7755d4407c 100644--- a/tests/integration/tests/alerts/01_notification_channel.py+++ b/tests/integration/tests/alerts/01_notification_channel.py@@ -1,7 +1,7 @@import timeimport uuid+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callable, Listimport requestsfrom wiremock.client import HttpMethods, Mapping, MappingRequest, MappingResponse@@ -17,7 +17,7 @@ def test_webhook_notification_channel(signoz: types.SigNoz,get_token: Callable[[str, str], str],notification_channel: types.TestContainerDocker,- make_http_mocks: Callable[[types.TestContainerDocker, List[Mapping]], None],+ make_http_mocks: Callable[[types.TestContainerDocker, list[Mapping]], None],create_webhook_notification_channel: Callable[[str, str, dict, bool], str],) -> None:"""@@ -28,9 +28,7 @@ def test_webhook_notification_channel(# Prepare notification channel name and webhook endpointnotification_channel_name = f"notification-channel-{uuid.uuid4()}"webhook_endpoint_path = f"/alert/{notification_channel_name}"- webhook_endpoint = notification_channel.container_configs["8080"].get(- webhook_endpoint_path- )+ webhook_endpoint = notification_channel.container_configs["8080"].get(webhook_endpoint_path)# register the mock endpoint in notification channelmake_http_mocks(@@ -81,10 +79,7 @@ def test_webhook_notification_channel(headers={"Authorization": f"Bearer {admin_token}"},timeout=5,)- assert response.status_code == HTTPStatus.NO_CONTENT, (- f"Failed to create notification channel: {response.text}"- f"Status code: {response.status_code}"- )+ assert response.status_code == HTTPStatus.NO_CONTENT, f"Failed to create notification channel: {response.text}Status code: {response.status_code}"# Verify that the alert was sent to the notification channelresponse = requests.post(@@ -92,11 +87,6 @@ def test_webhook_notification_channel(json={"method": "POST", "url": webhook_endpoint_path},timeout=5,)- assert response.status_code == HTTPStatus.OK, (- f"Failed to get test notification count: {response.text}"- f"Status code: {response.status_code}"- )+ assert response.status_code == HTTPStatus.OK, f"Failed to get test notification count: {response.text}Status code: {response.status_code}"# Verify that the test notification was sent to the notification channel- assert (- response.json()["count"] == 1- ), f"Expected 1 test notification, got {response.json()['count']}"+ assert response.json()["count"] == 1, f"Expected 1 test notification, got {response.json()['count']}"diff --git a/tests/integration/tests/alerts/02_basic_alert_conditions.py b/tests/integration/tests/alerts/02_basic_alert_conditions.pyindex 40617d64c8..dfb9bc87af 100644--- a/tests/integration/tests/alerts/02_basic_alert_conditions.py+++ b/tests/integration/tests/alerts/02_basic_alert_conditions.py@@ -1,7 +1,7 @@import jsonimport uuid-from datetime import datetime, timedelta, timezone-from typing import Callable, List+from collections.abc import Callable+from datetime import UTC, datetime, timedeltaimport pytestfrom wiremock.client import HttpMethods, Mapping, MappingRequest, MappingResponse@@ -583,28 +583,24 @@ logger = setup_logger(__name__)@pytest.mark.parametrize("alert_test_case",- TEST_RULES_MATCH_TYPE_AND_COMPARE_OPERATORS- + TEST_RULES_UNIT_CONVERSION- + TEST_RULES_MISCELLANEOUS,+ TEST_RULES_MATCH_TYPE_AND_COMPARE_OPERATORS + TEST_RULES_UNIT_CONVERSION + TEST_RULES_MISCELLANEOUS,ids=lambda alert_test_case: alert_test_case.name,)def test_basic_alert_rule_conditions(# Notification channel related fixturesnotification_channel: types.TestContainerDocker,- make_http_mocks: Callable[[types.TestContainerDocker, List[Mapping]], None],+ make_http_mocks: Callable[[types.TestContainerDocker, list[Mapping]], None],create_webhook_notification_channel: Callable[[str, str, dict, bool], str],# Alert rule related fixturescreate_alert_rule: Callable[[dict], str],# Alert data insertion related fixtures- insert_alert_data: Callable[[List[types.AlertData], datetime], None],+ insert_alert_data: Callable[[list[types.AlertData], datetime], None],alert_test_case: types.AlertTestCase,):# Prepare notification channel name and webhook endpointnotification_channel_name = str(uuid.uuid4())webhook_endpoint_path = f"/alert/{notification_channel_name}"- notification_url = notification_channel.container_configs["8080"].get(- webhook_endpoint_path- )+ notification_url = notification_channel.container_configs["8080"].get(webhook_endpoint_path)logger.info("notification_url: %s", {"notification_url": notification_url})@@ -642,12 +638,12 @@ def test_basic_alert_rule_conditions(# Insert alert datainsert_alert_data(alert_test_case.alert_data,- base_time=datetime.now(tz=timezone.utc) - timedelta(minutes=5),+ base_time=datetime.now(tz=UTC) - timedelta(minutes=5),)# Create Alert Rulerule_path = get_testdata_file_path(alert_test_case.rule_path)- with open(rule_path, "r", encoding="utf-8") as f:+ with open(rule_path, encoding="utf-8") as f:rule_data = json.loads(f.read())# Update the channel name in the rule dataupdate_rule_channel_name(rule_data, notification_channel_name)diff --git a/tests/integration/tests/auditquerier/01_audit_logs.py b/tests/integration/tests/auditquerier/01_audit_logs.pyindex 533491114c..fac79c736b 100644--- a/tests/integration/tests/auditquerier/01_audit_logs.py+++ b/tests/integration/tests/auditquerier/01_audit_logs.py@@ -1,6 +1,6 @@-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Callable, Listimport pytest@@ -20,10 +20,10 @@ def test_audit_list_all(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_audit_logs: Callable[[List[AuditLog]], None],+ insert_audit_logs: Callable[[list[AuditLog]], None],) -> None:"""List audit events across multiple resource types — verify count, ordering, and fields."""- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)insert_audit_logs([AuditLog(@@ -85,7 +85,7 @@ def test_audit_list_all()token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)response = make_query_request(signoz,token,@@ -134,8 +134,7 @@ def test_audit_list_all(id="filter_by_outcome_failure",),pytest.param(- "signoz.audit.resource.kind = 'dashboard'"- " AND signoz.audit.resource.id = 'dash-001'",+ "signoz.audit.resource.kind = 'dashboard' AND signoz.audit.resource.id = 'dash-001'",3,{"dashboard.deleted", "dashboard.updated", "dashboard.created"},id="filter_by_resource_kind_and_id",@@ -147,8 +146,7 @@ def test_audit_list_all(id="filter_by_principal_type",),pytest.param(- "signoz.audit.resource.kind = 'dashboard'"- " AND signoz.audit.action = 'delete'",+ "signoz.audit.resource.kind = 'dashboard' AND signoz.audit.action = 'delete'",1,{"dashboard.deleted"},id="filter_by_resource_kind_and_action",@@ -159,13 +157,13 @@ def test_audit_filter(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_audit_logs: Callable[[List[AuditLog]], None],+ insert_audit_logs: Callable[[list[AuditLog]], None],filter_expression: str,expected_count: int,expected_event_names: set,) -> None:"""Parametrized audit filter tests covering the documented query patterns."""- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)insert_audit_logs([AuditLog(@@ -265,7 +263,7 @@ def test_audit_filter()token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)response = make_query_request(signoz,token,@@ -296,10 +294,10 @@ def test_audit_scalar_count_failures(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_audit_logs: Callable[[List[AuditLog]], None],+ insert_audit_logs: Callable[[list[AuditLog]], None],) -> None:"""Alert query — count multiple failures from different principals."""- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)insert_audit_logs([AuditLog(@@ -356,7 +354,7 @@ def test_audit_scalar_count_failures()token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)response = make_query_request(signoz,token,@@ -386,10 +384,10 @@ def test_audit_does_not_leak_into_logs(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_audit_logs: Callable[[List[AuditLog]], None],+ insert_audit_logs: Callable[[list[AuditLog]], None],) -> None:"""A single audit event in signoz_audit must not appear in regular log queries."""- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)insert_audit_logs([AuditLog(@@ -412,7 +410,7 @@ def test_audit_does_not_leak_into_logs()token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)response = make_query_request(signoz,token,@@ -432,10 +430,5 @@ def test_audit_does_not_leak_into_logs(rows = response.json()["data"]["data"]["results"][0].get("rows") or []- audit_bodies = [- row["data"]["body"]- for row in rows- if "signoz.audit"- in row["data"].get("attributes_string", {}).get("signoz.audit.action", "")- ]+ audit_bodies = [row["data"]["body"] for row in rows if "signoz.audit" in row["data"].get("attributes_string", {}).get("signoz.audit.action", "")]assert len(audit_bodies) == 0diff --git a/tests/integration/tests/callbackauthn/01_domain.py b/tests/integration/tests/callbackauthn/01_domain.pyindex b71bfe0cdd..cba3c47998 100644--- a/tests/integration/tests/callbackauthn/01_domain.py+++ b/tests/integration/tests/callbackauthn/01_domain.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requestsdiff --git a/tests/integration/tests/callbackauthn/02_saml.py b/tests/integration/tests/callbackauthn/02_saml.pyindex 9ed7afd411..45049f21d6 100644--- a/tests/integration/tests/callbackauthn/02_saml.py+++ b/tests/integration/tests/callbackauthn/02_saml.py@@ -1,6 +1,7 @@import uuid+from collections.abc import Callablefrom http import HTTPStatus-from typing import Any, Callable, Dict, List+from typing import Anyimport requestsfrom selenium import webdriver@@ -24,7 +25,7 @@ from fixtures.types import Operation, SigNoz, TestContainerDocker, TestContainerdef test_apply_license(signoz: SigNoz,create_user_admin: Operation, # pylint: disable=unused-argument- make_http_mocks: Callable[[TestContainerDocker, List[Mapping]], None],+ make_http_mocks: Callable[[TestContainerDocker, list[Mapping]], None],get_token: Callable[[str, str], str],) -> None:add_license(signoz, make_http_mocks, get_token)@@ -34,7 +35,7 @@ def test_create_auth_domain(signoz: SigNoz,idp: TestContainerIDP, # pylint: disable=unused-argumentcreate_saml_client: Callable[[str, str], None],- update_saml_client_attributes: Callable[[str, Dict[str, Any]], None],+ update_saml_client_attributes: Callable[[str, dict[str, Any]], None],get_saml_settings: Callable[[], dict],create_user_admin: Callable[[], None], # pylint: disable=unused-argumentget_token: Callable[[str, str], str],@@ -81,11 +82,7 @@ def test_create_auth_domain(if len(response.json()["data"]) > 0:found_domain = next(- (- domain- for domain in response.json()["data"]- if domain["name"] == "saml.integration.test"- ),+ (domain for domain in response.json()["data"] if domain["name"] == "saml.integration.test"),None,)@@ -132,9 +129,7 @@ def test_saml_authn(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)# Assert that the user was created in signoz.- found_user = find_user_with_roles_by_email(- signoz, admin_token, "[email protected]"- )+ found_user = find_user_with_roles_by_email(signoz, admin_token, "[email protected]")assert_user_has_role(found_user, "signoz-viewer")@@ -156,10 +151,7 @@ def test_idp_initiated_saml_authn(assert len(session_context["orgs"]) == 1assert len(session_context["orgs"][0]["authNSupport"]["callback"]) == 1- idp_initiated_login_url = (- idp.container.host_configs["6060"].base()- + "/realms/master/protocol/saml/clients/idp-initiated-saml-test"- )+ idp_initiated_login_url = idp.container.host_configs["6060"].base() + "/realms/master/protocol/saml/clients/idp-initiated-saml-test"driver.get(idp_initiated_login_url)idp_login("[email protected]", "password")@@ -167,9 +159,7 @@ def test_idp_initiated_saml_authn(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)# Assert that the user was created in signoz.- found_user = find_user_with_roles_by_email(- signoz, admin_token, "[email protected]"- )+ found_user = find_user_with_roles_by_email(signoz, admin_token, "[email protected]")assert_user_has_role(found_user, "signoz-viewer")@@ -221,7 +211,7 @@ def test_saml_role_mapping_single_group_admin(signoz: SigNoz,idp: TestContainerIDP, # pylint: disable=unused-argumentdriver: webdriver.Chrome,- create_user_idp_with_groups: Callable[[str, str, bool, List[str]], None],+ create_user_idp_with_groups: Callable[[str, str, bool, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -232,9 +222,7 @@ def test_saml_role_mapping_single_group_admin(email = "[email protected]"create_user_idp_with_groups(email, "password", True, ["signoz-admins"])- perform_saml_login(- signoz, driver, get_session_context, idp_login, email, "password"- )+ perform_saml_login(signoz, driver, get_session_context, idp_login, email, "password")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -246,7 +234,7 @@ def test_saml_role_mapping_single_group_editor(signoz: SigNoz,idp: TestContainerIDP, # pylint: disable=unused-argumentdriver: webdriver.Chrome,- create_user_idp_with_groups: Callable[[str, str, bool, List[str]], None],+ create_user_idp_with_groups: Callable[[str, str, bool, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -257,9 +245,7 @@ def test_saml_role_mapping_single_group_editor(email = "[email protected]"create_user_idp_with_groups(email, "password", True, ["signoz-editors"])- perform_saml_login(- signoz, driver, get_session_context, idp_login, email, "password"- )+ perform_saml_login(signoz, driver, get_session_context, idp_login, email, "password")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -271,7 +257,7 @@ def test_saml_role_mapping_multiple_groups_highest_wins(signoz: SigNoz,idp: TestContainerIDP, # pylint: disable=unused-argumentdriver: webdriver.Chrome,- create_user_idp_with_groups: Callable[[str, str, bool, List[str]], None],+ create_user_idp_with_groups: Callable[[str, str, bool, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -282,13 +268,9 @@ def test_saml_role_mapping_multiple_groups_highest_wins(Expected: User gets EDITOR (highest of VIEWER and EDITOR)."""email = f"multi-group-user-{uuid.uuid4().hex[:8]}@saml.integration.test"- create_user_idp_with_groups(- email, "password", True, ["signoz-viewers", "signoz-editors"]- )+ create_user_idp_with_groups(email, "password", True, ["signoz-viewers", "signoz-editors"])- perform_saml_login(- signoz, driver, get_session_context, idp_login, email, "password"- )+ perform_saml_login(signoz, driver, get_session_context, idp_login, email, "password")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -300,7 +282,7 @@ def test_saml_role_mapping_explicit_viewer_group(signoz: SigNoz,idp: TestContainerIDP, # pylint: disable=unused-argumentdriver: webdriver.Chrome,- create_user_idp_with_groups: Callable[[str, str, bool, List[str]], None],+ create_user_idp_with_groups: Callable[[str, str, bool, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -312,9 +294,7 @@ def test_saml_role_mapping_explicit_viewer_group(email = "[email protected]"create_user_idp_with_groups(email, "password", True, ["signoz-viewers"])- perform_saml_login(- signoz, driver, get_session_context, idp_login, email, "password"- )+ perform_saml_login(signoz, driver, get_session_context, idp_login, email, "password")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -326,7 +306,7 @@ def test_saml_role_mapping_unmapped_group_uses_default(signoz: SigNoz,idp: TestContainerIDP, # pylint: disable=unused-argumentdriver: webdriver.Chrome,- create_user_idp_with_groups: Callable[[str, str, bool, List[str]], None],+ create_user_idp_with_groups: Callable[[str, str, bool, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -337,9 +317,7 @@ def test_saml_role_mapping_unmapped_group_uses_default(email = "[email protected]"create_user_idp_with_groups(email, "password", True, ["some-other-group"])- perform_saml_login(- signoz, driver, get_session_context, idp_login, email, "password"- )+ perform_saml_login(signoz, driver, get_session_context, idp_login, email, "password")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -396,7 +374,7 @@ def test_saml_role_mapping_role_claim_takes_precedence(signoz: SigNoz,idp: TestContainerIDP, # pylint: disable=unused-argumentdriver: webdriver.Chrome,- create_user_idp_with_role: Callable[[str, str, bool, str, List[str]], None],+ create_user_idp_with_role: Callable[[str, str, bool, str, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -413,9 +391,7 @@ def test_saml_role_mapping_role_claim_takes_precedence(email = "[email protected]"create_user_idp_with_role(email, "password", True, "ADMIN", ["signoz-editors"])- perform_saml_login(- signoz, driver, get_session_context, idp_login, email, "password"- )+ perform_saml_login(signoz, driver, get_session_context, idp_login, email, "password")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -427,7 +403,7 @@ def test_saml_role_mapping_invalid_role_claim_fallback(signoz: SigNoz,idp: TestContainerIDP, # pylint: disable=unused-argumentdriver: webdriver.Chrome,- create_user_idp_with_role: Callable[[str, str, bool, str, List[str]], None],+ create_user_idp_with_role: Callable[[str, str, bool, str, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -442,9 +418,7 @@ def test_saml_role_mapping_invalid_role_claim_fallback(email = "[email protected]"create_user_idp_with_role(email, "password", True, "SUPERADMIN", ["signoz-editors"])- perform_saml_login(- signoz, driver, get_session_context, idp_login, email, "password"- )+ perform_saml_login(signoz, driver, get_session_context, idp_login, email, "password")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -456,7 +430,7 @@ def test_saml_role_mapping_case_insensitive(signoz: SigNoz,idp: TestContainerIDP, # pylint: disable=unused-argumentdriver: webdriver.Chrome,- create_user_idp_with_role: Callable[[str, str, bool, str, List[str]], None],+ create_user_idp_with_role: Callable[[str, str, bool, str, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -471,9 +445,7 @@ def test_saml_role_mapping_case_insensitive(email = "[email protected]"create_user_idp_with_role(email, "password", True, "admin", [])- perform_saml_login(- signoz, driver, get_session_context, idp_login, email, "password"- )+ perform_saml_login(signoz, driver, get_session_context, idp_login, email, "password")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -495,16 +467,12 @@ def test_saml_name_mapping(create_user_idp(email, "password", True, "Jane", "Smith")- perform_saml_login(- signoz, driver, get_session_context, idp_login, email, "password"- )+ perform_saml_login(signoz, driver, get_session_context, idp_login, email, "password")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)- assert (- found_user["displayName"] == "Jane"- ) # We are only mapping the first name here+ assert found_user["displayName"] == "Jane" # We are only mapping the first name hereassert_user_has_role(found_user, "signoz-viewer")@@ -522,9 +490,7 @@ def test_saml_empty_name_fallback(create_user_idp(email, "password", True)- perform_saml_login(- signoz, driver, get_session_context, idp_login, email, "password"- )+ perform_saml_login(signoz, driver, get_session_context, idp_login, email, "password")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -536,7 +502,7 @@ def test_saml_sso_login_activates_pending_invite_user(signoz: SigNoz,idp: TestContainerIDP, # pylint: disable=unused-argumentdriver: webdriver.Chrome,- create_user_idp_with_groups: Callable[[str, str, bool, List[str]], None],+ create_user_idp_with_groups: Callable[[str, str, bool, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -564,9 +530,7 @@ def test_saml_sso_login_activates_pending_invite_user(# Create IDP user in viewer group — SSO would normally assign VIEWERcreate_user_idp_with_groups(email, "password", True, ["signoz-viewers"])- perform_saml_login(- signoz, driver, get_session_context, idp_login, email, "password"- )+ perform_saml_login(signoz, driver, get_session_context, idp_login, email, "password")# User should be active with VIEWER role from SSOfound_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -622,9 +586,7 @@ def test_saml_sso_deleted_user_gets_new_user_on_login(# --- Step 3: SSO login should be blocked for deleted user ---create_user_idp(email, "password", True, "SAML", "Lifecycle")- perform_saml_login(- signoz, driver, get_session_context, idp_login, email, "password"- )+ perform_saml_login(signoz, driver, get_session_context, idp_login, email, "password")# Verify user is NOT reactivated — check via DB since API may filter deleted userswith signoz.sqlstore.conn.connect() as conn:@@ -658,6 +620,4 @@ def test_saml_sso_deleted_user_gets_new_user_on_login()assert response.status_code == HTTPStatus.OKfound_user = response.json()["data"]- assert_user_has_role(- found_user, "signoz-viewer"- ) # default role from SSO domain config+ assert_user_has_role(found_user, "signoz-viewer") # default role from SSO domain configdiff --git a/tests/integration/tests/callbackauthn/03_oidc.py b/tests/integration/tests/callbackauthn/03_oidc.pyindex 33d6b60cca..f01bbff6bc 100644--- a/tests/integration/tests/callbackauthn/03_oidc.py+++ b/tests/integration/tests/callbackauthn/03_oidc.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callable, Listfrom urllib.parse import urlparseimport requests@@ -23,7 +23,7 @@ from fixtures.types import Operation, SigNoz, TestContainerDocker, TestContainerdef test_apply_license(signoz: SigNoz,create_user_admin: Operation, # pylint: disable=unused-argument- make_http_mocks: Callable[[TestContainerDocker, List[Mapping]], None],+ make_http_mocks: Callable[[TestContainerDocker, list[Mapping]], None],get_token: Callable[[str, str], str],) -> None:"""@@ -64,7 +64,7 @@ def test_create_auth_domain("clientId": settings["client_id"],"clientSecret": settings["client_secret"],# Change the hostname of the issuer to the internal resolvable hostname of the idp- "issuer": f"{idp.container.container_configs['6060'].get(urlparse(settings["issuer"]).path)}",+ "issuer": f"{idp.container.container_configs['6060'].get(urlparse(settings['issuer']).path)}","issuerAlias": settings["issuer"],"getUserInfo": True,},@@ -103,9 +103,7 @@ def test_oidc_authn(# change the url to the external resolvable hostname of the idpparsed_url = urlparse(url)- actual_url = (- f"{idp.container.host_configs['6060'].get(parsed_url.path)}?{parsed_url.query}"- )+ actual_url = f"{idp.container.host_configs['6060'].get(parsed_url.path)}?{parsed_url.query}"driver.get(actual_url)idp_login("[email protected]", "password123")@@ -113,9 +111,7 @@ def test_oidc_authn(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)# Assert that the user was created in signoz.- found_user = find_user_with_roles_by_email(- signoz, admin_token, "[email protected]"- )+ found_user = find_user_with_roles_by_email(signoz, admin_token, "[email protected]")assert_user_has_role(found_user, "signoz-viewer")@@ -174,7 +170,7 @@ def test_oidc_role_mapping_single_group_admin(signoz: SigNoz,idp: TestContainerIDP,driver: webdriver.Chrome,- create_user_idp_with_groups: Callable[[str, str, bool, List[str]], None],+ create_user_idp_with_groups: Callable[[str, str, bool, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -185,9 +181,7 @@ def test_oidc_role_mapping_single_group_admin(email = "[email protected]"create_user_idp_with_groups(email, "password123", True, ["signoz-admins"])- perform_oidc_login(- signoz, idp, driver, get_session_context, idp_login, email, "password123"- )+ perform_oidc_login(signoz, idp, driver, get_session_context, idp_login, email, "password123")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -199,7 +193,7 @@ def test_oidc_role_mapping_single_group_editor(signoz: SigNoz,idp: TestContainerIDP,driver: webdriver.Chrome,- create_user_idp_with_groups: Callable[[str, str, bool, List[str]], None],+ create_user_idp_with_groups: Callable[[str, str, bool, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -210,9 +204,7 @@ def test_oidc_role_mapping_single_group_editor(email = "[email protected]"create_user_idp_with_groups(email, "password123", True, ["signoz-editors"])- perform_oidc_login(- signoz, idp, driver, get_session_context, idp_login, email, "password123"- )+ perform_oidc_login(signoz, idp, driver, get_session_context, idp_login, email, "password123")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -224,7 +216,7 @@ def test_oidc_role_mapping_multiple_groups_highest_wins(signoz: SigNoz,idp: TestContainerIDP,driver: webdriver.Chrome,- create_user_idp_with_groups: Callable[[str, str, bool, List[str]], None],+ create_user_idp_with_groups: Callable[[str, str, bool, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -235,13 +227,9 @@ def test_oidc_role_mapping_multiple_groups_highest_wins(Expected: User gets ADMIN (highest of the two)."""email = "[email protected]"- create_user_idp_with_groups(- email, "password123", True, ["signoz-viewers", "signoz-admins"]- )+ create_user_idp_with_groups(email, "password123", True, ["signoz-viewers", "signoz-admins"])- perform_oidc_login(- signoz, idp, driver, get_session_context, idp_login, email, "password123"- )+ perform_oidc_login(signoz, idp, driver, get_session_context, idp_login, email, "password123")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -253,7 +241,7 @@ def test_oidc_role_mapping_explicit_viewer_group(signoz: SigNoz,idp: TestContainerIDP,driver: webdriver.Chrome,- create_user_idp_with_groups: Callable[[str, str, bool, List[str]], None],+ create_user_idp_with_groups: Callable[[str, str, bool, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -265,9 +253,7 @@ def test_oidc_role_mapping_explicit_viewer_group(email = "[email protected]"create_user_idp_with_groups(email, "password123", True, ["signoz-viewers"])- perform_oidc_login(- signoz, idp, driver, get_session_context, idp_login, email, "password123"- )+ perform_oidc_login(signoz, idp, driver, get_session_context, idp_login, email, "password123")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -279,7 +265,7 @@ def test_oidc_role_mapping_unmapped_group_uses_default(signoz: SigNoz,idp: TestContainerIDP,driver: webdriver.Chrome,- create_user_idp_with_groups: Callable[[str, str, bool, List[str]], None],+ create_user_idp_with_groups: Callable[[str, str, bool, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -290,9 +276,7 @@ def test_oidc_role_mapping_unmapped_group_uses_default(email = "[email protected]"create_user_idp_with_groups(email, "password123", True, ["some-other-group"])- perform_oidc_login(- signoz, idp, driver, get_session_context, idp_login, email, "password123"- )+ perform_oidc_login(signoz, idp, driver, get_session_context, idp_login, email, "password123")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -354,7 +338,7 @@ def test_oidc_role_mapping_role_claim_takes_precedence(signoz: SigNoz,idp: TestContainerIDP,driver: webdriver.Chrome,- create_user_idp_with_role: Callable[[str, str, bool, str, List[str]], None],+ create_user_idp_with_role: Callable[[str, str, bool, str, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -369,9 +353,7 @@ def test_oidc_role_mapping_role_claim_takes_precedence(email = "[email protected]"create_user_idp_with_role(email, "password123", True, "ADMIN", ["signoz-editors"])- perform_oidc_login(- signoz, idp, driver, get_session_context, idp_login, email, "password123"- )+ perform_oidc_login(signoz, idp, driver, get_session_context, idp_login, email, "password123")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -383,7 +365,7 @@ def test_oidc_role_mapping_invalid_role_claim_fallback(signoz: SigNoz,idp: TestContainerIDP,driver: webdriver.Chrome,- create_user_idp_with_role: Callable[[str, str, bool, str, List[str]], None],+ create_user_idp_with_role: Callable[[str, str, bool, str, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -396,13 +378,9 @@ def test_oidc_role_mapping_invalid_role_claim_fallback("""setup_user_profile()email = "[email protected]"- create_user_idp_with_role(- email, "password123", True, "SUPERADMIN", ["signoz-editors"]- )+ create_user_idp_with_role(email, "password123", True, "SUPERADMIN", ["signoz-editors"])- perform_oidc_login(- signoz, idp, driver, get_session_context, idp_login, email, "password123"- )+ perform_oidc_login(signoz, idp, driver, get_session_context, idp_login, email, "password123")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -414,7 +392,7 @@ def test_oidc_role_mapping_case_insensitive(signoz: SigNoz,idp: TestContainerIDP,driver: webdriver.Chrome,- create_user_idp_with_role: Callable[[str, str, bool, str, List[str]], None],+ create_user_idp_with_role: Callable[[str, str, bool, str, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -429,9 +407,7 @@ def test_oidc_role_mapping_case_insensitive(email = "[email protected]"create_user_idp_with_role(email, "password123", True, "editor", [])- perform_oidc_login(- signoz, idp, driver, get_session_context, idp_login, email, "password123"- )+ perform_oidc_login(signoz, idp, driver, get_session_context, idp_login, email, "password123")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -454,9 +430,7 @@ def test_oidc_name_mapping(# Create user with explicit first/last namecreate_user_idp(email, "password123", True, first_name="John", last_name="Doe")- perform_oidc_login(- signoz, idp, driver, get_session_context, idp_login, email, "password123"- )+ perform_oidc_login(signoz, idp, driver, get_session_context, idp_login, email, "password123")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -481,9 +455,7 @@ def test_oidc_empty_name_uses_fallback(# Create user without first/last namecreate_user_idp(email, "password123", True)- perform_oidc_login(- signoz, idp, driver, get_session_context, idp_login, email, "password123"- )+ perform_oidc_login(signoz, idp, driver, get_session_context, idp_login, email, "password123")admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)found_user = find_user_with_roles_by_email(signoz, admin_token, email)@@ -497,7 +469,7 @@ def test_oidc_sso_login_activates_pending_invite_user(signoz: SigNoz,idp: TestContainerIDP,driver: webdriver.Chrome,- create_user_idp_with_groups: Callable[[str, str, bool, List[str]], None],+ create_user_idp_with_groups: Callable[[str, str, bool, list[str]], None],idp_login: Callable[[str, str], None],get_token: Callable[[str, str], str],get_session_context: Callable[[str], str],@@ -525,9 +497,7 @@ def test_oidc_sso_login_activates_pending_invite_user(# Create IDP user in viewer group — SSO would normally assign VIEWERcreate_user_idp_with_groups(email, "password123", True, ["signoz-viewers"])- perform_oidc_login(- signoz, idp, driver, get_session_context, idp_login, email, "password123"- )+ perform_oidc_login(signoz, idp, driver, get_session_context, idp_login, email, "password123")# User should be active with VIEWER role from SSO, not ADMIN from invitefound_user = find_user_with_roles_by_email(signoz, admin_token, email)diff --git a/tests/integration/tests/cloudintegrations/01_deprecated_get_connection_params.py b/tests/integration/tests/cloudintegrations/01_deprecated_get_connection_params.pyindex 66ce3fe355..9233e83d95 100644--- a/tests/integration/tests/cloudintegrations/01_deprecated_get_connection_params.py+++ b/tests/integration/tests/cloudintegrations/01_deprecated_get_connection_params.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requestsfrom wiremock.client import (@@ -39,11 +39,7 @@ def test_generate_connection_params(request=MappingRequest(method=HttpMethods.GET,url="/v2/deployments/me",- headers={- "X-Signoz-Cloud-Api-Key": {- WireMockMatchers.EQUAL_TO: "secret-key"- }- },+ headers={"X-Signoz-Cloud-Api-Key": {WireMockMatchers.EQUAL_TO: "secret-key"}},),response=MappingResponse(status=200,@@ -85,12 +81,8 @@ def test_generate_connection_params("tags": ["integration", "aws"],},headers={- "X-Signoz-Cloud-Api-Key": {- WireMockMatchers.EQUAL_TO: "secret-key"- },- "X-Consumer-Username": {- WireMockMatchers.EQUAL_TO: "lid:00000000-0000-0000-0000-000000000000"- },+ "X-Signoz-Cloud-Api-Key": {WireMockMatchers.EQUAL_TO: "secret-key"},+ "X-Consumer-Username": {WireMockMatchers.EQUAL_TO: "lid:00000000-0000-0000-0000-000000000000"},"X-Consumer-Groups": {WireMockMatchers.EQUAL_TO: "ns:default"},},),@@ -119,9 +111,7 @@ def test_generate_connection_params()# Assert successful response- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}: {response.text}"# Parse response JSONresponse_data = response.json()@@ -138,27 +128,19 @@ def test_generate_connection_params(]for field in expected_fields:- assert (- field in response_data["data"]- ), f"Response data should contain '{field}' field"+ assert field in response_data["data"], f"Response data should contain '{field}' field"# Assert values for the returned fieldsdata = response_data["data"]# ingestion_key is created by the mocked gateway and should match- assert (- data["ingestion_key"] == "test-ingestion-key-123456"- ), "ingestion_key should match the mocked ingestion key"+ assert data["ingestion_key"] == "test-ingestion-key-123456", "ingestion_key should match the mocked ingestion key"# ingestion_url should be https://ingest.test.signoz.cloud based on the mocked deployment DNS- assert (- data["ingestion_url"] == "https://ingest.test.signoz.cloud"- ), "ingestion_url should be https://ingest.test.signoz.cloud"+ assert data["ingestion_url"] == "https://ingest.test.signoz.cloud", "ingestion_url should be https://ingest.test.signoz.cloud"# signoz_api_url should be https://test-deployment.test.signoz.cloud based on the mocked deployment name and DNS- assert (- data["signoz_api_url"] == "https://test-deployment.test.signoz.cloud"- ), "signoz_api_url should be https://test-deployment.test.signoz.cloud"+ assert data["signoz_api_url"] == "https://test-deployment.test.signoz.cloud", "signoz_api_url should be https://test-deployment.test.signoz.cloud"# Verify the integration service account was created with viewer role, not admin.# This guards against a privilege-escalation regression where the SA was@@ -178,18 +160,12 @@ def test_generate_connection_params(# Fetch roles via the dedicated roles endpointroles_resp = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/service_accounts/{integration_sa['id']}/roles"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/service_accounts/{integration_sa['id']}/roles"),headers={"Authorization": f"Bearer {admin_token}"},timeout=5,)assert roles_resp.status_code == HTTPStatus.OK, roles_resp.textrole_names = [role["name"] for role in roles_resp.json()["data"]]- assert (- "signoz-viewer" in role_names- ), f"Integration SA should have VIEWER role, got {role_names}"- assert (- "signoz-admin" not in role_names- ), f"Integration SA must NOT have ADMIN role, got {role_names}"+ assert "signoz-viewer" in role_names, f"Integration SA should have VIEWER role, got {role_names}"+ assert "signoz-admin" not in role_names, f"Integration SA must NOT have ADMIN role, got {role_names}"diff --git a/tests/integration/tests/cloudintegrations/02_deprecated_generate_connection_url.py b/tests/integration/tests/cloudintegrations/02_deprecated_generate_connection_url.pyindex 1ae5f306ad..c03fe87723 100644--- a/tests/integration/tests/cloudintegrations/02_deprecated_generate_connection_url.py+++ b/tests/integration/tests/cloudintegrations/02_deprecated_generate_connection_url.py@@ -1,6 +1,6 @@import uuid+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -22,9 +22,7 @@ def test_generate_connection_url(# Get authentication token for admin useradmin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)cloud_provider = "aws"- endpoint = (- f"/api/v1/cloud-integrations/{cloud_provider}/accounts/generate-connection-url"- )+ endpoint = f"/api/v1/cloud-integrations/{cloud_provider}/accounts/generate-connection-url"# Prepare request payloadrequest_payload = {@@ -47,9 +45,7 @@ def test_generate_connection_url()# Assert successful response- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}: {response.text}"# Parse response JSONresponse_data = response.json()@@ -61,9 +57,7 @@ def test_generate_connection_url(expected_fields = ["account_id", "connection_url"]for field in expected_fields:- assert (- field in response_data["data"]- ), f"Response data should contain '{field}' field"+ assert field in response_data["data"], f"Response data should contain '{field}' field"data = response_data["data"]@@ -74,14 +68,10 @@ def test_generate_connection_url(connection_url = data["connection_url"]# Verify it's an AWS CloudFormation URL- assert (- "console.aws.amazon.com/cloudformation" in connection_url- ), "connection_url should be an AWS CloudFormation URL"+ assert "console.aws.amazon.com/cloudformation" in connection_url, "connection_url should be an AWS CloudFormation URL"# Verify region is included- assert (- "region=us-east-1" in connection_url- ), "connection_url should contain the specified region"+ assert "region=us-east-1" in connection_url, "connection_url should contain the specified region"# Verify required parameters are in the URLrequired_params = [@@ -96,9 +86,7 @@ def test_generate_connection_url(]for param in required_params:- assert (- param in connection_url- ), f"connection_url should contain parameter: {param}"+ assert param in connection_url, f"connection_url should contain parameter: {param}"def test_generate_connection_url_unsupported_provider(@@ -112,9 +100,7 @@ def test_generate_connection_url_unsupported_provider(# Try with GCP (unsupported)cloud_provider = "gcp"- endpoint = (- f"/api/v1/cloud-integrations/{cloud_provider}/accounts/generate-connection-url"- )+ endpoint = f"/api/v1/cloud-integrations/{cloud_provider}/accounts/generate-connection-url"request_payload = {"account_config": {"regions": ["us-central1"]},@@ -135,15 +121,11 @@ def test_generate_connection_url_unsupported_provider()# Should return Bad Request for unsupported provider- assert (- response.status_code == HTTPStatus.BAD_REQUEST- ), f"Expected 400 for unsupported provider, got {response.status_code}"+ assert response.status_code == HTTPStatus.BAD_REQUEST, f"Expected 400 for unsupported provider, got {response.status_code}"response_data = response.json()assert "error" in response_data, "Response should contain 'error' field"- assert (- "unsupported cloud provider" in response_data["error"].lower()- ), "Error message should indicate unsupported provider"+ assert "unsupported cloud provider" in response_data["error"].lower(), "Error message should indicate unsupported provider"def test_duplicate_cloud_account_checkins(@@ -168,18 +150,10 @@ def test_duplicate_cloud_account_checkins(assert account1_id != account2_id, "Two accounts should have different internal IDs"# First check-in succeeds: account1 claims cloud_account_id- response = deprecated_simulate_agent_checkin(- signoz, admin_token, cloud_provider, account1_id, same_cloud_account_id- )- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200 for first check-in, got {response.status_code}: {response.text}"+ response = deprecated_simulate_agent_checkin(signoz, admin_token, cloud_provider, account1_id, same_cloud_account_id)+ assert response.status_code == HTTPStatus.OK, f"Expected 200 for first check-in, got {response.status_code}: {response.text}"## Second check-in should fail: account2 tries to use the same cloud_account_id- response = deprecated_simulate_agent_checkin(- signoz, admin_token, cloud_provider, account2_id, same_cloud_account_id- )+ response = deprecated_simulate_agent_checkin(signoz, admin_token, cloud_provider, account2_id, same_cloud_account_id)- assert (- response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR- ), f"Expected 500 for duplicate cloud_account_id, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR, f"Expected 500 for duplicate cloud_account_id, got {response.status_code}: {response.text}"diff --git a/tests/integration/tests/cloudintegrations/03_deprecated_accounts.py b/tests/integration/tests/cloudintegrations/03_deprecated_accounts.pyindex a763ba8d06..327d1ff60f 100644--- a/tests/integration/tests/cloudintegrations/03_deprecated_accounts.py+++ b/tests/integration/tests/cloudintegrations/03_deprecated_accounts.py@@ -1,6 +1,6 @@import uuid+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -28,17 +28,13 @@ def test_list_connected_accounts_empty(timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"response_data = response.json()data = response_data.get("data", response_data)assert "accounts" in data, "Response should contain 'accounts' field"assert isinstance(data["accounts"], list), "Accounts should be a list"- assert (- len(data["accounts"]) == 0- ), "Accounts list should be empty when no accounts are connected"+ assert len(data["accounts"]) == 0, "Accounts list should be empty when no accounts are connected"def test_list_connected_accounts_with_account(@@ -52,19 +48,13 @@ def test_list_connected_accounts_with_account(# Create a test accountcloud_provider = "aws"- account_data = deprecated_create_cloud_integration_account(- admin_token, cloud_provider- )+ account_data = deprecated_create_cloud_integration_account(admin_token, cloud_provider)account_id = account_data["account_id"]# Simulate agent check-in to mark as connectedcloud_account_id = str(uuid.uuid4())- response = deprecated_simulate_agent_checkin(- signoz, admin_token, cloud_provider, account_id, cloud_account_id- )- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"+ response = deprecated_simulate_agent_checkin(signoz, admin_token, cloud_provider, account_id, cloud_account_id)+ assert response.status_code == HTTPStatus.OK, f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"# List accountsendpoint = f"/api/v1/cloud-integrations/{cloud_provider}/accounts"@@ -74,9 +64,7 @@ def test_list_connected_accounts_with_account(timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"response_data = response.json()data = response_data.get("data", response_data)@@ -101,24 +89,18 @@ def test_get_account_status(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)# Create a test account (no check-in needed for status check)cloud_provider = "aws"- account_data = deprecated_create_cloud_integration_account(- admin_token, cloud_provider- )+ account_data = deprecated_create_cloud_integration_account(admin_token, cloud_provider)account_id = account_data["account_id"]# Get account status- endpoint = (- f"/api/v1/cloud-integrations/{cloud_provider}/accounts/{account_id}/status"- )+ endpoint = f"/api/v1/cloud-integrations/{cloud_provider}/accounts/{account_id}/status"response = requests.get(signoz.self.host_configs["8080"].get(endpoint),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"response_data = response.json()data = response_data.get("data", response_data)@@ -138,18 +120,14 @@ def test_get_account_status_not_found(cloud_provider = "aws"fake_account_id = "00000000-0000-0000-0000-000000000000"- endpoint = (- f"/api/v1/cloud-integrations/{cloud_provider}/accounts/{fake_account_id}/status"- )+ endpoint = f"/api/v1/cloud-integrations/{cloud_provider}/accounts/{fake_account_id}/status"response = requests.get(signoz.self.host_configs["8080"].get(endpoint),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.NOT_FOUND- ), f"Expected 404, got {response.status_code}"+ assert response.status_code == HTTPStatus.NOT_FOUND, f"Expected 404, got {response.status_code}"def test_update_account_config(@@ -163,24 +141,16 @@ def test_update_account_config(# Create a test accountcloud_provider = "aws"- account_data = deprecated_create_cloud_integration_account(- admin_token, cloud_provider- )+ account_data = deprecated_create_cloud_integration_account(admin_token, cloud_provider)account_id = account_data["account_id"]# Simulate agent check-in to mark as connectedcloud_account_id = str(uuid.uuid4())- response = deprecated_simulate_agent_checkin(- signoz, admin_token, cloud_provider, account_id, cloud_account_id- )- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"+ response = deprecated_simulate_agent_checkin(signoz, admin_token, cloud_provider, account_id, cloud_account_id)+ assert response.status_code == HTTPStatus.OK, f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"# Update account configuration- endpoint = (- f"/api/v1/cloud-integrations/{cloud_provider}/accounts/{account_id}/config"- )+ endpoint = f"/api/v1/cloud-integrations/{cloud_provider}/accounts/{account_id}/config"updated_config = {"config": {"regions": ["us-east-1", "us-west-2", "eu-west-1"]}}@@ -191,9 +161,7 @@ def test_update_account_config(timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"response_data = response.json()data = response_data.get("data", response_data)@@ -233,24 +201,16 @@ def test_disconnect_account(# Create a test accountcloud_provider = "aws"- account_data = deprecated_create_cloud_integration_account(- admin_token, cloud_provider- )+ account_data = deprecated_create_cloud_integration_account(admin_token, cloud_provider)account_id = account_data["account_id"]# Simulate agent check-in to mark as connectedcloud_account_id = str(uuid.uuid4())- response = deprecated_simulate_agent_checkin(- signoz, admin_token, cloud_provider, account_id, cloud_account_id- )- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"+ response = deprecated_simulate_agent_checkin(signoz, admin_token, cloud_provider, account_id, cloud_account_id)+ assert response.status_code == HTTPStatus.OK, f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"# Disconnect the account- endpoint = (- f"/api/v1/cloud-integrations/{cloud_provider}/accounts/{account_id}/disconnect"- )+ endpoint = f"/api/v1/cloud-integrations/{cloud_provider}/accounts/{account_id}/disconnect"response = requests.post(signoz.self.host_configs["8080"].get(endpoint),@@ -258,9 +218,7 @@ def test_disconnect_account(timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"# Verify our specific account is no longer in the connected listlist_endpoint = f"/api/v1/cloud-integrations/{cloud_provider}/accounts"@@ -274,12 +232,8 @@ def test_disconnect_account(list_data = list_response_data.get("data", list_response_data)# Check that our specific account is not in the list- disconnected_account = next(- (a for a in list_data["accounts"] if a["id"] == account_id), None- )- assert (- disconnected_account is None- ), f"Account {account_id} should be removed from connected accounts"+ disconnected_account = next((a for a in list_data["accounts"] if a["id"] == account_id), None)+ assert disconnected_account is None, f"Account {account_id} should be removed from connected accounts"def test_disconnect_account_not_found(@@ -301,9 +255,7 @@ def test_disconnect_account_not_found(timeout=10,)- assert (- response.status_code == HTTPStatus.NOT_FOUND- ), f"Expected 404, got {response.status_code}"+ assert response.status_code == HTTPStatus.NOT_FOUND, f"Expected 404, got {response.status_code}"def test_list_accounts_unsupported_provider(@@ -324,6 +276,4 @@ def test_list_accounts_unsupported_provider(timeout=10,)- assert (- response.status_code == HTTPStatus.BAD_REQUEST- ), f"Expected 400, got {response.status_code}"+ assert response.status_code == HTTPStatus.BAD_REQUEST, f"Expected 400, got {response.status_code}"diff --git a/tests/integration/tests/cloudintegrations/04_deprecated_services.py b/tests/integration/tests/cloudintegrations/04_deprecated_services.pyindex f0f26adb36..cbc694005a 100644--- a/tests/integration/tests/cloudintegrations/04_deprecated_services.py+++ b/tests/integration/tests/cloudintegrations/04_deprecated_services.py@@ -1,6 +1,6 @@import uuid+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -29,9 +29,7 @@ def test_list_services_without_account(timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"response_data = response.json()data = response_data.get("data", response_data)@@ -57,18 +55,12 @@ def test_list_services_with_account(# Create a test account and do check-incloud_provider = "aws"- account_data = deprecated_create_cloud_integration_account(- admin_token, cloud_provider- )+ account_data = deprecated_create_cloud_integration_account(admin_token, cloud_provider)account_id = account_data["account_id"]cloud_account_id = str(uuid.uuid4())- response = deprecated_simulate_agent_checkin(- signoz, admin_token, cloud_provider, account_id, cloud_account_id- )- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"+ response = deprecated_simulate_agent_checkin(signoz, admin_token, cloud_provider, account_id, cloud_account_id)+ assert response.status_code == HTTPStatus.OK, f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"# List services for the accountendpoint = f"/api/v1/cloud-integrations/{cloud_provider}/services?cloud_account_id={cloud_account_id}"@@ -79,9 +71,7 @@ def test_list_services_with_account(timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"response_data = response.json()data = response_data.get("data", response_data)@@ -125,9 +115,7 @@ def test_get_service_details_without_account(timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"response_data = response.json()data = response_data.get("data", response_data)@@ -153,18 +141,12 @@ def test_get_service_details_with_account(# Create a test account and do check-incloud_provider = "aws"- account_data = deprecated_create_cloud_integration_account(- admin_token, cloud_provider- )+ account_data = deprecated_create_cloud_integration_account(admin_token, cloud_provider)account_id = account_data["account_id"]cloud_account_id = str(uuid.uuid4())- response = deprecated_simulate_agent_checkin(- signoz, admin_token, cloud_provider, account_id, cloud_account_id- )- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"+ response = deprecated_simulate_agent_checkin(signoz, admin_token, cloud_provider, account_id, cloud_account_id)+ assert response.status_code == HTTPStatus.OK, f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"# Get list of services firstlist_endpoint = f"/api/v1/cloud-integrations/{cloud_provider}/services"@@ -186,9 +168,7 @@ def test_get_service_details_with_account(timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"response_data = response.json()data = response_data.get("data", response_data)@@ -221,9 +201,7 @@ def test_get_service_details_invalid_service(timeout=10,)- assert (- response.status_code == HTTPStatus.NOT_FOUND- ), f"Expected 404, got {response.status_code}"+ assert response.status_code == HTTPStatus.NOT_FOUND, f"Expected 404, got {response.status_code}"def test_list_services_unsupported_provider(@@ -243,9 +221,7 @@ def test_list_services_unsupported_provider(timeout=10,)- assert (- response.status_code == HTTPStatus.BAD_REQUEST- ), f"Expected 400, got {response.status_code}"+ assert response.status_code == HTTPStatus.BAD_REQUEST, f"Expected 400, got {response.status_code}"def test_update_service_config(@@ -259,18 +235,12 @@ def test_update_service_config(# Create a test account and do check-incloud_provider = "aws"- account_data = deprecated_create_cloud_integration_account(- admin_token, cloud_provider- )+ account_data = deprecated_create_cloud_integration_account(admin_token, cloud_provider)account_id = account_data["account_id"]cloud_account_id = str(uuid.uuid4())- response = deprecated_simulate_agent_checkin(- signoz, admin_token, cloud_provider, account_id, cloud_account_id- )- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"+ response = deprecated_simulate_agent_checkin(signoz, admin_token, cloud_provider, account_id, cloud_account_id)+ assert response.status_code == HTTPStatus.OK, f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"# Get list of services to pick a valid service IDlist_endpoint = f"/api/v1/cloud-integrations/{cloud_provider}/services"@@ -285,9 +255,7 @@ def test_update_service_config(service_id = list_data["services"][0]["id"]# Update service configuration- endpoint = (- f"/api/v1/cloud-integrations/{cloud_provider}/services/{service_id}/config"- )+ endpoint = f"/api/v1/cloud-integrations/{cloud_provider}/services/{service_id}/config"config_payload = {"cloud_account_id": cloud_account_id,@@ -304,9 +272,7 @@ def test_update_service_config(timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"response_data = response.json()data = response_data.get("data", response_data)@@ -341,9 +307,7 @@ def test_update_service_config_without_account(service_id = list_data["services"][0]["id"]# Try to update config with non-existent account- endpoint = (- f"/api/v1/cloud-integrations/{cloud_provider}/services/{service_id}/config"- )+ endpoint = f"/api/v1/cloud-integrations/{cloud_provider}/services/{service_id}/config"fake_cloud_account_id = str(uuid.uuid4())config_payload = {@@ -360,9 +324,7 @@ def test_update_service_config_without_account(timeout=10,)- assert (- response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR- ), f"Expected 500 for non-existent account, got {response.status_code}"+ assert response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR, f"Expected 500 for non-existent account, got {response.status_code}"def test_update_service_config_invalid_service(@@ -376,24 +338,16 @@ def test_update_service_config_invalid_service(# Create a test account and do check-incloud_provider = "aws"- account_data = deprecated_create_cloud_integration_account(- admin_token, cloud_provider- )+ account_data = deprecated_create_cloud_integration_account(admin_token, cloud_provider)account_id = account_data["account_id"]cloud_account_id = str(uuid.uuid4())- response = deprecated_simulate_agent_checkin(- signoz, admin_token, cloud_provider, account_id, cloud_account_id- )- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"+ response = deprecated_simulate_agent_checkin(signoz, admin_token, cloud_provider, account_id, cloud_account_id)+ assert response.status_code == HTTPStatus.OK, f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"# Try to update config for invalid servicefake_service_id = "non-existent-service"- endpoint = (- f"/api/v1/cloud-integrations/{cloud_provider}/services/{fake_service_id}/config"- )+ endpoint = f"/api/v1/cloud-integrations/{cloud_provider}/services/{fake_service_id}/config"config_payload = {"cloud_account_id": cloud_account_id,@@ -409,9 +363,7 @@ def test_update_service_config_invalid_service(timeout=10,)- assert (- response.status_code == HTTPStatus.NOT_FOUND- ), f"Expected 404 for invalid service, got {response.status_code}"+ assert response.status_code == HTTPStatus.NOT_FOUND, f"Expected 404 for invalid service, got {response.status_code}"def test_update_service_config_disable_service(@@ -425,18 +377,12 @@ def test_update_service_config_disable_service(# Create a test account and do check-incloud_provider = "aws"- account_data = deprecated_create_cloud_integration_account(- admin_token, cloud_provider- )+ account_data = deprecated_create_cloud_integration_account(admin_token, cloud_provider)account_id = account_data["account_id"]cloud_account_id = str(uuid.uuid4())- response = deprecated_simulate_agent_checkin(- signoz, admin_token, cloud_provider, account_id, cloud_account_id- )- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"+ response = deprecated_simulate_agent_checkin(signoz, admin_token, cloud_provider, account_id, cloud_account_id)+ assert response.status_code == HTTPStatus.OK, f"Expected 200 for agent check-in, got {response.status_code}: {response.text}"# Get a valid servicelist_endpoint = f"/api/v1/cloud-integrations/{cloud_provider}/services"@@ -450,9 +396,7 @@ def test_update_service_config_disable_service(service_id = list_data["services"][0]["id"]# First enable the service- endpoint = (- f"/api/v1/cloud-integrations/{cloud_provider}/services/{service_id}/config"- )+ endpoint = f"/api/v1/cloud-integrations/{cloud_provider}/services/{service_id}/config"enable_payload = {"cloud_account_id": cloud_account_id,@@ -486,9 +430,7 @@ def test_update_service_config_disable_service(timeout=10,)- assert (- disable_response.status_code == HTTPStatus.OK- ), f"Expected 200, got {disable_response.status_code}"+ assert disable_response.status_code == HTTPStatus.OK, f"Expected 200, got {disable_response.status_code}"response_data = disable_response.json()data = response_data.get("data", response_data)diff --git a/tests/integration/tests/cloudintegrations/05_credentials.py b/tests/integration/tests/cloudintegrations/05_credentials.pyindex 9f2abdc40f..41a9d46633 100644--- a/tests/integration/tests/cloudintegrations/05_credentials.py+++ b/tests/integration/tests/cloudintegrations/05_credentials.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requestsfrom wiremock.client import (@@ -47,17 +47,13 @@ def test_get_credentials_success(timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}: {response.text}"data = response.json()["data"]for field in ("sigNozApiUrl", "sigNozApiKey", "ingestionUrl", "ingestionKey"):assert field in data, f"Response should contain '{field}'"assert isinstance(data[field], str), f"'{field}' should be a string"- assert (- len(data[field]) > 0- ), f"'{field}' should be non-empty when mocks are set up"+ assert len(data[field]) > 0, f"'{field}' should be non-empty when mocks are set up"def test_get_credentials_partial_when_zeus_unavailable(@@ -127,9 +123,7 @@ def test_get_credentials_partial_when_zeus_unavailable(timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200 even without Zeus, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200 even without Zeus, got {response.status_code}: {response.text}"data = response.json()["data"]for field in ("sigNozApiUrl", "sigNozApiKey", "ingestionUrl", "ingestionKey"):@@ -137,9 +131,7 @@ def test_get_credentials_partial_when_zeus_unavailable(assert isinstance(data[field], str), f"'{field}' should be a string"# sigNozApiUrl comes from Zeus, which is unavailable, so it should be empty- assert (- data["sigNozApiUrl"] == ""- ), "sigNozApiUrl should be empty when Zeus is unavailable"+ assert data["sigNozApiUrl"] == "", "sigNozApiUrl should be empty when Zeus is unavailable"def test_get_credentials_unsupported_provider(@@ -151,14 +143,10 @@ def test_get_credentials_unsupported_provider(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)response = requests.get(- signoz.self.host_configs["8080"].get(- "/api/v1/cloud_integrations/gcp/credentials"- ),+ signoz.self.host_configs["8080"].get("/api/v1/cloud_integrations/gcp/credentials"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.BAD_REQUEST- ), f"Expected 400 for unsupported provider, got {response.status_code}"+ assert response.status_code == HTTPStatus.BAD_REQUEST, f"Expected 400 for unsupported provider, got {response.status_code}"assert "error" in response.json(), "Response should contain 'error' field"diff --git a/tests/integration/tests/cloudintegrations/06_create_account.py b/tests/integration/tests/cloudintegrations/06_create_account.pyindex 09b0a40424..2bf88c12a8 100644--- a/tests/integration/tests/cloudintegrations/06_create_account.py+++ b/tests/integration/tests/cloudintegrations/06_create_account.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -39,22 +39,14 @@ def test_create_account(assert "id" in data, "Response data should contain 'id' field"assert len(data["id"]) > 0, "id should be a non-empty UUID string"- assert (- "connectionArtifact" in data- ), "Response data should contain 'connectionArtifact' field"+ assert "connectionArtifact" in data, "Response data should contain 'connectionArtifact' field"artifact = data["connectionArtifact"]assert "aws" in artifact, "connectionArtifact should contain 'aws' field"- assert (- "connectionUrl" in artifact["aws"]- ), "connectionArtifact.aws should contain 'connectionUrl'"+ assert "connectionUrl" in artifact["aws"], "connectionArtifact.aws should contain 'connectionUrl'"connection_url = artifact["aws"]["connectionUrl"]- assert (- "console.aws.amazon.com/cloudformation" in connection_url- ), "connectionUrl should be an AWS CloudFormation URL"- assert (- "region=us-east-1" in connection_url- ), "connectionUrl should contain the deployment region"+ assert "console.aws.amazon.com/cloudformation" in connection_url, "connectionUrl should be an AWS CloudFormation URL"+ assert "region=us-east-1" in connection_url, "connectionUrl should contain the deployment region"def test_create_account_unsupported_provider(@@ -71,9 +63,7 @@ def test_create_account_unsupported_provider(signoz.self.host_configs["8080"].get(endpoint),headers={"Authorization": f"Bearer {admin_token}"},json={- "config": {- "gcp": {"deploymentRegion": "us-central1", "regions": ["us-central1"]}- },+ "config": {"gcp": {"deploymentRegion": "us-central1", "regions": ["us-central1"]}},"credentials": {"sigNozApiURL": "https://test.signoz.cloud","sigNozApiKey": "test-key",@@ -84,9 +74,7 @@ def test_create_account_unsupported_provider(timeout=10,)- assert (- response.status_code == HTTPStatus.BAD_REQUEST- ), f"Expected 400 for unsupported provider, got {response.status_code}"+ assert response.status_code == HTTPStatus.BAD_REQUEST, f"Expected 400 for unsupported provider, got {response.status_code}"response_data = response.json()assert "error" in response_data, "Response should contain 'error' field"diff --git a/tests/integration/tests/cloudintegrations/07_agent_check_in.py b/tests/integration/tests/cloudintegrations/07_agent_check_in.pyindex 8c3a194dd4..7b5e513b5c 100644--- a/tests/integration/tests/cloudintegrations/07_agent_check_in.py+++ b/tests/integration/tests/cloudintegrations/07_agent_check_in.py@@ -1,6 +1,6 @@import uuid+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callablefrom fixtures import typesfrom fixtures.auth import USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD, add_license@@ -31,9 +31,7 @@ def test_agent_check_in("""Test agent check-in with new camelCase fields returns 200 with expected response shape."""admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- account = create_cloud_integration_account(- admin_token, CLOUD_PROVIDER, regions=["us-east-1"]- )+ account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER, regions=["us-east-1"])account_id = account["id"]provider_account_id = str(uuid.uuid4())@@ -46,36 +44,26 @@ def test_agent_check_in(data={"version": "v0.0.8"},)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}: {response.text}"data = response.json()["data"]# New camelCase fieldsassert data["cloudIntegrationId"] == account_id, "cloudIntegrationId should match"- assert (- data["providerAccountId"] == provider_account_id- ), "providerAccountId should match"+ assert data["providerAccountId"] == provider_account_id, "providerAccountId should match"assert "integrationConfig" in data, "Response should contain 'integrationConfig'"assert data["removedAt"] is None, "removedAt should be null for a live account"# Backward-compat snake_case fieldsassert data["account_id"] == account_id, "account_id (compat) should match"- assert (- data["cloud_account_id"] == provider_account_id- ), "cloud_account_id (compat) should match"- assert (- "integration_config" in data- ), "Response should contain 'integration_config' (compat)"+ assert data["cloud_account_id"] == provider_account_id, "cloud_account_id (compat) should match"+ assert "integration_config" in data, "Response should contain 'integration_config' (compat)"assert "removed_at" in data, "Response should contain 'removed_at' (compat)"# integrationConfig should reflect the configured regionsintegration_config = data["integrationConfig"]assert "aws" in integration_config, "integrationConfig should contain 'aws' block"- assert integration_config["aws"]["enabledRegions"] == [- "us-east-1"- ], "enabledRegions should match account config"+ assert integration_config["aws"]["enabledRegions"] == ["us-east-1"], "enabledRegions should match account config"def test_agent_check_in_account_not_found(@@ -87,13 +75,9 @@ def test_agent_check_in_account_not_found(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)fake_id = str(uuid.uuid4())- response = simulate_agent_checkin(- signoz, admin_token, CLOUD_PROVIDER, fake_id, str(uuid.uuid4())- )+ response = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, fake_id, str(uuid.uuid4()))- assert (- response.status_code == HTTPStatus.NOT_FOUND- ), f"Expected 404, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.NOT_FOUND, f"Expected 404, got {response.status_code}: {response.text}"def test_duplicate_cloud_account_checkins(@@ -113,17 +97,9 @@ def test_duplicate_cloud_account_checkins(same_provider_account_id = str(uuid.uuid4())# First check-in: account1 claims the provider account ID- response = simulate_agent_checkin(- signoz, admin_token, CLOUD_PROVIDER, account1["id"], same_provider_account_id- )- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200 for first check-in, got {response.status_code}: {response.text}"+ response = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, account1["id"], same_provider_account_id)+ assert response.status_code == HTTPStatus.OK, f"Expected 200 for first check-in, got {response.status_code}: {response.text}"# Second check-in: account2 tries to claim the same provider account ID → 409- response = simulate_agent_checkin(- signoz, admin_token, CLOUD_PROVIDER, account2["id"], same_provider_account_id- )- assert (- response.status_code == HTTPStatus.CONFLICT- ), f"Expected 409 for duplicate providerAccountId, got {response.status_code}: {response.text}"+ response = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, account2["id"], same_provider_account_id)+ assert response.status_code == HTTPStatus.CONFLICT, f"Expected 409 for duplicate providerAccountId, got {response.status_code}: {response.text}"diff --git a/tests/integration/tests/cloudintegrations/08_accounts.py b/tests/integration/tests/cloudintegrations/08_accounts.pyindex aea8e2da8c..043f9ad4c4 100644--- a/tests/integration/tests/cloudintegrations/08_accounts.py+++ b/tests/integration/tests/cloudintegrations/08_accounts.py@@ -1,6 +1,6 @@import uuid+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -33,23 +33,17 @@ def test_list_accounts_empty(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"data = response.json()["data"]assert "accounts" in data, "Response should contain 'accounts' field"assert isinstance(data["accounts"], list), "accounts should be a list"- assert (- len(data["accounts"]) == 0- ), "accounts list should be empty when no accounts have checked in"+ assert len(data["accounts"]) == 0, "accounts list should be empty when no accounts have checked in"def test_list_accounts_after_checkin(@@ -61,43 +55,27 @@ def test_list_accounts_after_checkin("""List accounts returns an account after it has checked in."""admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- account = create_cloud_integration_account(- admin_token, CLOUD_PROVIDER, regions=["us-east-1"]- )+ account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER, regions=["us-east-1"])account_id = account["id"]provider_account_id = str(uuid.uuid4())- checkin = simulate_agent_checkin(- signoz, admin_token, CLOUD_PROVIDER, account_id, provider_account_id- )+ checkin = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, account_id, provider_account_id)assert checkin.status_code == HTTPStatus.OK, f"Check-in failed: {checkin.text}"response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"data = response.json()["data"]found = next((a for a in data["accounts"] if a["id"] == account_id), None)- assert (- found is not None- ), f"Account {account_id} should appear in list after check-in"- assert (- found["providerAccountId"] == provider_account_id- ), "providerAccountId should match"- assert found["config"]["aws"]["regions"] == [- "us-east-1"- ], "regions should match account config"- assert (- found["agentReport"] is not None- ), "agentReport should be present after check-in"+ assert found is not None, f"Account {account_id} should appear in list after check-in"+ assert found["providerAccountId"] == provider_account_id, "providerAccountId should match"+ assert found["config"]["aws"]["regions"] == ["us-east-1"], "regions should match account config"+ assert found["agentReport"] is not None, "agentReport should be present after check-in"assert found["removedAt"] is None, "removedAt should be null for a live account"@@ -110,22 +88,16 @@ def test_get_account("""Get a specific account by ID returns the account with correct fields."""admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- account = create_cloud_integration_account(- admin_token, CLOUD_PROVIDER, regions=["us-east-1", "eu-west-1"]- )+ account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER, regions=["us-east-1", "eu-west-1"])account_id = account["id"]response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"data = response.json()["data"]assert data["id"] == account_id, "id should match"@@ -145,16 +117,12 @@ def test_get_account_not_found(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{uuid.uuid4()}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{uuid.uuid4()}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.NOT_FOUND- ), f"Expected 404, got {response.status_code}"+ assert response.status_code == HTTPStatus.NOT_FOUND, f"Expected 404, got {response.status_code}"def test_update_account(@@ -166,42 +134,30 @@ def test_update_account("""Update account config and verify the change is persisted via GET."""admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- account = create_cloud_integration_account(- admin_token, CLOUD_PROVIDER, regions=["us-east-1"]- )+ account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER, regions=["us-east-1"])account_id = account["id"]- checkin = simulate_agent_checkin(- signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4())- )+ checkin = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4()))assert checkin.status_code == HTTPStatus.OK, f"Check-in failed: {checkin.text}"updated_regions = ["us-east-1", "us-west-2", "eu-west-1"]response = requests.put(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"),headers={"Authorization": f"Bearer {admin_token}"},json={"config": {"aws": {"regions": updated_regions}}},timeout=10,)- assert (- response.status_code == HTTPStatus.NO_CONTENT- ), f"Expected 204, got {response.status_code}"+ assert response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204, got {response.status_code}"get_response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)assert get_response.status_code == HTTPStatus.OK- assert (- get_response.json()["data"]["config"]["aws"]["regions"] == updated_regions- ), "Regions should reflect the update"+ assert get_response.json()["data"]["config"]["aws"]["regions"] == updated_regions, "Regions should reflect the update"def test_update_account_after_checkin_preserves_connected_status(@@ -219,23 +175,17 @@ def test_update_account_after_checkin_preserves_connected_status(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)# 1. Create account- account = create_cloud_integration_account(- admin_token, CLOUD_PROVIDER, regions=["us-east-1"]- )+ account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER, regions=["us-east-1"])account_id = account["id"]provider_account_id = str(uuid.uuid4())# 2. Agent checks in — sets account_id and last_agent_report- checkin = simulate_agent_checkin(- signoz, admin_token, CLOUD_PROVIDER, account_id, provider_account_id- )+ checkin = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, account_id, provider_account_id)assert checkin.status_code == HTTPStatus.OK, f"Check-in failed: {checkin.text}"# 3. Verify the account appears in the connected listlist_response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)@@ -247,40 +197,26 @@ def test_update_account_after_checkin_preserves_connected_status(# 4. Update account configupdated_regions = ["us-east-1", "us-west-2"]update_response = requests.put(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"),headers={"Authorization": f"Bearer {admin_token}"},json={"config": {"aws": {"regions": updated_regions}}},timeout=10,)- assert (- update_response.status_code == HTTPStatus.NO_CONTENT- ), f"Expected 204, got {update_response.status_code}"+ assert update_response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204, got {update_response.status_code}"# 5. Verify the account still appears in the connected list with correct fieldslist_response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)assert list_response.status_code == HTTPStatus.OKaccounts_after = list_response.json()["data"]["accounts"]found_after = next((a for a in accounts_after if a["id"] == account_id), None)- assert (- found_after is not None- ), "Account must still be listed after config update (account_id should not be reset)"- assert (- found_after["providerAccountId"] == provider_account_id- ), "providerAccountId should be preserved after update"- assert (- found_after["agentReport"] is not None- ), "agentReport should be preserved after update"- assert (- found_after["config"]["aws"]["regions"] == updated_regions- ), "Config should reflect the update"+ assert found_after is not None, "Account must still be listed after config update (account_id should not be reset)"+ assert found_after["providerAccountId"] == provider_account_id, "providerAccountId should be preserved after update"+ assert found_after["agentReport"] is not None, "agentReport should be preserved after update"+ assert found_after["config"]["aws"]["regions"] == updated_regions, "Config should reflect the update"assert found_after["removedAt"] is None, "removedAt should still be null"@@ -296,34 +232,24 @@ def test_disconnect_account(account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER)account_id = account["id"]- checkin = simulate_agent_checkin(- signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4())- )+ checkin = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4()))assert checkin.status_code == HTTPStatus.OK, f"Check-in failed: {checkin.text}"response = requests.delete(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.NO_CONTENT- ), f"Expected 204, got {response.status_code}"+ assert response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204, got {response.status_code}"list_response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)accounts = list_response.json()["data"]["accounts"]- assert not any(- a["id"] == account_id for a in accounts- ), "Disconnected account should not appear in the connected list"+ assert not any(a["id"] == account_id for a in accounts), "Disconnected account should not appear in the connected list"def test_disconnect_account_idempotent(@@ -335,13 +261,9 @@ def test_disconnect_account_idempotent(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)response = requests.delete(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{uuid.uuid4()}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{uuid.uuid4()}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.NO_CONTENT- ), f"Expected 204, got {response.status_code}"+ assert response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204, got {response.status_code}"diff --git a/tests/integration/tests/cloudintegrations/09_services.py b/tests/integration/tests/cloudintegrations/09_services.pyindex 8e767ef56d..0ae9a3af42 100644--- a/tests/integration/tests/cloudintegrations/09_services.py+++ b/tests/integration/tests/cloudintegrations/09_services.py@@ -1,6 +1,6 @@import uuid+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -34,16 +34,12 @@ def test_list_services_without_account(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"data = response.json()["data"]assert "services" in data, "Response should contain 'services' field"@@ -69,22 +65,16 @@ def test_list_services_with_account(account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER)account_id = account["id"]- checkin = simulate_agent_checkin(- signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4())- )+ checkin = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4()))assert checkin.status_code == HTTPStatus.OK, f"Check-in failed: {checkin.text}"response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services?cloud_integration_id={account_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services?cloud_integration_id={account_id}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"data = response.json()["data"]assert "services" in data, "Response should contain 'services' field"@@ -92,9 +82,7 @@ def test_list_services_with_account(for svc in data["services"]:assert "enabled" in svc, "Each service should have 'enabled' field"- assert (- svc["enabled"] is False- ), f"Service {svc['id']} should be disabled before any config is set"+ assert svc["enabled"] is False, f"Service {svc['id']} should be disabled before any config is set"def test_get_service_details_without_account(@@ -106,31 +94,21 @@ def test_get_service_details_without_account(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"data = response.json()["data"]assert data["id"] == SERVICE_ID, f"id should be '{SERVICE_ID}'"assert "title" in data, "Service should have 'title'"assert "overview" in data, "Service should have 'overview' (markdown)"assert "assets" in data, "Service should have 'assets'"- assert isinstance(- data["assets"]["dashboards"], list- ), "assets.dashboards should be a list"- assert (- "telemetryCollectionStrategy" in data- ), "Service should have 'telemetryCollectionStrategy'"- assert (- data["cloudIntegrationService"] is None- ), "cloudIntegrationService should be null without account context"+ assert isinstance(data["assets"]["dashboards"], list), "assets.dashboards should be a list"+ assert "telemetryCollectionStrategy" in data, "Service should have 'telemetryCollectionStrategy'"+ assert data["cloudIntegrationService"] is None, "cloudIntegrationService should be null without account context"def test_get_service_details_with_account(@@ -145,29 +123,20 @@ def test_get_service_details_with_account(account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER)account_id = account["id"]- checkin = simulate_agent_checkin(- signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4())- )+ checkin = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4()))assert checkin.status_code == HTTPStatus.OK, f"Check-in failed: {checkin.text}"response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}"- f"?cloud_integration_id={account_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}?cloud_integration_id={account_id}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}"data = response.json()["data"]assert data["id"] == SERVICE_ID- assert (- data["cloudIntegrationService"] is None- ), "cloudIntegrationService should be null before any service config is set"+ assert data["cloudIntegrationService"] is None, "cloudIntegrationService should be null before any service config is set"def test_get_service_not_found(@@ -179,16 +148,12 @@ def test_get_service_not_found(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/non-existent-service"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/non-existent-service"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.BAD_REQUEST- ), f"Expected 400, got {response.status_code}"+ assert response.status_code == HTTPStatus.BAD_REQUEST, f"Expected 400, got {response.status_code}"def test_update_service_config(@@ -203,31 +168,20 @@ def test_update_service_config(account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER)account_id = account["id"]- checkin = simulate_agent_checkin(- signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4())- )+ checkin = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4()))assert checkin.status_code == HTTPStatus.OK, f"Check-in failed: {checkin.text}"put_response = requests.put(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}/services/{SERVICE_ID}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}/services/{SERVICE_ID}"),headers={"Authorization": f"Bearer {admin_token}"},- json={- "config": {"aws": {"metrics": {"enabled": True}, "logs": {"enabled": True}}}- },+ json={"config": {"aws": {"metrics": {"enabled": True}, "logs": {"enabled": True}}}},timeout=10,)- assert (- put_response.status_code == HTTPStatus.NO_CONTENT- ), f"Expected 204, got {put_response.status_code}: {put_response.text}"+ assert put_response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204, got {put_response.status_code}: {put_response.text}"get_response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}"- f"?cloud_integration_id={account_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}?cloud_integration_id={account_id}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)@@ -235,16 +189,10 @@ def test_update_service_config(assert get_response.status_code == HTTPStatus.OKdata = get_response.json()["data"]svc = data["cloudIntegrationService"]- assert (- svc is not None- ), "cloudIntegrationService should be non-null after UpdateService"- assert (- svc["config"]["aws"]["metrics"]["enabled"] is True- ), "metrics should be enabled"+ assert svc is not None, "cloudIntegrationService should be non-null after UpdateService"+ assert svc["config"]["aws"]["metrics"]["enabled"] is True, "metrics should be enabled"assert svc["config"]["aws"]["logs"]["enabled"] is True, "logs should be enabled"- assert (- svc["cloudIntegrationId"] == account_id- ), "cloudIntegrationId should match the account"+ assert svc["cloudIntegrationId"] == account_id, "cloudIntegrationId should match the account"def test_update_service_config_disable(@@ -259,60 +207,39 @@ def test_update_service_config_disable(account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER)account_id = account["id"]- checkin = simulate_agent_checkin(- signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4())- )+ checkin = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4()))assert checkin.status_code == HTTPStatus.OK, f"Check-in failed: {checkin.text}"- endpoint = signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}/services/{SERVICE_ID}"- )+ endpoint = signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}/services/{SERVICE_ID}")# Enabler = requests.put(endpoint,headers={"Authorization": f"Bearer {admin_token}"},- json={- "config": {"aws": {"metrics": {"enabled": True}, "logs": {"enabled": True}}}- },+ json={"config": {"aws": {"metrics": {"enabled": True}, "logs": {"enabled": True}}}},timeout=10,)- assert (- r.status_code == HTTPStatus.NO_CONTENT- ), f"Enable failed: {r.status_code}: {r.text}"+ assert r.status_code == HTTPStatus.NO_CONTENT, f"Enable failed: {r.status_code}: {r.text}"# Disabler = requests.put(endpoint,headers={"Authorization": f"Bearer {admin_token}"},- json={- "config": {- "aws": {"metrics": {"enabled": False}, "logs": {"enabled": False}}- }- },+ json={"config": {"aws": {"metrics": {"enabled": False}, "logs": {"enabled": False}}}},timeout=10,)- assert (- r.status_code == HTTPStatus.NO_CONTENT- ), f"Disable failed: {r.status_code}: {r.text}"+ assert r.status_code == HTTPStatus.NO_CONTENT, f"Disable failed: {r.status_code}: {r.text}"get_response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}"- f"?cloud_integration_id={account_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}?cloud_integration_id={account_id}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)assert get_response.status_code == HTTPStatus.OKsvc = get_response.json()["data"]["cloudIntegrationService"]- assert (- svc is not None- ), "cloudIntegrationService should still be present after disable"- assert (- svc["config"]["aws"]["metrics"]["enabled"] is False- ), "metrics should be disabled"+ assert svc is not None, "cloudIntegrationService should still be present after disable"+ assert svc["config"]["aws"]["metrics"]["enabled"] is False, "metrics should be disabled"assert svc["config"]["aws"]["logs"]["enabled"] is False, "logs should be disabled"@@ -325,17 +252,13 @@ def test_update_service_account_not_found(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)response = requests.put(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{uuid.uuid4()}/services/{SERVICE_ID}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{uuid.uuid4()}/services/{SERVICE_ID}"),headers={"Authorization": f"Bearer {admin_token}"},json={"config": {"aws": {"metrics": {"enabled": True}}}},timeout=10,)- assert (- response.status_code == HTTPStatus.NOT_FOUND- ), f"Expected 404, got {response.status_code}"+ assert response.status_code == HTTPStatus.NOT_FOUND, f"Expected 404, got {response.status_code}"def test_list_services_unsupported_provider(@@ -352,9 +275,7 @@ def test_list_services_unsupported_provider(timeout=10,)- assert (- response.status_code == HTTPStatus.BAD_REQUEST- ), f"Expected 400, got {response.status_code}"+ assert response.status_code == HTTPStatus.BAD_REQUEST, f"Expected 400, got {response.status_code}"def test_list_services_account_removed(@@ -369,33 +290,23 @@ def test_list_services_account_removed(account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER)account_id = account["id"]- checkin = simulate_agent_checkin(- signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4())- )+ checkin = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4()))assert checkin.status_code == HTTPStatus.OK, f"Check-in failed: {checkin.text}"delete_response = requests.delete(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- delete_response.status_code == HTTPStatus.NO_CONTENT- ), f"Expected 204 on delete, got {delete_response.status_code}"+ assert delete_response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204 on delete, got {delete_response.status_code}"response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services?cloud_integration_id={account_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services?cloud_integration_id={account_id}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.NOT_FOUND- ), f"Expected 404, got {response.status_code}"+ assert response.status_code == HTTPStatus.NOT_FOUND, f"Expected 404, got {response.status_code}"def test_get_service_details_account_removed(@@ -410,34 +321,23 @@ def test_get_service_details_account_removed(account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER)account_id = account["id"]- checkin = simulate_agent_checkin(- signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4())- )+ checkin = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4()))assert checkin.status_code == HTTPStatus.OK, f"Check-in failed: {checkin.text}"delete_response = requests.delete(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- delete_response.status_code == HTTPStatus.NO_CONTENT- ), f"Expected 204 on delete, got {delete_response.status_code}"+ assert delete_response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204 on delete, got {delete_response.status_code}"response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}"- f"?cloud_integration_id={account_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/services/{SERVICE_ID}?cloud_integration_id={account_id}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.NOT_FOUND- ), f"Expected 404, got {response.status_code}"+ assert response.status_code == HTTPStatus.NOT_FOUND, f"Expected 404, got {response.status_code}"def test_update_service_account_removed(@@ -452,31 +352,21 @@ def test_update_service_account_removed(account = create_cloud_integration_account(admin_token, CLOUD_PROVIDER)account_id = account["id"]- checkin = simulate_agent_checkin(- signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4())- )+ checkin = simulate_agent_checkin(signoz, admin_token, CLOUD_PROVIDER, account_id, str(uuid.uuid4()))assert checkin.status_code == HTTPStatus.OK, f"Check-in failed: {checkin.text}"delete_response = requests.delete(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)- assert (- delete_response.status_code == HTTPStatus.NO_CONTENT- ), f"Expected 204 on delete, got {delete_response.status_code}"+ assert delete_response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204 on delete, got {delete_response.status_code}"response = requests.put(- signoz.self.host_configs["8080"].get(- f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}/services/{SERVICE_ID}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/cloud_integrations/{CLOUD_PROVIDER}/accounts/{account_id}/services/{SERVICE_ID}"),headers={"Authorization": f"Bearer {admin_token}"},json={"config": {"aws": {"metrics": {"enabled": True}}}},timeout=10,)- assert (- response.status_code == HTTPStatus.NOT_FOUND- ), f"Expected 404, got {response.status_code}"+ assert response.status_code == HTTPStatus.NOT_FOUND, f"Expected 404, got {response.status_code}"diff --git a/tests/integration/tests/dashboard/01_dashboard.py b/tests/integration/tests/dashboard/01_dashboard.pyindex 05254a33c1..911aeb58cb 100644--- a/tests/integration/tests/dashboard/01_dashboard.py+++ b/tests/integration/tests/dashboard/01_dashboard.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callable, Listimport requestsfrom wiremock.resources.mappings import Mapping@@ -39,7 +39,7 @@ def test_create_and_delete_dashboard_without_license(def test_apply_license(signoz: SigNoz,create_user_admin: Operation, # pylint: disable=unused-argument- make_http_mocks: Callable[[TestContainerDocker, List[Mapping]], None],+ make_http_mocks: Callable[[TestContainerDocker, list[Mapping]], None],get_token: Callable[[str, str], str],) -> None:"""diff --git a/tests/integration/tests/dashboard/02_public_dashboard.py b/tests/integration/tests/dashboard/02_public_dashboard.pyindex 7d1c1fd4a5..31085acf68 100644--- a/tests/integration/tests/dashboard/02_public_dashboard.py+++ b/tests/integration/tests/dashboard/02_public_dashboard.py@@ -1,6 +1,6 @@-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Callable, Listimport pytestimport requests@@ -15,7 +15,7 @@ from fixtures.types import Operation, SigNoz, TestContainerDockerdef test_apply_license(signoz: SigNoz,create_user_admin: Operation, # pylint: disable=unused-argument- make_http_mocks: Callable[[TestContainerDocker, List[Mapping]], None],+ make_http_mocks: Callable[[TestContainerDocker, list[Mapping]], None],get_token: Callable[[str, str], str],) -> None:"""@@ -44,9 +44,7 @@ def test_create_and_get_public_dashboard(dashboard_id = data["id"]response = requests.post(- signoz.self.host_configs["8080"].get(- f"/api/v1/dashboards/{dashboard_id}/public"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/dashboards/{dashboard_id}/public"),json={"timeRangeEnabled": True,"defaultTimeRange": "10s",@@ -59,9 +57,7 @@ def test_create_and_get_public_dashboard(assert "id" in response.json()["data"]response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/dashboards/{dashboard_id}/public"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/dashboards/{dashboard_id}/public"),headers={"Authorization": f"Bearer {admin_token}"},timeout=2,)@@ -76,13 +72,13 @@ def test_public_dashboard_widget_query_range(signoz: SigNoz,create_user_admin: Operation, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],):admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)# Insert metric data so the widget query returns results instead of 404- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- metrics: List[Metrics] = [+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)+ metrics: list[Metrics] = [Metrics(metric_name="container.cpu.time",labels={"service": "test-service"},@@ -146,13 +142,9 @@ def test_public_dashboard_widget_query_range("queryFormulas": [],"queryTraceOperator": [],},- "clickhouse_sql": [- {"disabled": False, "legend": "", "name": "A", "query": ""}- ],+ "clickhouse_sql": [{"disabled": False, "legend": "", "name": "A", "query": ""}],"id": "80f12506-ef72-4013-8282-2713c8114c9e",- "promql": [- {"disabled": False, "legend": "", "name": "A", "query": ""}- ],+ "promql": [{"disabled": False, "legend": "", "name": "A", "query": ""}],"queryType": "builder",},}@@ -170,9 +162,7 @@ def test_public_dashboard_widget_query_range(# create public dashboardresponse = requests.post(- signoz.self.host_configs["8080"].get(- f"/api/v1/dashboards/{dashboard_id}/public"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/dashboards/{dashboard_id}/public"),json={"timeRangeEnabled": False,"defaultTimeRange": "10m",@@ -185,9 +175,7 @@ def test_public_dashboard_widget_query_range(assert "id" in response.json()["data"]response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/dashboards/{dashboard_id}/public"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/dashboards/{dashboard_id}/public"),headers={"Authorization": f"Bearer {admin_token}"},timeout=2,)@@ -198,26 +186,20 @@ def test_public_dashboard_widget_query_range(public_dashboard_id = public_path.split("/public/dashboard/")[-1]resp = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/public/dashboards/{public_dashboard_id}/widgets/0/query_range"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/public/dashboards/{public_dashboard_id}/widgets/0/query_range"),timeout=2,)assert resp.status_code == HTTPStatus.OKassert resp.json().get("status") == "success"resp = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/public/dashboards/{public_dashboard_id}/widgets/-1/query_range"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/public/dashboards/{public_dashboard_id}/widgets/-1/query_range"),timeout=2,)assert resp.status_code == HTTPStatus.BAD_REQUESTresp = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/public/dashboards/{public_dashboard_id}/widgets/1/query_range"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/public/dashboards/{public_dashboard_id}/widgets/1/query_range"),timeout=2,)assert resp.status_code == HTTPStatus.BAD_REQUEST@@ -245,9 +227,7 @@ def test_anonymous_role_has_public_dashboard_permission(assert response.json()["status"] == "success"roles = response.json()["data"]- anonymous_role = next(- (role for role in roles if role["name"] == "signoz-anonymous"), None- )+ anonymous_role = next((role for role in roles if role["name"] == "signoz-anonymous"), None)assert anonymous_role is not Noneorg_id = anonymous_role["orgId"]@@ -267,13 +247,7 @@ def test_anonymous_role_has_public_dashboard_permission(if request.config.getoption("--sqlstore-provider") == "sqlite":assert tuple_row["user_object_type"] == "role"- assert (- tuple_row["user_object_id"]- == f"organization/{org_id}/role/signoz-anonymous"- )+ assert tuple_row["user_object_id"] == f"organization/{org_id}/role/signoz-anonymous"assert tuple_row["user_relation"] == "assignee"else:- assert (- tuple_row["_user"]- == f"role:organization/{org_id}/role/signoz-anonymous#assignee"- )+ assert tuple_row["_user"] == f"role:organization/{org_id}/role/signoz-anonymous#assignee"diff --git a/tests/integration/tests/ingestionkeys/01_ingestion_keys.py b/tests/integration/tests/ingestionkeys/01_ingestion_keys.pyindex ea3f8ac325..0d3a371887 100644--- a/tests/integration/tests/ingestionkeys/01_ingestion_keys.py+++ b/tests/integration/tests/ingestionkeys/01_ingestion_keys.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callable, Listimport requestsfrom wiremock.client import (@@ -28,7 +28,7 @@ GATEWAY_APIS_EDITOR_PASSWORD = "password123Z$"def test_apply_license(signoz: types.SigNoz,create_user_admin: types.Operation, # pylint: disable=unused-argument- make_http_mocks: Callable[[types.TestContainerDocker, List[Mapping]], None],+ make_http_mocks: Callable[[types.TestContainerDocker, list[Mapping]], None],get_token: Callable[[str, str], str],) -> None:"""Activate a license so that all subsequent gateway calls succeed."""@@ -109,9 +109,7 @@ def test_create_ingestion_key(timeout=10,)- assert (- response.status_code == HTTPStatus.CREATED- ), f"Expected 201, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.CREATED, f"Expected 201, got {response.status_code}: {response.text}"data = response.json()["data"]assert data["id"] == TEST_KEY_ID@@ -178,9 +176,7 @@ def test_get_ingestion_keys(timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}: {response.text}"data = response.json()["data"]assert len(data["keys"]) == 1@@ -225,16 +221,12 @@ def test_get_ingestion_keys_custom_pagination()response = requests.get(- signoz.self.host_configs["8080"].get(- "/api/v2/gateway/ingestion_keys?page=2&per_page=5"- ),+ signoz.self.host_configs["8080"].get("/api/v2/gateway/ingestion_keys?page=2&per_page=5"),headers={"Authorization": f"Bearer {editor_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}: {response.text}"data = response.json()["data"]assert len(data["keys"]) == 0@@ -291,16 +283,12 @@ def test_search_ingestion_keys()response = requests.get(- signoz.self.host_configs["8080"].get(- "/api/v2/gateway/ingestion_keys/search?name=my-test"- ),+ signoz.self.host_configs["8080"].get("/api/v2/gateway/ingestion_keys/search?name=my-test"),headers={"Authorization": f"Bearer {editor_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}: {response.text}"data = response.json()["data"]assert len(data["keys"]) == 1@@ -343,16 +331,12 @@ def test_search_ingestion_keys_empty()response = requests.get(- signoz.self.host_configs["8080"].get(- "/api/v2/gateway/ingestion_keys/search?name=nonexistent"- ),+ signoz.self.host_configs["8080"].get("/api/v2/gateway/ingestion_keys/search?name=nonexistent"),headers={"Authorization": f"Bearer {editor_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200, got {response.status_code}: {response.text}"data = response.json()["data"]assert len(data["keys"]) == 0@@ -386,9 +370,7 @@ def test_update_ingestion_key()response = requests.patch(- signoz.self.host_configs["8080"].get(- f"/api/v2/gateway/ingestion_keys/{TEST_KEY_ID}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/gateway/ingestion_keys/{TEST_KEY_ID}"),json={"name": "renamed-key","tags": ["env:prod"],@@ -398,9 +380,7 @@ def test_update_ingestion_key(timeout=10,)- assert (- response.status_code == HTTPStatus.NO_CONTENT- ), f"Expected 204, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204, got {response.status_code}: {response.text}"# Verify the body forwarded to the gatewaybody = get_latest_gateway_request_body(signoz, "PATCH", gateway_url)@@ -436,16 +416,12 @@ def test_delete_ingestion_key()response = requests.delete(- signoz.self.host_configs["8080"].get(- f"/api/v2/gateway/ingestion_keys/{TEST_KEY_ID}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/gateway/ingestion_keys/{TEST_KEY_ID}"),headers={"Authorization": f"Bearer {editor_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.NO_CONTENT- ), f"Expected 204, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204, got {response.status_code}: {response.text}"# Verify at least one DELETE reached the gatewaymatched = get_gateway_requests(signoz, "DELETE", gateway_url)diff --git a/tests/integration/tests/ingestionkeys/02_ingestion_keys_limits.py b/tests/integration/tests/ingestionkeys/02_ingestion_keys_limits.pyindex 196943bee7..488b0eb360 100644--- a/tests/integration/tests/ingestionkeys/02_ingestion_keys_limits.py+++ b/tests/integration/tests/ingestionkeys/02_ingestion_keys_limits.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callable, Listimport requestsfrom wiremock.client import (@@ -29,7 +29,7 @@ GATEWAY_APIS_EDITOR_PASSWORD = "password123Z$"def test_apply_license(signoz: types.SigNoz,create_user_admin: types.Operation, # pylint: disable=unused-argument- make_http_mocks: Callable[[types.TestContainerDocker, List[Mapping]], None],+ make_http_mocks: Callable[[types.TestContainerDocker, list[Mapping]], None],get_token: Callable[[str, str], str],) -> None:"""Activate a license so that all subsequent gateway calls succeed."""@@ -74,9 +74,7 @@ def test_create_ingestion_key_limit_only_size()response = requests.post(- signoz.self.host_configs["8080"].get(- f"/api/v2/gateway/ingestion_keys/{TEST_KEY_ID}/limits"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/gateway/ingestion_keys/{TEST_KEY_ID}/limits"),json={"signal": "logs","config": {"day": {"size": 1000}},@@ -86,9 +84,7 @@ def test_create_ingestion_key_limit_only_size(timeout=10,)- assert (- response.status_code == HTTPStatus.CREATED- ), f"Expected 201, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.CREATED, f"Expected 201, got {response.status_code}: {response.text}"assert response.json()["data"]["id"] == "limit-created-1"@@ -134,9 +130,7 @@ def test_create_ingestion_key_limit_only_count()response = requests.post(- signoz.self.host_configs["8080"].get(- f"/api/v2/gateway/ingestion_keys/{TEST_KEY_ID}/limits"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/gateway/ingestion_keys/{TEST_KEY_ID}/limits"),json={"signal": "traces","config": {"day": {"count": 500}},@@ -146,9 +140,7 @@ def test_create_ingestion_key_limit_only_count(timeout=10,)- assert (- response.status_code == HTTPStatus.CREATED- ), f"Expected 201, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.CREATED, f"Expected 201, got {response.status_code}: {response.text}"body = get_latest_gateway_request_body(signoz, "POST", gateway_url)assert body is not None, "Expected a POST request to reach the gateway"@@ -191,9 +183,7 @@ def test_create_ingestion_key_limit_both_size_and_count()response = requests.post(- signoz.self.host_configs["8080"].get(- f"/api/v2/gateway/ingestion_keys/{TEST_KEY_ID}/limits"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/gateway/ingestion_keys/{TEST_KEY_ID}/limits"),json={"signal": "metrics","config": {@@ -206,9 +196,7 @@ def test_create_ingestion_key_limit_both_size_and_count(timeout=10,)- assert (- response.status_code == HTTPStatus.CREATED- ), f"Expected 201, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.CREATED, f"Expected 201, got {response.status_code}: {response.text}"body = get_latest_gateway_request_body(signoz, "POST", gateway_url)assert body is not None, "Expected a POST request to reach the gateway"@@ -252,9 +240,7 @@ def test_update_ingestion_key_limit_only_size()response = requests.patch(- signoz.self.host_configs["8080"].get(- f"/api/v2/gateway/ingestion_keys/limits/{TEST_LIMIT_ID}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/gateway/ingestion_keys/limits/{TEST_LIMIT_ID}"),json={"config": {"day": {"size": 2000}},"tags": ["test"],@@ -263,9 +249,7 @@ def test_update_ingestion_key_limit_only_size(timeout=10,)- assert (- response.status_code == HTTPStatus.NO_CONTENT- ), f"Expected 204, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204, got {response.status_code}: {response.text}"body = get_latest_gateway_request_body(signoz, "PATCH", gateway_url)assert body is not None, "Expected a PATCH request to reach the gateway"@@ -302,9 +286,7 @@ def test_update_ingestion_key_limit_only_count()response = requests.patch(- signoz.self.host_configs["8080"].get(- f"/api/v2/gateway/ingestion_keys/limits/{TEST_LIMIT_ID}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/gateway/ingestion_keys/limits/{TEST_LIMIT_ID}"),json={"config": {"day": {"count": 750}},"tags": ["test"],@@ -313,9 +295,7 @@ def test_update_ingestion_key_limit_only_count(timeout=10,)- assert (- response.status_code == HTTPStatus.NO_CONTENT- ), f"Expected 204, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204, got {response.status_code}: {response.text}"body = get_latest_gateway_request_body(signoz, "PATCH", gateway_url)assert body is not None, "Expected a PATCH request to reach the gateway"@@ -351,9 +331,7 @@ def test_update_ingestion_key_limit_both_size_and_count()response = requests.patch(- signoz.self.host_configs["8080"].get(- f"/api/v2/gateway/ingestion_keys/limits/{TEST_LIMIT_ID}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/gateway/ingestion_keys/limits/{TEST_LIMIT_ID}"),json={"config": {"day": {"size": 1000, "count": 500}},"tags": ["test"],@@ -362,9 +340,7 @@ def test_update_ingestion_key_limit_both_size_and_count(timeout=10,)- assert (- response.status_code == HTTPStatus.NO_CONTENT- ), f"Expected 204, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204, got {response.status_code}: {response.text}"body = get_latest_gateway_request_body(signoz, "PATCH", gateway_url)assert body is not None, "Expected a PATCH request to reach the gateway"@@ -405,16 +381,12 @@ def test_delete_ingestion_key_limit()response = requests.delete(- signoz.self.host_configs["8080"].get(- f"/api/v2/gateway/ingestion_keys/limits/{TEST_LIMIT_ID}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/gateway/ingestion_keys/limits/{TEST_LIMIT_ID}"),headers={"Authorization": f"Bearer {editor_token}"},timeout=10,)- assert (- response.status_code == HTTPStatus.NO_CONTENT- ), f"Expected 204, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.NO_CONTENT, f"Expected 204, got {response.status_code}: {response.text}"# Verify at least one DELETE reached the gatewaymatched = get_gateway_requests(signoz, "DELETE", gateway_url)diff --git a/tests/integration/tests/logspipelines/01_logs_pipelines.py b/tests/integration/tests/logspipelines/01_logs_pipelines.pyindex e705e588fc..e3e5c63ccc 100644--- a/tests/integration/tests/logspipelines/01_logs_pipelines.py+++ b/tests/integration/tests/logspipelines/01_logs_pipelines.py@@ -5,8 +5,8 @@ It verifies the correct behavior of log pipeline CRUD operations, versioning, prand pipeline processing."""+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -98,9 +98,7 @@ def test_create_logs_pipeline_success(# Verify version informationassert "version" in response_data["data"]- assert (- response_data["data"]["version"] >= 1- ) # Version might be higher if other tests ran first+ assert response_data["data"]["version"] >= 1 # Version might be higher if other tests ran firstdef test_list_logs_pipelines_success(@@ -666,9 +664,5 @@ def test_delete_all_pipelines_success(assert "data" in list_dataassert "pipelines" in list_data["data"]# Note: Integration pipelines might still be present, so we check user-created ones- user_pipelines = [- p- for p in list_data["data"]["pipelines"]- if p.get("name") == "Pipeline to Delete"- ]+ user_pipelines = [p for p in list_data["data"]["pipelines"] if p.get("name") == "Pipeline to Delete"]assert len(user_pipelines) == 0diff --git a/tests/integration/tests/passwordauthn/01_register.py b/tests/integration/tests/passwordauthn/01_register.pyindex 6e7b9d4610..4fa2f17963 100644--- a/tests/integration/tests/passwordauthn/01_register.py+++ b/tests/integration/tests/passwordauthn/01_register.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -55,9 +55,7 @@ def test_register_with_invalid_input(signoz: types.SigNoz) -> None:def test_register(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> None:- response = requests.get(- signoz.self.host_configs["8080"].get("/api/v1/version"), timeout=2- )+ response = requests.get(signoz.self.host_configs["8080"].get("/api/v1/version"), timeout=2)assert response.status_code == HTTPStatus.OKassert response.json()["setupCompleted"] is False@@ -75,9 +73,7 @@ def test_register(signoz: types.SigNoz, get_token: Callable[[str, str], str]) ->)assert response.status_code == HTTPStatus.OK- response = requests.get(- signoz.self.host_configs["8080"].get("/api/v1/version"), timeout=2- )+ response = requests.get(signoz.self.host_configs["8080"].get("/api/v1/version"), timeout=2)assert response.status_code == HTTPStatus.OKassert response.json()["setupCompleted"] is True@@ -126,9 +122,7 @@ def test_invite(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> N# Verify that the editor user status has been updated to ACTIVEadmin_token_fresh = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- found_user = find_user_with_roles_by_email(- signoz, admin_token_fresh, USER_EDITOR_EMAIL- )+ found_user = find_user_with_roles_by_email(signoz, admin_token_fresh, USER_EDITOR_EMAIL)assert_user_has_role(found_user, "signoz-editor")assert found_user["displayName"] == USER_EDITOR_NAME@@ -136,9 +130,7 @@ def test_invite(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> Nassert found_user["status"] == "active"-def test_revoke_invite(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-) -> None:+def test_revoke_invite(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> None:admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)# Invite the viewer user@@ -169,9 +161,7 @@ def test_revoke_invite(assert response.status_code in (HTTPStatus.BAD_REQUEST, HTTPStatus.NOT_FOUND)-def test_provision_user(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-) -> None:+def test_provision_user(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> None:"""Simulates the upstream zeus provisioning flow:1. Invite a user as ADMIN (register already happened via test_register)@@ -213,9 +203,7 @@ def test_provision_user(# Step 3: Get reset password token (mirrors zeus GET /api/v1/getResetPasswordToken/{id})response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v1/getResetPasswordToken/{user_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v1/getResetPasswordToken/{user_id}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=5,)@@ -236,9 +224,7 @@ def test_provision_user(user_token = get_token(provisioned_email, provisioned_password)assert user_token is not None- provisioned_user = find_user_with_roles_by_email(- signoz, admin_token, provisioned_email- )+ provisioned_user = find_user_with_roles_by_email(signoz, admin_token, provisioned_email)assert provisioned_user["status"] == "active"assert provisioned_user["displayName"] == provisioned_nameassert_user_has_role(provisioned_user, "signoz-admin")diff --git a/tests/integration/tests/passwordauthn/02_license.py b/tests/integration/tests/passwordauthn/02_license.pyindex fd3929a9f2..66ba9b9c12 100644--- a/tests/integration/tests/passwordauthn/02_license.py+++ b/tests/integration/tests/passwordauthn/02_license.py@@ -1,5 +1,5 @@import http-from typing import Callable, List+from collections.abc import Callableimport requestsfrom wiremock.client import (@@ -15,7 +15,7 @@ from fixtures import typesdef test_apply_license(signoz: types.SigNoz,- make_http_mocks: Callable[[types.TestContainerDocker, List[Mapping]], None],+ make_http_mocks: Callable[[types.TestContainerDocker, list[Mapping]], None],get_token: Callable[[str, str], str],) -> None:make_http_mocks(@@ -25,11 +25,7 @@ def test_apply_license(request=MappingRequest(method=HttpMethods.GET,url="/v2/licenses/me",- headers={- "X-Signoz-Cloud-Api-Key": {- WireMockMatchers.EQUAL_TO: "secret-key"- }- },+ headers={"X-Signoz-Cloud-Api-Key": {WireMockMatchers.EQUAL_TO: "secret-key"}},),response=MappingResponse(status=200,@@ -78,7 +74,7 @@ def test_apply_license(def test_refresh_license(signoz: types.SigNoz,- make_http_mocks: Callable[[types.TestContainerDocker, List[Mapping]], None],+ make_http_mocks: Callable[[types.TestContainerDocker, list[Mapping]], None],get_token: Callable[[str, str], str],) -> None:make_http_mocks(@@ -88,11 +84,7 @@ def test_refresh_license(request=MappingRequest(method=HttpMethods.GET,url="/v2/licenses/me",- headers={- "X-Signoz-Cloud-Api-Key": {- WireMockMatchers.EQUAL_TO: "secret-key"- }- },+ headers={"X-Signoz-Cloud-Api-Key": {WireMockMatchers.EQUAL_TO: "secret-key"}},),response=MappingResponse(status=200,@@ -148,7 +140,7 @@ def test_refresh_license(def test_license_checkout(signoz: types.SigNoz,- make_http_mocks: Callable[[types.TestContainerDocker, List[Mapping]], None],+ make_http_mocks: Callable[[types.TestContainerDocker, list[Mapping]], None],get_token: Callable[[str, str], str],) -> None:make_http_mocks(@@ -158,11 +150,7 @@ def test_license_checkout(request=MappingRequest(method=HttpMethods.POST,url="/v2/subscriptions/me/sessions/checkout",- headers={- "X-Signoz-Cloud-Api-Key": {- WireMockMatchers.EQUAL_TO: "secret-key"- }- },+ headers={"X-Signoz-Cloud-Api-Key": {WireMockMatchers.EQUAL_TO: "secret-key"}},),response=MappingResponse(status=200,@@ -199,7 +187,7 @@ def test_license_checkout(def test_license_portal(signoz: types.SigNoz,- make_http_mocks: Callable[[types.TestContainerDocker, List[Mapping]], None],+ make_http_mocks: Callable[[types.TestContainerDocker, list[Mapping]], None],get_token: Callable[[str, str], str],) -> None:make_http_mocks(@@ -209,11 +197,7 @@ def test_license_portal(request=MappingRequest(method=HttpMethods.POST,url="/v2/subscriptions/me/sessions/portal",- headers={- "X-Signoz-Cloud-Api-Key": {- WireMockMatchers.EQUAL_TO: "secret-key"- }- },+ headers={"X-Signoz-Cloud-Api-Key": {WireMockMatchers.EQUAL_TO: "secret-key"}},),response=MappingResponse(status=200,diff --git a/tests/integration/tests/passwordauthn/03_password.py b/tests/integration/tests/passwordauthn/03_password.pyindex d8b8105030..80a946e066 100644--- a/tests/integration/tests/passwordauthn/03_password.py+++ b/tests/integration/tests/passwordauthn/03_password.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requestsfrom sqlalchemy import sql@@ -14,9 +14,7 @@ PASSWORD_USER_EMAIL = "[email protected]"PASSWORD_USER_PASSWORD = "password123Z$"-def test_change_password(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-) -> None:+def test_change_password(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> None:admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)# Create another admin user@@ -73,9 +71,7 @@ def test_change_password(assert token is not None-def test_reset_password(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-) -> None:+def test_reset_password(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> None:admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)# Get the user id via v2@@ -83,9 +79,7 @@ def test_reset_password(# Create a reset password token via v2 PUTresponse = requests.put(- signoz.self.host_configs["8080"].get(- f"/api/v2/users/{found_user['id']}/reset_password_tokens"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/users/{found_user['id']}/reset_password_tokens"),headers={"Authorization": f"Bearer {admin_token}"},timeout=2,)@@ -98,9 +92,7 @@ def test_reset_password(# Calling PUT again should return the same token (still valid)response = requests.put(- signoz.self.host_configs["8080"].get(- f"/api/v2/users/{found_user['id']}/reset_password_tokens"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/users/{found_user['id']}/reset_password_tokens"),headers={"Authorization": f"Bearer {admin_token}"},timeout=2,)@@ -109,9 +101,7 @@ def test_reset_password(# GET should also return the same tokenresponse = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v2/users/{found_user['id']}/reset_password_tokens"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/users/{found_user['id']}/reset_password_tokens"),headers={"Authorization": f"Bearer {admin_token}"},timeout=2,)@@ -140,9 +130,7 @@ def test_reset_password(assert token is not None-def test_reset_password_with_no_password(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-) -> None:+def test_reset_password_with_no_password(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> None:admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)# Get the user id via v2@@ -157,9 +145,7 @@ def test_reset_password_with_no_password(# GET should return 404 since there's no password (and thus no token)response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v2/users/{found_user['id']}/reset_password_tokens"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/users/{found_user['id']}/reset_password_tokens"),headers={"Authorization": f"Bearer {admin_token}"},timeout=2,)@@ -167,9 +153,7 @@ def test_reset_password_with_no_password(# Generate a new reset password token via v2 PUTresponse = requests.put(- signoz.self.host_configs["8080"].get(- f"/api/v2/users/{found_user['id']}/reset_password_tokens"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/users/{found_user['id']}/reset_password_tokens"),headers={"Authorization": f"Bearer {admin_token}"},timeout=2,)@@ -226,9 +210,7 @@ def test_forgot_password_returns_204_for_nonexistent_email(assert response.status_code == HTTPStatus.NO_CONTENT-def test_forgot_password_creates_reset_token(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-) -> None:+def test_forgot_password_creates_reset_token(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> None:"""Test the full forgot password flow:1. Call forgotPassword endpoint for existing user@@ -292,9 +274,7 @@ def test_forgot_password_creates_reset_token(found_user = find_user_by_email(signoz, admin_token, forgot_email)response = requests.get(- signoz.self.host_configs["8080"].get(- f"/api/v2/users/{found_user['id']}/reset_password_tokens"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/users/{found_user['id']}/reset_password_tokens"),headers={"Authorization": f"Bearer {admin_token}"},timeout=2,)@@ -325,9 +305,7 @@ def test_forgot_password_creates_reset_token(pass # Expected - old password should fail-def test_reset_password_with_expired_token(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-) -> None:+def test_reset_password_with_expired_token(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> None:"""Test that resetting password with an expired token fails."""diff --git a/tests/integration/tests/passwordauthn/04_role.py b/tests/integration/tests/passwordauthn/04_role.pyindex ad558191e8..5751b4f3c4 100644--- a/tests/integration/tests/passwordauthn/04_role.py+++ b/tests/integration/tests/passwordauthn/04_role.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -106,9 +106,7 @@ def test_get_user_roles(# admin+rolechange user was promoted to ADMIN in test_change_roleresponse = requests.get(signoz.self.host_configs["8080"].get("/api/v2/users/me"),- headers={- "Authorization": f"Bearer {get_token(ROLECHANGE_USER_EMAIL, ROLECHANGE_USER_PASSWORD)}"- },+ headers={"Authorization": f"Bearer {get_token(ROLECHANGE_USER_EMAIL, ROLECHANGE_USER_PASSWORD)}"},timeout=5,)assert response.status_code == HTTPStatus.OK@@ -139,9 +137,7 @@ def test_assign_role_replaces_previous(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)response = requests.get(signoz.self.host_configs["8080"].get("/api/v2/users/me"),- headers={- "Authorization": f"Bearer {get_token(ROLECHANGE_USER_EMAIL, ROLECHANGE_USER_PASSWORD)}"- },+ headers={"Authorization": f"Bearer {get_token(ROLECHANGE_USER_EMAIL, ROLECHANGE_USER_PASSWORD)}"},timeout=5,)assert response.status_code == HTTPStatus.OK@@ -176,9 +172,7 @@ def test_get_users_by_role(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)response = requests.get(signoz.self.host_configs["8080"].get("/api/v2/users/me"),- headers={- "Authorization": f"Bearer {get_token(ROLECHANGE_USER_EMAIL, ROLECHANGE_USER_PASSWORD)}"- },+ headers={"Authorization": f"Bearer {get_token(ROLECHANGE_USER_EMAIL, ROLECHANGE_USER_PASSWORD)}"},timeout=5,)assert response.status_code == HTTPStatus.OK@@ -191,9 +185,7 @@ def test_get_users_by_role()assert response.status_code == HTTPStatus.OKroles = response.json()["data"]- editor_role_id = next((r for r in roles if r["name"] == "signoz-editor"), None)[- "id"- ]+ editor_role_id = next((r for r in roles if r["name"] == "signoz-editor"), None)["id"]assert editor_role_id is not Noneresponse = requests.get(@@ -214,9 +206,7 @@ def test_remove_role(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)response = requests.get(signoz.self.host_configs["8080"].get("/api/v2/users/me"),- headers={- "Authorization": f"Bearer {get_token(ROLECHANGE_USER_EMAIL, ROLECHANGE_USER_PASSWORD)}"- },+ headers={"Authorization": f"Bearer {get_token(ROLECHANGE_USER_EMAIL, ROLECHANGE_USER_PASSWORD)}"},timeout=5,)assert response.status_code == HTTPStatus.OK@@ -230,15 +220,11 @@ def test_remove_role()assert response.status_code == HTTPStatus.OKroles = response.json()["data"]- editor_role_id = next((r for r in roles if r["name"] == "signoz-editor"), None)[- "id"- ]+ editor_role_id = next((r for r in roles if r["name"] == "signoz-editor"), None)["id"]assert editor_role_id is not Noneresponse = requests.delete(- signoz.self.host_configs["8080"].get(- f"/api/v2/users/{user_id}/roles/{editor_role_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/users/{user_id}/roles/{editor_role_id}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=5,)@@ -262,9 +248,7 @@ def test_user_with_roles_reflects_change(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)response = requests.get(signoz.self.host_configs["8080"].get("/api/v2/users/me"),- headers={- "Authorization": f"Bearer {get_token(ROLECHANGE_USER_EMAIL, ROLECHANGE_USER_PASSWORD)}"- },+ headers={"Authorization": f"Bearer {get_token(ROLECHANGE_USER_EMAIL, ROLECHANGE_USER_PASSWORD)}"},timeout=5,)assert response.status_code == HTTPStatus.OK@@ -329,9 +313,7 @@ def test_admin_cannot_remove_own_role(assert admin_role_id is not Noneresponse = requests.delete(- signoz.self.host_configs["8080"].get(- f"/api/v2/users/{admin_data['id']}/roles/{admin_role_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/users/{admin_data['id']}/roles/{admin_role_id}"),headers={"Authorization": f"Bearer {admin_token}"},timeout=5,)@@ -382,14 +364,10 @@ def test_editor_cannot_manage_roles()assert response.status_code == HTTPStatus.OKviewer_roles = response.json()["data"]- viewer_role_id = next(- (r for r in viewer_roles if r["name"] == "signoz-viewer"), None- )["id"]+ viewer_role_id = next((r for r in viewer_roles if r["name"] == "signoz-viewer"), None)["id"]response = requests.delete(- signoz.self.host_configs["8080"].get(- f"/api/v2/users/{viewer_id}/roles/{viewer_role_id}"- ),+ signoz.self.host_configs["8080"].get(f"/api/v2/users/{viewer_id}/roles/{viewer_role_id}"),headers={"Authorization": f"Bearer {editor_token}"},timeout=5,)diff --git a/tests/integration/tests/passwordauthn/05_duplicate_invite.py b/tests/integration/tests/passwordauthn/05_duplicate_invite.pyindex 9f83290bf7..424c2fb9fe 100644--- a/tests/integration/tests/passwordauthn/05_duplicate_invite.py+++ b/tests/integration/tests/passwordauthn/05_duplicate_invite.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requestsdiff --git a/tests/integration/tests/passwordauthn/06_invite_status.py b/tests/integration/tests/passwordauthn/06_invite_status.pyindex 1131290073..c9f08dee8a 100644--- a/tests/integration/tests/passwordauthn/06_invite_status.py+++ b/tests/integration/tests/passwordauthn/06_invite_status.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requestsdiff --git a/tests/integration/tests/passwordauthn/07_user_unique_index.py b/tests/integration/tests/passwordauthn/07_user_unique_index.pyindex 21d4ab997b..7d0cdf0c1e 100644--- a/tests/integration/tests/passwordauthn/07_user_unique_index.py+++ b/tests/integration/tests/passwordauthn/07_user_unique_index.py@@ -1,6 +1,6 @@import uuid+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport pytestimport requests@@ -85,16 +85,12 @@ def test_unique_index_allows_multiple_deleted_rows(# Step 3: assert the DB has exactly two deleted rows for this emailwith signoz.sqlstore.conn.connect() as conn:result = conn.execute(- sql.text(- "SELECT id FROM users WHERE email = :email AND status = 'deleted'"- ),+ sql.text("SELECT id FROM users WHERE email = :email AND status = 'deleted'"),{"email": UNIQUE_INDEX_USER_EMAIL},)deleted_rows = result.fetchall()- assert (- len(deleted_rows) == 2- ), f"expected 2 deleted rows for {UNIQUE_INDEX_USER_EMAIL}, got {len(deleted_rows)}"+ assert len(deleted_rows) == 2, f"expected 2 deleted rows for {UNIQUE_INDEX_USER_EMAIL}, got {len(deleted_rows)}"deleted_ids = {row[0] for row in deleted_rows}assert first_user_id in deleted_idsassert second_user_id in deleted_ids@@ -115,12 +111,7 @@ def test_unique_index_allows_multiple_deleted_rows(active_id = str(uuid.uuid4())with signoz.sqlstore.conn.connect() as conn:conn.execute(- sql.text(- "INSERT INTO users"- " (id, display_name, email, org_id, is_root, status, created_at, updated_at)"- " VALUES (:id, :display_name, :email, :org_id,"- " false, 'active', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)"- ),+ sql.text("INSERT INTO users (id, display_name, email, org_id, is_root, status, created_at, updated_at) VALUES (:id, :display_name, :email, :org_id, false, 'active', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)"),{"id": active_id,"display_name": "first active row",@@ -133,12 +124,7 @@ def test_unique_index_allows_multiple_deleted_rows(with signoz.sqlstore.conn.connect() as conn:with pytest.raises(IntegrityError):conn.execute(- sql.text(- "INSERT INTO users"- " (id, display_name, email, org_id, is_root, status, created_at, updated_at)"- " VALUES (:id, :display_name, :email, :org_id,"- " false, 'active', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)"- ),+ sql.text("INSERT INTO users (id, display_name, email, org_id, is_root, status, created_at, updated_at) VALUES (:id, :display_name, :email, :org_id, false, 'active', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)"),{"id": str(uuid.uuid4()),"display_name": "should violate index",@@ -150,12 +136,7 @@ def test_unique_index_allows_multiple_deleted_rows(# Step 5: a third deleted row must be accepted (excluded from partial index)with signoz.sqlstore.conn.connect() as conn:conn.execute(- sql.text(- "INSERT INTO users"- " (id, display_name, email, org_id, is_root, status, created_at, updated_at)"- " VALUES (:id, :display_name, :email, :org_id,"- " false, 'deleted', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)"- ),+ sql.text("INSERT INTO users (id, display_name, email, org_id, is_root, status, created_at, updated_at) VALUES (:id, :display_name, :email, :org_id, false, 'deleted', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)"),{"id": str(uuid.uuid4()),"display_name": "third deleted row",@@ -168,10 +149,7 @@ def test_unique_index_allows_multiple_deleted_rows(# Step 6: confirm three deleted rows now existwith signoz.sqlstore.conn.connect() as conn:result = conn.execute(- sql.text(- "SELECT COUNT(*) FROM users"- " WHERE email = :email AND status = 'deleted'"- ),+ sql.text("SELECT COUNT(*) FROM users WHERE email = :email AND status = 'deleted'"),{"email": UNIQUE_INDEX_USER_EMAIL},)count = result.fetchone()[0]diff --git a/tests/integration/tests/passwordauthn/08_user.py b/tests/integration/tests/passwordauthn/08_user.pyindex 7c3af86af8..7c6024442f 100644--- a/tests/integration/tests/passwordauthn/08_user.py+++ b/tests/integration/tests/passwordauthn/08_user.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -55,9 +55,7 @@ def test_get_user(signoz: types.SigNoz, get_token: Callable[[str, str], str]) ->assert_user_has_role(data, "signoz-editor")-def test_get_my_user(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-) -> None:+def test_get_my_user(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> None:"""Verify GET /api/v2/users/me returns authenticated user with roles."""editor_token = get_token(USER_EDITOR_EMAIL, USER_EDITOR_PASSWORD)@@ -74,9 +72,7 @@ def test_get_my_user(assert_user_has_role(data, "signoz-editor")-def test_update_user(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-) -> None:+def test_update_user(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> None:"""Verify PUT /api/v2/users/{id} updates displayName."""admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -94,9 +90,7 @@ def test_update_user(assert updated["displayName"] == "updated editor"-def test_update_my_user(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-) -> None:+def test_update_my_user(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> None:"""Verify PUT /api/v2/users/me updates own displayName."""editor_token = get_token(USER_EDITOR_EMAIL, USER_EDITOR_PASSWORD)@@ -117,9 +111,7 @@ def test_update_my_user(assert response.json()["data"]["displayName"] == "self updated editor"-def test_admin_cannot_update_self_via_id(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-) -> None:+def test_admin_cannot_update_self_via_id(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> None:"""Verify PUT /api/v2/users/{own_id} is rejected (self-mutation guard)."""admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -140,9 +132,7 @@ def test_admin_cannot_update_self_via_id(assert response.status_code == HTTPStatus.BAD_REQUEST-def test_editor_cannot_list_users(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-) -> None:+def test_editor_cannot_list_users(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> None:"""Verify non-admin cannot call GET /api/v2/users."""editor_token = get_token(USER_EDITOR_EMAIL, USER_EDITOR_PASSWORD)@@ -154,9 +144,7 @@ def test_editor_cannot_list_users(assert response.status_code == HTTPStatus.FORBIDDEN-def test_editor_cannot_get_other_user(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-) -> None:+def test_editor_cannot_get_other_user(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> None:"""Verify non-admin cannot call GET /api/v2/users/{other_id}."""admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)editor_token = get_token(USER_EDITOR_EMAIL, USER_EDITOR_PASSWORD)@@ -177,9 +165,7 @@ def test_editor_cannot_get_other_user(assert response.status_code == HTTPStatus.FORBIDDEN-def test_editor_cannot_update_other_user(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-) -> None:+def test_editor_cannot_update_other_user(signoz: types.SigNoz, get_token: Callable[[str, str], str]) -> None:"""Verify non-admin cannot call PUT /api/v2/users/{other_id}."""admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)editor_token = get_token(USER_EDITOR_EMAIL, USER_EDITOR_PASSWORD)diff --git a/tests/integration/tests/preference/01_user.py b/tests/integration/tests/preference/01_user.pyindex 748371ac1f..d36f3bcaeb 100644--- a/tests/integration/tests/preference/01_user.py+++ b/tests/integration/tests/preference/01_user.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -36,9 +36,7 @@ def test_get_set_user_preference_by_name(# preference does not existresponse = requests.get(- signoz.self.host_configs["8080"].get(- "/api/v1/user/preferences/somenonexistentpreference"- ),+ signoz.self.host_configs["8080"].get("/api/v1/user/preferences/somenonexistentpreference"),headers={"Authorization": f"Bearer {admin_token}"},timeout=2,)@@ -48,9 +46,7 @@ def test_get_set_user_preference_by_name(# get preference by nameresponse = requests.get(- signoz.self.host_configs["8080"].get(- "/api/v1/user/preferences/welcome_checklist_do_later"- ),+ signoz.self.host_configs["8080"].get("/api/v1/user/preferences/welcome_checklist_do_later"),headers={"Authorization": f"Bearer {admin_token}"},timeout=2,)@@ -62,9 +58,7 @@ def test_get_set_user_preference_by_name(# play with welcome_checklist_do_later preferenceresponse = requests.put(- signoz.self.host_configs["8080"].get(- "/api/v1/user/preferences/welcome_checklist_do_later"- ),+ signoz.self.host_configs["8080"].get("/api/v1/user/preferences/welcome_checklist_do_later"),headers={"Authorization": f"Bearer {admin_token}"},json={"value": True},timeout=2,@@ -74,9 +68,7 @@ def test_get_set_user_preference_by_name(# get preference by nameresponse = requests.get(- signoz.self.host_configs["8080"].get(- "/api/v1/user/preferences/welcome_checklist_do_later"- ),+ signoz.self.host_configs["8080"].get("/api/v1/user/preferences/welcome_checklist_do_later"),headers={"Authorization": f"Bearer {admin_token}"},timeout=2,)diff --git a/tests/integration/tests/preference/02_org.py b/tests/integration/tests/preference/02_org.pyindex 7036e9a1a7..b6da71c4a2 100644--- a/tests/integration/tests/preference/02_org.py+++ b/tests/integration/tests/preference/02_org.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -36,9 +36,7 @@ def test_get_set_org_preference_by_name(# preference does not existresponse = requests.get(- signoz.self.host_configs["8080"].get(- "/api/v1/org/preferences/somenonexistentpreference"- ),+ signoz.self.host_configs["8080"].get("/api/v1/org/preferences/somenonexistentpreference"),headers={"Authorization": f"Bearer {admin_token}"},timeout=2,)diff --git a/tests/integration/tests/querier/01_logs.py b/tests/integration/tests/querier/01_logs.pyindex d0f26759c8..f249fd8948 100644--- a/tests/integration/tests/querier/01_logs.py+++ b/tests/integration/tests/querier/01_logs.py@@ -1,6 +1,6 @@-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Callable, Listimport pytestimport requests@@ -21,7 +21,7 @@ def test_logs_list(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Setup:@@ -39,7 +39,7 @@ def test_logs_list(insert_logs([Logs(- timestamp=datetime.now(tz=timezone.utc) - timedelta(seconds=1),+ timestamp=datetime.now(tz=UTC) - timedelta(seconds=1),resources={"deployment.environment": "production","service.name": "java",@@ -60,7 +60,7 @@ def test_logs_list(severity_text="DEBUG",),Logs(- timestamp=datetime.now(tz=timezone.utc),+ timestamp=datetime.now(tz=UTC),resources={"deployment.environment": "production","service.name": "go",@@ -95,11 +95,8 @@ def test_logs_list(},json={"schemaVersion": "v1",- "start": int(- (datetime.now(tz=timezone.utc) - timedelta(seconds=10)).timestamp()- * 1000- ),- "end": int(datetime.now(tz=timezone.utc).timestamp() * 1000),+ "start": int((datetime.now(tz=UTC) - timedelta(seconds=10)).timestamp() * 1000),+ "end": int(datetime.now(tz=UTC).timestamp() * 1000),"requestType": "raw","compositeQuery": {"queries": [@@ -134,9 +131,7 @@ def test_logs_list(rows = results[0]["rows"]assert len(rows) == 2- assert (- rows[0]["data"]["body"] == "This is a log message, coming from a go application"- )+ assert rows[0]["data"]["body"] == "This is a log message, coming from a go application"assert rows[0]["data"]["resources_string"] == {"cloud.account.id": "001","cloud.provider": "integration",@@ -155,10 +150,7 @@ def test_logs_list(}assert rows[0]["data"]["attributes_number"] == {"code.line": 120}- assert (- rows[1]["data"]["body"]- == "This is a log message, coming from a java application"- )+ assert rows[1]["data"]["body"] == "This is a log message, coming from a java application"assert rows[1]["data"]["resources_string"] == {"cloud.account.id": "001","cloud.provider": "integration",@@ -417,9 +409,9 @@ def test_logs_list_with_order_by(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],order_by_context: str,- expected_order: List[str],+ expected_order: list[str],) -> None:"""Setup:@@ -435,7 +427,7 @@ def test_logs_list_with_order_by(insert_logs([Logs(- timestamp=datetime.now(tz=timezone.utc) - timedelta(seconds=3),+ timestamp=datetime.now(tz=UTC) - timedelta(seconds=3),attributes=attribute_resource_pair[i][0],resources=attribute_resource_pair[i][1],body="Log with DEBUG severity",@@ -483,10 +475,8 @@ def test_logs_list_with_order_by(response = make_query_request(signoz,token,- start_ms=int(- (datetime.now(tz=timezone.utc) - timedelta(minutes=1)).timestamp() * 1000- ),- end_ms=int(datetime.now(tz=timezone.utc).timestamp() * 1000),+ start_ms=int((datetime.now(tz=UTC) - timedelta(minutes=1)).timestamp() * 1000),+ end_ms=int(datetime.now(tz=UTC).timestamp() * 1000),request_type="raw",queries=[query],)@@ -495,10 +485,8 @@ def test_logs_list_with_order_by(response_with_inline_context = make_query_request(signoz,token,- start_ms=int(- (datetime.now(tz=timezone.utc) - timedelta(minutes=1)).timestamp() * 1000- ),- end_ms=int(datetime.now(tz=timezone.utc).timestamp() * 1000),+ start_ms=int((datetime.now(tz=UTC) - timedelta(minutes=1)).timestamp() * 1000),+ end_ms=int(datetime.now(tz=UTC).timestamp() * 1000),request_type="raw",queries=[query_with_inline_context],)@@ -519,7 +507,7 @@ def test_logs_time_series_count(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Setup:@@ -532,23 +520,20 @@ def test_logs_time_series_count(3. count() of all logs where service.name = "erlang" OR cloud.account.id = "000" for last 5 minutes4. count() of all logs grouped by host.name for the last 5 minutes"""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- logs: List[Logs] = []+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)+ logs: list[Logs] = []for i in range(17):logs.append(Logs(- timestamp=now- - timedelta(- microseconds=i + 1- ), # These logs will be grouped in the now - 1 minute bucket+ timestamp=now - timedelta(microseconds=i + 1), # These logs will be grouped in the now - 1 minute bucketresources={"deployment.environment": "production","service.name": "java","os.type": "linux",- "host.name": f"linux-00{i%2}",+ "host.name": f"linux-00{i % 2}","cloud.provider": "integration",- "cloud.account.id": f"00{i%2}",+ "cloud.account.id": f"00{i % 2}",},attributes={"log.iostream": "stdout",@@ -558,25 +543,21 @@ def test_logs_time_series_count("code.line": i + 1,"telemetry.sdk.language": "java",},- body=f"This is a log message, number {i+1} coming from a java application",+ body=f"This is a log message, number {i + 1} coming from a java application",severity_text="DEBUG",))for i in range(23):logs.append(Logs(- timestamp=now- - timedelta(minutes=1)- - timedelta(- microseconds=i + 1- ), # These logs will be grouped in the now - 2 minute bucket+ timestamp=now - timedelta(minutes=1) - timedelta(microseconds=i + 1), # These logs will be grouped in the now - 2 minute bucketresources={"deployment.environment": "production","service.name": "erlang","os.type": "linux",- "host.name": f"linux-00{i%2}",+ "host.name": f"linux-00{i % 2}","cloud.provider": "integration",- "cloud.account.id": f"00{i%2}",+ "cloud.account.id": f"00{i % 2}",},attributes={"log.iostream": "stdout",@@ -586,25 +567,21 @@ def test_logs_time_series_count("code.line": i + 1,"telemetry.sdk.language": "erlang",},- body=f"This is a log message, number {i+1} coming from a erlang application",+ body=f"This is a log message, number {i + 1} coming from a erlang application",severity_text="ERROR",))for i in range(29):logs.append(Logs(- timestamp=now- - timedelta(minutes=2)- - timedelta(- microseconds=i + 1- ), # These logs will be grouped in the now - 3 minute bucket+ timestamp=now - timedelta(minutes=2) - timedelta(microseconds=i + 1), # These logs will be grouped in the now - 3 minute bucketresources={"deployment.environment": "production","service.name": "go","os.type": "linux",- "host.name": f"linux-00{i%2}",+ "host.name": f"linux-00{i % 2}","cloud.provider": "integration",- "cloud.account.id": f"00{i%2}",+ "cloud.account.id": f"00{i % 2}",},attributes={"log.iostream": "stdout",@@ -614,7 +591,7 @@ def test_logs_time_series_count("code.line": i + 1,"telemetry.sdk.language": "go",},- body=f"This is a log message, number {i+1} coming from a go application",+ body=f"This is a log message, number {i + 1} coming from a go application",severity_text="WARNING",))@@ -631,19 +608,8 @@ def test_logs_time_series_count(},json={"schemaVersion": "v1",- "start": int(- (- datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- - timedelta(minutes=5)- ).timestamp()- * 1000- ),- "end": int(- datetime.now(tz=timezone.utc)- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "start": int((datetime.now(tz=UTC).replace(second=0, microsecond=0) - timedelta(minutes=5)).timestamp() * 1000),+ "end": int(datetime.now(tz=UTC).replace(second=0, microsecond=0).timestamp() * 1000),"requestType": "time_series","compositeQuery": {"queries": [@@ -686,30 +652,15 @@ def test_logs_time_series_count(if inot in [{- "timestamp": int(- (now - timedelta(minutes=3))- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "timestamp": int((now - timedelta(minutes=3)).replace(second=0, microsecond=0).timestamp() * 1000),"value": 29,},{- "timestamp": int(- (now - timedelta(minutes=2))- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "timestamp": int((now - timedelta(minutes=2)).replace(second=0, microsecond=0).timestamp() * 1000),"value": 23,},{- "timestamp": int(- (now - timedelta(minutes=1))- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "timestamp": int((now - timedelta(minutes=1)).replace(second=0, microsecond=0).timestamp() * 1000),"value": 17,},]@@ -724,19 +675,8 @@ def test_logs_time_series_count(},json={"schemaVersion": "v1",- "start": int(- (- datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- - timedelta(minutes=5)- ).timestamp()- * 1000- ),- "end": int(- datetime.now(tz=timezone.utc)- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "start": int((datetime.now(tz=UTC).replace(second=0, microsecond=0) - timedelta(minutes=5)).timestamp() * 1000),+ "end": int(datetime.now(tz=UTC).replace(second=0, microsecond=0).timestamp() * 1000),"requestType": "time_series","compositeQuery": {"queries": [@@ -780,30 +720,15 @@ def test_logs_time_series_count(if inot in [{- "timestamp": int(- (now - timedelta(minutes=3))- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "timestamp": int((now - timedelta(minutes=3)).replace(second=0, microsecond=0).timestamp() * 1000),"value": 1,},{- "timestamp": int(- (now - timedelta(minutes=2))- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "timestamp": int((now - timedelta(minutes=2)).replace(second=0, microsecond=0).timestamp() * 1000),"value": 1,},{- "timestamp": int(- (now - timedelta(minutes=1))- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "timestamp": int((now - timedelta(minutes=1)).replace(second=0, microsecond=0).timestamp() * 1000),"value": 1,},]@@ -818,19 +743,8 @@ def test_logs_time_series_count(},json={"schemaVersion": "v1",- "start": int(- (- datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- - timedelta(minutes=5)- ).timestamp()- * 1000- ),- "end": int(- datetime.now(tz=timezone.utc)- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "start": int((datetime.now(tz=UTC).replace(second=0, microsecond=0) - timedelta(minutes=5)).timestamp() * 1000),+ "end": int(datetime.now(tz=UTC).replace(second=0, microsecond=0).timestamp() * 1000),"requestType": "time_series","compositeQuery": {"queries": [@@ -841,9 +755,7 @@ def test_logs_time_series_count("signal": "logs","stepInterval": 60,"disabled": False,- "filter": {- "expression": "service.name = 'erlang' OR cloud.account.id = '000'"- },+ "filter": {"expression": "service.name = 'erlang' OR cloud.account.id = '000'"},"having": {"expression": ""},"aggregations": [{"expression": "count()"}],},@@ -871,24 +783,15 @@ def test_logs_time_series_count(# Do not care about the order of the valuesassert {- "timestamp": int(- (now - timedelta(minutes=3)).replace(second=0, microsecond=0).timestamp()- * 1000- ),+ "timestamp": int((now - timedelta(minutes=3)).replace(second=0, microsecond=0).timestamp() * 1000),"value": 15,} in valuesassert {- "timestamp": int(- (now - timedelta(minutes=2)).replace(second=0, microsecond=0).timestamp()- * 1000- ),+ "timestamp": int((now - timedelta(minutes=2)).replace(second=0, microsecond=0).timestamp() * 1000),"value": 23,} in valuesassert {- "timestamp": int(- (now - timedelta(minutes=1)).replace(second=0, microsecond=0).timestamp()- * 1000- ),+ "timestamp": int((now - timedelta(minutes=1)).replace(second=0, microsecond=0).timestamp() * 1000),"value": 9,} in values@@ -901,19 +804,8 @@ def test_logs_time_series_count(},json={"schemaVersion": "v1",- "start": int(- (- datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- - timedelta(minutes=5)- ).timestamp()- * 1000- ),- "end": int(- datetime.now(tz=timezone.utc)- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "start": int((datetime.now(tz=UTC).replace(second=0, microsecond=0) - timedelta(minutes=5)).timestamp() * 1000),+ "end": int(datetime.now(tz=UTC).replace(second=0, microsecond=0).timestamp() * 1000),"requestType": "time_series","compositeQuery": {"queries": [@@ -931,9 +823,7 @@ def test_logs_time_series_count("fieldContext": "resource",}],- "order": [- {"key": {"name": "host.name"}, "direction": "desc"}- ],+ "order": [{"key": {"name": "host.name"}, "direction": "desc"}],"having": {"expression": ""},"aggregations": [{"expression": "count()"}],},@@ -947,17 +837,8 @@ def test_logs_time_series_count(response_with_inline_context = make_query_request(signoz,token,- start_ms=int(- (- datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- - timedelta(minutes=5)- ).timestamp()- * 1000- ),- end_ms=int(- datetime.now(tz=timezone.utc).replace(second=0, microsecond=0).timestamp()- * 1000- ),+ start_ms=int((datetime.now(tz=UTC).replace(second=0, microsecond=0) - timedelta(minutes=5)).timestamp() * 1000),+ end_ms=int(datetime.now(tz=UTC).replace(second=0, microsecond=0).timestamp() * 1000),request_type="time_series",queries=[{@@ -1004,24 +885,15 @@ def test_logs_time_series_count(}]assert {- "timestamp": int(- (now - timedelta(minutes=3)).replace(second=0, microsecond=0).timestamp()- * 1000- ),+ "timestamp": int((now - timedelta(minutes=3)).replace(second=0, microsecond=0).timestamp() * 1000),"value": 14,} in series[0]["values"]assert {- "timestamp": int(- (now - timedelta(minutes=2)).replace(second=0, microsecond=0).timestamp()- * 1000- ),+ "timestamp": int((now - timedelta(minutes=2)).replace(second=0, microsecond=0).timestamp() * 1000),"value": 11,} in series[0]["values"]assert {- "timestamp": int(- (now - timedelta(minutes=1)).replace(second=0, microsecond=0).timestamp()- * 1000- ),+ "timestamp": int((now - timedelta(minutes=1)).replace(second=0, microsecond=0).timestamp() * 1000),"value": 8,} in series[0]["values"]@@ -1034,24 +906,15 @@ def test_logs_time_series_count(}]assert {- "timestamp": int(- (now - timedelta(minutes=3)).replace(second=0, microsecond=0).timestamp()- * 1000- ),+ "timestamp": int((now - timedelta(minutes=3)).replace(second=0, microsecond=0).timestamp() * 1000),"value": 15,} in series[1]["values"]assert {- "timestamp": int(- (now - timedelta(minutes=2)).replace(second=0, microsecond=0).timestamp()- * 1000- ),+ "timestamp": int((now - timedelta(minutes=2)).replace(second=0, microsecond=0).timestamp() * 1000),"value": 12,} in series[1]["values"]assert {- "timestamp": int(- (now - timedelta(minutes=1)).replace(second=0, microsecond=0).timestamp()- * 1000- ),+ "timestamp": int((now - timedelta(minutes=1)).replace(second=0, microsecond=0).timestamp() * 1000),"value": 9,} in series[1]["values"]@@ -1060,7 +923,7 @@ def test_datatype_collision(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Setup:@@ -1072,8 +935,8 @@ def test_datatype_collision(3. response.time with string values in numeric field4. Edge cases: empty strings"""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- logs: List[Logs] = []+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)+ logs: list[Logs] = []# Logs with string values in numeric fieldsseverity_levels = ["DEBUG", "INFO", "WARN"]@@ -1085,9 +948,9 @@ def test_datatype_collision("deployment.environment": "production","service.name": "java","os.type": "linux",- "host.name": f"linux-00{i%2}",+ "host.name": f"linux-00{i % 2}","cloud.provider": "integration",- "cloud.account.id": f"00{i%2}",+ "cloud.account.id": f"00{i % 2}",},attributes={"log.iostream": "stdout",@@ -1099,7 +962,7 @@ def test_datatype_collision("http.status_code": "200", # String value"response.time": "123.45", # String value},- body=f"Test log {i+1} with string values",+ body=f"Test log {i + 1} with string values",severity_text=severity_levels[i], # DEBUG(5-8), INFO(9-12), WARN(13-16)))@@ -1114,9 +977,9 @@ def test_datatype_collision("deployment.environment": "production","service.name": "go","os.type": "linux",- "host.name": f"linux-00{i%2}",+ "host.name": f"linux-00{i % 2}","cloud.provider": "integration",- "cloud.account.id": f"00{i%2}",+ "cloud.account.id": f"00{i % 2}",},attributes={"log.iostream": "stdout",@@ -1128,10 +991,8 @@ def test_datatype_collision("http.status_code": 404, # Numeric value"response.time": 456.78, # Numeric value},- body=f"Test log {i+4} with numeric values",- severity_text=severity_levels_2[- i- ], # ERROR(17-20), FATAL(21-24), TRACE(1-4), DEBUG(5-8)+ body=f"Test log {i + 4} with numeric values",+ severity_text=severity_levels_2[i], # ERROR(17-20), FATAL(21-24), TRACE(1-4), DEBUG(5-8)))@@ -1175,19 +1036,8 @@ def test_datatype_collision(},json={"schemaVersion": "v1",- "start": int(- (- datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- - timedelta(minutes=5)- ).timestamp()- * 1000- ),- "end": int(- datetime.now(tz=timezone.utc)- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "start": int((datetime.now(tz=UTC).replace(second=0, microsecond=0) - timedelta(minutes=5)).timestamp() * 1000),+ "end": int(datetime.now(tz=UTC).replace(second=0, microsecond=0).timestamp() * 1000),"requestType": "scalar","compositeQuery": {"queries": [@@ -1227,19 +1077,8 @@ def test_datatype_collision(},json={"schemaVersion": "v1",- "start": int(- (- datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- - timedelta(minutes=5)- ).timestamp()- * 1000- ),- "end": int(- datetime.now(tz=timezone.utc)- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "start": int((datetime.now(tz=UTC).replace(second=0, microsecond=0) - timedelta(minutes=5)).timestamp() * 1000),+ "end": int(datetime.now(tz=UTC).replace(second=0, microsecond=0).timestamp() * 1000),"requestType": "scalar","compositeQuery": {"queries": [@@ -1279,19 +1118,8 @@ def test_datatype_collision(},json={"schemaVersion": "v1",- "start": int(- (- datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- - timedelta(minutes=5)- ).timestamp()- * 1000- ),- "end": int(- datetime.now(tz=timezone.utc)- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "start": int((datetime.now(tz=UTC).replace(second=0, microsecond=0) - timedelta(minutes=5)).timestamp() * 1000),+ "end": int(datetime.now(tz=UTC).replace(second=0, microsecond=0).timestamp() * 1000),"requestType": "scalar","compositeQuery": {"queries": [@@ -1302,9 +1130,7 @@ def test_datatype_collision("signal": "logs","stepInterval": 60,"disabled": False,- "filter": {- "expression": "severity_number = '13'"- }, # String comparison with numeric field+ "filter": {"expression": "severity_number = '13'"}, # String comparison with numeric field"having": {"expression": ""},"aggregations": [{"expression": "count()"}],},@@ -1334,19 +1160,8 @@ def test_datatype_collision(},json={"schemaVersion": "v1",- "start": int(- (- datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- - timedelta(minutes=5)- ).timestamp()- * 1000- ),- "end": int(- datetime.now(tz=timezone.utc)- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "start": int((datetime.now(tz=UTC).replace(second=0, microsecond=0) - timedelta(minutes=5)).timestamp() * 1000),+ "end": int(datetime.now(tz=UTC).replace(second=0, microsecond=0).timestamp() * 1000),"requestType": "scalar","compositeQuery": {"queries": [@@ -1357,9 +1172,7 @@ def test_datatype_collision("signal": "logs","stepInterval": 60,"disabled": False,- "filter": {- "expression": "http.status_code = 200"- }, # Numeric comparison with string field+ "filter": {"expression": "http.status_code = 200"}, # Numeric comparison with string field"having": {"expression": ""},"aggregations": [{"expression": "count()"}],},@@ -1389,19 +1202,8 @@ def test_datatype_collision(},json={"schemaVersion": "v1",- "start": int(- (- datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- - timedelta(minutes=5)- ).timestamp()- * 1000- ),- "end": int(- datetime.now(tz=timezone.utc)- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "start": int((datetime.now(tz=UTC).replace(second=0, microsecond=0) - timedelta(minutes=5)).timestamp() * 1000),+ "end": int(datetime.now(tz=UTC).replace(second=0, microsecond=0).timestamp() * 1000),"requestType": "scalar","compositeQuery": {"queries": [@@ -1412,9 +1214,7 @@ def test_datatype_collision("signal": "logs","stepInterval": 60,"disabled": False,- "filter": {- "expression": "http.status_code = '404'"- }, # String comparison with numeric field+ "filter": {"expression": "http.status_code = '404'"}, # String comparison with numeric field"having": {"expression": ""},"aggregations": [{"expression": "count()"}],},@@ -1444,19 +1244,8 @@ def test_datatype_collision(},json={"schemaVersion": "v1",- "start": int(- (- datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- - timedelta(minutes=5)- ).timestamp()- * 1000- ),- "end": int(- datetime.now(tz=timezone.utc)- .replace(second=0, microsecond=0)- .timestamp()- * 1000- ),+ "start": int((datetime.now(tz=UTC).replace(second=0, microsecond=0) - timedelta(minutes=5)).timestamp() * 1000),+ "end": int(datetime.now(tz=UTC).replace(second=0, microsecond=0).timestamp() * 1000),"requestType": "scalar","compositeQuery": {"queries": [@@ -1467,9 +1256,7 @@ def test_datatype_collision("signal": "logs","stepInterval": 60,"disabled": False,- "filter": {- "expression": "http.status_code = ''"- }, # Empty string comparison+ "filter": {"expression": "http.status_code = ''"}, # Empty string comparison"having": {"expression": ""},"aggregations": [{"expression": "count()"}],},@@ -1495,13 +1282,13 @@ def test_logs_fill_gaps(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Test fillGaps for logs without groupBy."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- logs: List[Logs] = [+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)+ logs: list[Logs] = [Logs(timestamp=now - timedelta(minutes=3),resources={"service.name": "test-service"},@@ -1581,13 +1368,13 @@ def test_logs_fill_gaps_with_group_by(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Test fillGaps for logs with groupBy."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- logs: List[Logs] = [+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)+ logs: list[Logs] = [Logs(timestamp=now - timedelta(minutes=3),resources={"service.name": "service-a"},@@ -1682,13 +1469,13 @@ def test_logs_fill_gaps_formula(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Test fillGaps for logs with formula."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- logs: List[Logs] = [+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)+ logs: list[Logs] = [Logs(timestamp=now - timedelta(minutes=3),resources={"service.name": "test"},@@ -1789,13 +1576,13 @@ def test_logs_fill_gaps_formula_with_group_by(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Test fillGaps for logs with formula and groupBy."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- logs: List[Logs] = [+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)+ logs: list[Logs] = [Logs(timestamp=now - timedelta(minutes=3),resources={"service.name": "group1"},@@ -1917,13 +1704,13 @@ def test_logs_fill_zero(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Test fillZero function for logs without groupBy."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- logs: List[Logs] = [+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)+ logs: list[Logs] = [Logs(timestamp=now - timedelta(minutes=3),resources={"service.name": "test"},@@ -1993,13 +1780,13 @@ def test_logs_fill_zero_with_group_by(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Test fillZero function for logs with groupBy."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- logs: List[Logs] = [+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)+ logs: list[Logs] = [Logs(timestamp=now - timedelta(minutes=3),resources={"service.name": "service-a"},@@ -2093,13 +1880,13 @@ def test_logs_fill_zero_formula(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Test fillZero function for logs with formula."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- logs: List[Logs] = [+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)+ logs: list[Logs] = [Logs(timestamp=now - timedelta(minutes=3),resources={"service.name": "test"},@@ -2201,13 +1988,13 @@ def test_logs_fill_zero_formula_with_group_by(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Test fillZero function for logs with formula and groupBy."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)- logs: List[Logs] = [+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)+ logs: list[Logs] = [Logs(timestamp=now - timedelta(minutes=3),resources={"service.name": "group1"},diff --git a/tests/integration/tests/querier/02_logs_json_body.py b/tests/integration/tests/querier/02_logs_json_body.pyindex bb76cbd724..25b9c2de8b 100644--- a/tests/integration/tests/querier/02_logs_json_body.py+++ b/tests/integration/tests/querier/02_logs_json_body.py@@ -1,7 +1,7 @@import json-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Callable, Listimport requests@@ -14,7 +14,7 @@ def test_logs_json_body_simple_searches(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Setup:@@ -27,7 +27,7 @@ def test_logs_json_body_simple_searches(4. Search by body.level = "error" with CONTAINS5. Search by body.code > 100 (comparison)"""- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)# Log with simple JSON bodylog1_body = json.dumps(@@ -108,9 +108,7 @@ def test_logs_json_body_simple_searches("disabled": False,"limit": 100,"offset": 0,- "filter": {- "expression": 'body.message CONTAINS "logged in"'- },+ "filter": {"expression": 'body.message CONTAINS "logged in"'},"order": [{"key": {"name": "timestamp"}, "direction": "desc"},],@@ -303,7 +301,7 @@ def test_logs_json_body_nested_keys(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Setup:@@ -315,7 +313,7 @@ def test_logs_json_body_nested_keys(3. Search by body.response.latency = 123.45 (floating point)4. Search by body.response.status.code = 200"""- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)log1_body = json.dumps({@@ -477,9 +475,7 @@ def test_logs_json_body_nested_keys(assert len(results) == 1rows = results[0]["rows"]assert len(rows) == 2 # log1 and log3 have secure = true- secure_values = [- json.loads(row["data"]["body"])["request"]["secure"] for row in rows- ]+ secure_values = [json.loads(row["data"]["body"])["request"]["secure"] for row in rows]assert all(secure is True for secure in secure_values)# Test 3: Search by body.response.latency = 123.45@@ -563,9 +559,7 @@ def test_logs_json_body_nested_keys(assert len(results) == 1rows = results[0]["rows"]assert len(rows) == 2 # log1 and log3 have status.code = 200- status_codes = [- json.loads(row["data"]["body"])["response"]["status"]["code"] for row in rows- ]+ status_codes = [json.loads(row["data"]["body"])["response"]["status"]["code"] for row in rows]assert all(code == 200 for code in status_codes)@@ -573,7 +567,7 @@ def test_logs_json_body_array_membership(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Setup:@@ -584,7 +578,7 @@ def test_logs_json_body_array_membership(2. Search by has(body.ids[*], 123) - numeric array3. Search by has(body.flags[*], true) - boolean array"""- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)log1_body = json.dumps({@@ -781,7 +775,7 @@ def test_logs_json_body_listing(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Setup:@@ -794,7 +788,7 @@ def test_logs_json_body_listing(4. List logs with multiple filters combined (AND/OR)5. Count logs matching JSON body filters"""- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)logs_data = [{@@ -1024,9 +1018,7 @@ def test_logs_json_body_listing("disabled": False,"limit": 100,"offset": 0,- "filter": {- "expression": 'body.service = "auth" AND body.action = "login"'- },+ "filter": {"expression": 'body.service = "auth" AND body.action = "login"'},"order": [{"key": {"name": "timestamp"}, "direction": "desc"},],@@ -1070,9 +1062,7 @@ def test_logs_json_body_listing("disabled": False,"limit": 100,"offset": 0,- "filter": {- "expression": 'body.service = "auth" OR body.service = "payment"'- },+ "filter": {"expression": 'body.service = "auth" OR body.service = "payment"'},"order": [{"key": {"name": "timestamp"}, "direction": "desc"},],diff --git a/tests/integration/tests/querier/03_metrics.py b/tests/integration/tests/querier/03_metrics.pyindex 97dfa6b77a..fd97a9fd4b 100644--- a/tests/integration/tests/querier/03_metrics.py+++ b/tests/integration/tests/querier/03_metrics.py@@ -1,6 +1,7 @@-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Any, Callable, Dict, List+from typing import Anyimport pytestimport requests@@ -24,16 +25,14 @@ FILL_ZERO = "fillZero"HISTOGRAM_FILE = get_testdata_file_path("histogram_data_1h.jsonl")-def _build_format_options(fill_mode: str) -> Dict[str, Any]:+def _build_format_options(fill_mode: str) -> dict[str, Any]:return {"formatTableResultForUI": False,"fillGaps": fill_mode == FILL_GAPS,}-def _maybe_add_functions(- spec: Dict[str, Any], fill_mode: str, is_formula: bool = False-) -> None:+def _maybe_add_functions(spec: dict[str, Any], fill_mode: str, is_formula: bool = False) -> None:"""Add fillZero function to the spec when using fillZero mode.For builder_query: functions go on the query spec.@@ -44,29 +43,27 @@ def _maybe_add_functions(spec["functions"] = [{"name": "fillZero"}]-def _maybe_add_formula_functions(spec: Dict[str, Any], fill_mode: str) -> None:+def _maybe_add_formula_functions(spec: dict[str, Any], fill_mode: str) -> None:if fill_mode == FILL_ZERO:spec["functions"] = [{"name": "fillZero"}]- "fill_mode", [FILL_GAPS, FILL_ZERO], ids=["fillGaps", "fillZero"]-)[email protected]("fill_mode", [FILL_GAPS, FILL_ZERO], ids=["fillGaps", "fillZero"])def test_metrics_fill_no_group_by(fill_mode: str,signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:"""Test that gaps in time series are filled with zeros (no groupBy)."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)metric_name = f"test_{fill_mode}_metric"# Insert at minute 3 and minute 1 (gap at minute 2)- metrics: List[Metrics] = [+ metrics: list[Metrics] = [Metrics(metric_name=metric_name,labels={"service": "test-service"},@@ -92,7 +89,7 @@ def test_metrics_fill_no_group_by(start_ms = int((now - timedelta(minutes=5)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)- query_spec: Dict[str, Any] = {+ query_spec: dict[str, Any] = {"name": "A","signal": "metrics","aggregations": [@@ -117,9 +114,7 @@ def test_metrics_fill_no_group_by("start": start_ms,"end": end_ms,"requestType": "time_series",- "compositeQuery": {- "queries": [{"type": "builder_query", "spec": query_spec}]- },+ "compositeQuery": {"queries": [{"type": "builder_query", "spec": query_spec}]},"formatOptions": _build_format_options(fill_mode),},)@@ -144,23 +139,21 @@ def test_metrics_fill_no_group_by()- "fill_mode", [FILL_GAPS, FILL_ZERO], ids=["fillGaps", "fillZero"]-)[email protected]("fill_mode", [FILL_GAPS, FILL_ZERO], ids=["fillGaps", "fillZero"])def test_metrics_fill_with_group_by(fill_mode: str,signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:"""Test that gaps are filled per group when using groupBy."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)metric_name = f"test_{fill_mode}_grouped_metric"- metrics: List[Metrics] = [+ metrics: list[Metrics] = [Metrics(metric_name=metric_name,labels={"my_tag": "service-a"},@@ -196,7 +189,7 @@ def test_metrics_fill_with_group_by(start_ms = int((now - timedelta(minutes=5)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)- query_spec: Dict[str, Any] = {+ query_spec: dict[str, Any] = {"name": "A","signal": "metrics","aggregations": [@@ -228,9 +221,7 @@ def test_metrics_fill_with_group_by("start": start_ms,"end": end_ms,"requestType": "time_series",- "compositeQuery": {- "queries": [{"type": "builder_query", "spec": query_spec}]- },+ "compositeQuery": {"queries": [{"type": "builder_query", "spec": query_spec}]},"formatOptions": _build_format_options(fill_mode),},)@@ -252,7 +243,7 @@ def test_metrics_fill_with_group_by(series_by_tag = index_series_by_label(series, "my_tag")assert set(series_by_tag.keys()) == {"service-a", "service-b"}- expectations: Dict[str, Dict[int, float]] = {+ expectations: dict[str, dict[int, float]] = {"service-a": {ts_min_2: 20.0},"service-b": {ts_min_2: 5.0},}@@ -266,24 +257,22 @@ def test_metrics_fill_with_group_by()- "fill_mode", [FILL_GAPS, FILL_ZERO], ids=["fillGaps", "fillZero"]-)[email protected]("fill_mode", [FILL_GAPS, FILL_ZERO], ids=["fillGaps", "fillZero"])def test_metrics_fill_formula(fill_mode: str,signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:"""Test that formula results have gaps filled."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)metric_name_a = f"test_{fill_mode}_formula_a"metric_name_b = f"test_{fill_mode}_formula_b"- metrics: List[Metrics] = [+ metrics: list[Metrics] = [Metrics(metric_name=metric_name_a,labels={"service": "test"},@@ -319,7 +308,7 @@ def test_metrics_fill_formula(start_ms = int((now - timedelta(minutes=5)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)- formula_spec: Dict[str, Any] = {+ formula_spec: dict[str, Any] = {"name": "F1","expression": "A + B","disabled": False,@@ -393,9 +382,7 @@ def test_metrics_fill_formula(aggregations = f1.get("aggregations") or []assert len(aggregations) == 1series = aggregations[0].get("series") or []- assert (- len(series) >= 1- ), f"Expected at least one series for F1, got {aggregations[0]}"+ assert len(series) >= 1, f"Expected at least one series for F1, got {aggregations[0]}"assert_minutely_bucket_values(series[0]["values"],@@ -405,20 +392,18 @@ def test_metrics_fill_formula()- "fill_mode", [FILL_GAPS, FILL_ZERO], ids=["fillGaps", "fillZero"]-)[email protected]("fill_mode", [FILL_GAPS, FILL_ZERO], ids=["fillGaps", "fillZero"])def test_metrics_fill_formula_with_group_by(fill_mode: str,signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:"""Test that formula results with groupBy have gaps filled per group."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)metric_name_a = f"test_{fill_mode}_formula_grp_a"metric_name_b = f"test_{fill_mode}_formula_grp_b"@@ -430,7 +415,7 @@ def test_metrics_fill_formula_with_group_by(}]- metrics: List[Metrics] = [+ metrics: list[Metrics] = [Metrics(metric_name=metric_name_a,labels={"my_tag": "group1"},@@ -494,7 +479,7 @@ def test_metrics_fill_formula_with_group_by(start_ms = int((now - timedelta(minutes=5)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)- formula_spec: Dict[str, Any] = {+ formula_spec: dict[str, Any] = {"name": "F1","expression": "A + B","disabled": False,@@ -574,7 +559,7 @@ def test_metrics_fill_formula_with_group_by(series_by_group = index_series_by_label(series, "my_tag")assert set(series_by_group.keys()) == {"group1", "group2"}- expectations: Dict[str, Dict[int, float]] = {+ expectations: dict[str, dict[int, float]] = {"group1": {ts_min_3: 110.0},"group2": {ts_min_2: 220.0},}@@ -592,10 +577,10 @@ def test_histogram_p90_returns_warning_outside_data_window(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)metric_name = "test_p90_last_seen_bucket"metrics = Metrics.load_from_file(@@ -626,9 +611,7 @@ def test_histogram_p90_returns_warning_outside_data_window(data = response.json()warnings = get_all_warnings(data)assert len(warnings) == 1- assert warnings[0]["message"].startswith(- f"no data found for the metric {metric_name}"- )+ assert warnings[0]["message"].startswith(f"no data found for the metric {metric_name}")def test_non_existent_metrics_returns_404(@@ -637,7 +620,7 @@ def test_non_existent_metrics_returns_404(get_token: Callable[[str, str], str],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)metric_name = "whatevergoennnsgoeshere"token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -654,10 +637,7 @@ def test_non_existent_metrics_returns_404(response = make_query_request(signoz, token, start_2h, end_ms, [query])assert response.status_code == HTTPStatus.NOT_FOUND- assert (- get_error_message(response.json())- == "could not find the metric whatevergoennnsgoeshere"- )+ assert get_error_message(response.json()) == "could not find the metric whatevergoennnsgoeshere"# Verify /api/v1/fields/values filters label values by metricNamespace prefix.@@ -667,11 +647,11 @@ def test_metric_namespace_values_filtering(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)- metrics: List[Metrics] = [+ metrics: list[Metrics] = [Metrics(metric_name="ns.a.requests_total",labels={"service": "svc-a"},@@ -737,11 +717,11 @@ def test_metric_namespace_metric_name_values_filtering(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)- metrics: List[Metrics] = [+ metrics: list[Metrics] = [Metrics(metric_name="ns.a.cpu.utilization",labels={"host": "host-a"},@@ -807,11 +787,11 @@ def test_metric_namespace_keys_filtering(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)- metrics: List[Metrics] = [+ metrics: list[Metrics] = [Metrics(metric_name="ns.a.cpu.utilization",labels={"a_only_label": "val-a"},diff --git a/tests/integration/tests/querier/04_traces.py b/tests/integration/tests/querier/04_traces.pyindex 1ec5f07776..43e789bb6c 100644--- a/tests/integration/tests/querier/04_traces.py+++ b/tests/integration/tests/querier/04_traces.py@@ -1,6 +1,7 @@-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Any, Callable, Dict, List+from typing import Anyimport pytestimport requests@@ -23,7 +24,7 @@ def test_traces_list(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Setup:@@ -44,7 +45,7 @@ def test_traces_list(topic_service_trace_id = TraceIdGenerator.trace_id()topic_service_span_id = TraceIdGenerator.span_id()- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces([@@ -159,11 +160,8 @@ def test_traces_list(},json={"schemaVersion": "v1",- "start": int(- (datetime.now(tz=timezone.utc) - timedelta(minutes=5)).timestamp()- * 1000- ),- "end": int(datetime.now(tz=timezone.utc).timestamp() * 1000),+ "start": int((datetime.now(tz=UTC) - timedelta(minutes=5)).timestamp() * 1000),+ "end": int(datetime.now(tz=UTC).timestamp() * 1000),"requestType": "raw","compositeQuery": {"queries": [@@ -224,10 +222,8 @@ def test_traces_list(response_with_inline_context = make_query_request(signoz,token,- start_ms=int(- (datetime.now(tz=timezone.utc) - timedelta(minutes=5)).timestamp() * 1000- ),- end_ms=int(datetime.now(tz=timezone.utc).timestamp() * 1000),+ start_ms=int((datetime.now(tz=UTC) - timedelta(minutes=5)).timestamp() * 1000),+ end_ms=int(datetime.now(tz=UTC).timestamp() * 1000),request_type="raw",queries=[{@@ -339,11 +335,8 @@ def test_traces_list(},json={"schemaVersion": "v1",- "start": int(- (datetime.now(tz=timezone.utc) - timedelta(minutes=5)).timestamp()- * 1000- ),- "end": int(datetime.now(tz=timezone.utc).timestamp() * 1000),+ "start": int((datetime.now(tz=UTC) - timedelta(minutes=5)).timestamp() * 1000),+ "end": int(datetime.now(tz=UTC).timestamp() * 1000),"requestType": "raw","compositeQuery": {"queries": [@@ -514,9 +507,7 @@ def test_traces_list("name": "A","signal": "traces","disabled": False,- "order": [- {"key": {"name": "attribute.timestamp"}, "direction": "desc"}- ],+ "order": [{"key": {"name": "attribute.timestamp"}, "direction": "desc"}],"limit": 1,},},@@ -662,10 +653,10 @@ def test_traces_list_with_corrupt_data(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],- payload: Dict[str, Any],+ insert_traces: Callable[[list[Traces]], None],+ payload: dict[str, Any],status_code: HTTPStatus,- results: Callable[[List[Traces]], List[Any]],+ results: Callable[[list[Traces]], list[Any]],) -> None:"""Setup:@@ -683,10 +674,8 @@ def test_traces_list_with_corrupt_data(response = make_query_request(signoz,token,- start_ms=int(- (datetime.now(tz=timezone.utc) - timedelta(minutes=5)).timestamp() * 1000- ),- end_ms=int(datetime.now(tz=timezone.utc).timestamp() * 1000),+ start_ms=int((datetime.now(tz=UTC) - timedelta(minutes=5)).timestamp() * 1000),+ end_ms=int(datetime.now(tz=UTC).timestamp() * 1000),request_type="raw",queries=[payload],)@@ -712,13 +701,9 @@ def test_traces_list_with_corrupt_data(# Case 1b: count by count() with alias span.count_pytest.param({"name": "count()"}, "span.count_", HTTPStatus.OK),# Case 2a: count by count() with context specified in the key- pytest.param(- {"name": "count()", "fieldContext": "span"}, "count_", HTTPStatus.OK- ),+ pytest.param({"name": "count()", "fieldContext": "span"}, "count_", HTTPStatus.OK),# Case 2b: count by count() with context specified in the key with alias span.count_- pytest.param(- {"name": "count()", "fieldContext": "span"}, "span.count_", HTTPStatus.OK- ),+ pytest.param({"name": "count()", "fieldContext": "span"}, "span.count_", HTTPStatus.OK),# Case 3a: count by span.count() and context specified in the key [BAD REQUEST]pytest.param({"name": "span.count()", "fieldContext": "span"},@@ -732,13 +717,9 @@ def test_traces_list_with_corrupt_data(HTTPStatus.BAD_REQUEST,),# Case 4a: count by span.count() and context specified in the key- pytest.param(- {"name": "span.count()", "fieldContext": ""}, "count_", HTTPStatus.OK- ),+ pytest.param({"name": "span.count()", "fieldContext": ""}, "count_", HTTPStatus.OK),# Case 4b: count by span.count() and context specified in the key with alias span.count_- pytest.param(- {"name": "span.count()", "fieldContext": ""}, "span.count_", HTTPStatus.OK- ),+ pytest.param({"name": "span.count()", "fieldContext": ""}, "span.count_", HTTPStatus.OK),# Case 5a: count by count_pytest.param({"name": "count_"}, "count_", HTTPStatus.OK),# Case 5b: count by count_ with alias span.count_@@ -765,8 +746,8 @@ def test_traces_aggergate_order_by_count(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],- order_by: Dict[str, str],+ insert_traces: Callable[[list[Traces]], None],+ order_by: dict[str, str],aggregation_alias: str,expected_status: HTTPStatus,) -> None:@@ -786,7 +767,7 @@ def test_traces_aggergate_order_by_count(topic_service_trace_id = TraceIdGenerator.trace_id()topic_service_span_id = TraceIdGenerator.span_id()- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces([@@ -910,10 +891,8 @@ def test_traces_aggergate_order_by_count(response = make_query_request(signoz,token,- start_ms=int(- (datetime.now(tz=timezone.utc) - timedelta(minutes=5)).timestamp() * 1000- ),- end_ms=int(datetime.now(tz=timezone.utc).timestamp() * 1000),+ start_ms=int((datetime.now(tz=UTC) - timedelta(minutes=5)).timestamp() * 1000),+ end_ms=int(datetime.now(tz=UTC).timestamp() * 1000),request_type="time_series",queries=[query],)@@ -936,7 +915,7 @@ def test_traces_aggregate_with_mixed_field_selectors(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Setup:@@ -954,7 +933,7 @@ def test_traces_aggregate_with_mixed_field_selectors(topic_service_trace_id = TraceIdGenerator.trace_id()topic_service_span_id = TraceIdGenerator.span_id()- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces([@@ -1090,10 +1069,8 @@ def test_traces_aggregate_with_mixed_field_selectors(response = make_query_request(signoz,token,- start_ms=int(- (datetime.now(tz=timezone.utc) - timedelta(minutes=5)).timestamp() * 1000- ),- end_ms=int(datetime.now(tz=timezone.utc).timestamp() * 1000),+ start_ms=int((datetime.now(tz=UTC) - timedelta(minutes=5)).timestamp() * 1000),+ end_ms=int(datetime.now(tz=UTC).timestamp() * 1000),request_type="time_series",queries=[query],)@@ -1104,24 +1081,22 @@ def test_traces_aggregate_with_mixed_field_selectors(assert len(results) == 1aggregations = results[0]["aggregations"]- assert (- aggregations[0]["series"][0]["values"][0]["value"] >= 2.5 * 1e9- ) # p99 for http-service+ assert aggregations[0]["series"][0]["values"][0]["value"] >= 2.5 * 1e9 # p99 for http-servicedef test_traces_fill_gaps(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Test fillGaps for traces without groupBy."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)trace_id = TraceIdGenerator.trace_id()- traces: List[Traces] = [+ traces: list[Traces] = [Traces(timestamp=now - timedelta(minutes=3),duration=timedelta(seconds=1),@@ -1197,14 +1172,14 @@ def test_traces_fill_gaps_with_group_by(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Test fillGaps for traces with groupBy."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)- traces: List[Traces] = [+ traces: list[Traces] = [Traces(timestamp=now - timedelta(minutes=3),duration=timedelta(seconds=1),@@ -1292,7 +1267,7 @@ def test_traces_fill_gaps_with_group_by(series_by_service = index_series_by_label(series, "service.name")assert set(series_by_service.keys()) == {"service-a", "service-b"}- expectations: Dict[str, Dict[int, float]] = {+ expectations: dict[str, dict[int, float]] = {"service-a": {ts_min_3: 1},"service-b": {ts_min_2: 1},}@@ -1310,14 +1285,14 @@ def test_traces_fill_gaps_formula(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Test fillGaps for traces with formula."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)- traces: List[Traces] = [+ traces: list[Traces] = [Traces(timestamp=now - timedelta(minutes=3),duration=timedelta(seconds=1),@@ -1430,14 +1405,14 @@ def test_traces_fill_gaps_formula_with_group_by(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Test fillGaps for traces with formula and groupBy."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)- traces: List[Traces] = [+ traces: list[Traces] = [Traces(timestamp=now - timedelta(minutes=3),duration=timedelta(seconds=1),@@ -1553,7 +1528,7 @@ def test_traces_fill_gaps_formula_with_group_by(series_by_service = index_series_by_label(series, "service.name")assert set(series_by_service.keys()) == {"group1", "group2"}- expectations: Dict[str, Dict[int, float]] = {+ expectations: dict[str, dict[int, float]] = {"group1": {ts_min_3: 2},"group2": {ts_min_2: 2},}@@ -1571,14 +1546,14 @@ def test_traces_fill_zero(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Test fillZero function for traces without groupBy."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)- traces: List[Traces] = [+ traces: list[Traces] = [Traces(timestamp=now - timedelta(minutes=3),duration=timedelta(seconds=1),@@ -1654,14 +1629,14 @@ def test_traces_fill_zero_with_group_by(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Test fillZero function for traces with groupBy."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)- traces: List[Traces] = [+ traces: list[Traces] = [Traces(timestamp=now - timedelta(minutes=3),duration=timedelta(seconds=1),@@ -1750,7 +1725,7 @@ def test_traces_fill_zero_with_group_by(series_by_service = index_series_by_label(series, "service.name")assert set(series_by_service.keys()) == {"service-a", "service-b"}- expectations: Dict[str, Dict[int, float]] = {+ expectations: dict[str, dict[int, float]] = {"service-a": {ts_min_3: 1},"service-b": {ts_min_2: 1},}@@ -1768,14 +1743,14 @@ def test_traces_fill_zero_formula(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Test fillZero function for traces with formula."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)- traces: List[Traces] = [+ traces: list[Traces] = [Traces(timestamp=now - timedelta(minutes=3),duration=timedelta(seconds=1),@@ -1888,14 +1863,14 @@ def test_traces_fill_zero_formula_with_group_by(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Test fillZero function for traces with formula and groupBy."""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)- traces: List[Traces] = [+ traces: list[Traces] = [Traces(timestamp=now - timedelta(minutes=3),duration=timedelta(seconds=1),@@ -2011,7 +1986,7 @@ def test_traces_fill_zero_formula_with_group_by(series_by_service = index_series_by_label(series, "service.name")assert set(series_by_service.keys()) == {"group1", "group2"}- expectations: Dict[str, Dict[int, float]] = {+ expectations: dict[str, dict[int, float]] = {"group1": {ts_min_3: 2},"group2": {ts_min_2: 2},}@@ -2029,7 +2004,7 @@ def test_traces_list_filter_by_trace_id(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Tests that filtering by trace_id:@@ -2043,7 +2018,7 @@ def test_traces_list_filter_by_trace_id(span_id_root = TraceIdGenerator.span_id()other_span_id = TraceIdGenerator.span_id()- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)common_resources = {"deployment.environment": "production",@@ -2087,7 +2062,7 @@ def test_traces_list_filter_by_trace_id(trace_filter = f"trace_id = '{target_trace_id}'"- def _query(start_ms: int, end_ms: int) -> List:+ def _query(start_ms: int, end_ms: int) -> list:response = make_query_request(signoz,token,@@ -2129,9 +2104,7 @@ def test_traces_list_filter_by_trace_id(narrow_start_ms = int((now - timedelta(minutes=5)).timestamp() * 1000)narrow_rows = _query(narrow_start_ms, now_ms)- assert (- len(narrow_rows) == 1- ), f"Expected 1 span for trace_id filter (narrow window), got {len(narrow_rows)}"+ assert len(narrow_rows) == 1, f"Expected 1 span for trace_id filter (narrow window), got {len(narrow_rows)}"assert narrow_rows[0]["data"]["span_id"] == span_id_rootassert narrow_rows[0]["data"]["trace_id"] == target_trace_id@@ -2140,10 +2113,7 @@ def test_traces_list_filter_by_trace_id(wide_start_ms = int((now - timedelta(hours=12)).timestamp() * 1000)wide_rows = _query(wide_start_ms, now_ms)- assert len(wide_rows) == 1, (- f"Expected 1 span for trace_id filter (wide window, multi-bucket), "- f"got {len(wide_rows)} — possible duplicate-span regression"- )+ assert len(wide_rows) == 1, f"Expected 1 span for trace_id filter (wide window, multi-bucket), got {len(wide_rows)} — possible duplicate-span regression"assert wide_rows[0]["data"]["span_id"] == span_id_rootassert wide_rows[0]["data"]["trace_id"] == target_trace_id@@ -2152,7 +2122,4 @@ def test_traces_list_filter_by_trace_id(past_end_ms = int((now - timedelta(hours=2)).timestamp() * 1000)past_rows = _query(past_start_ms, past_end_ms)- assert len(past_rows) == 0, (- f"Expected 0 spans for trace_id filter outside time window, "- f"got {len(past_rows)}"- )+ assert len(past_rows) == 0, f"Expected 0 spans for trace_id filter outside time window, got {len(past_rows)}"diff --git a/tests/integration/tests/querier/05_metrics_rate_cumulative_counter.py b/tests/integration/tests/querier/05_metrics_rate_cumulative_counter.pyindex 6e0383c1f9..c30c369173 100644--- a/tests/integration/tests/querier/05_metrics_rate_cumulative_counter.py+++ b/tests/integration/tests/querier/05_metrics_rate_cumulative_counter.py@@ -3,9 +3,10 @@ Look at the cumulative_counters_1h.jsonl file for the relevant data"""import os-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Any, Callable, List+from typing import Anyfrom fixtures import typesfrom fixtures.auth import USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD@@ -25,9 +26,9 @@ def test_rate_with_steady_values_and_reset(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = "test_rate_stale"@@ -56,16 +57,10 @@ def test_rate_with_steady_values_and_reset(result_values = sorted(get_series_values(data, "A"), key=lambda x: x["timestamp"])assert len(result_values) >= 58# the counter reset happened at 31st minute- assert (- result_values[29]["value"] == 0.0167- ) # i.e 2/120 i.e 29th to 31st minute changes- assert (- result_values[30]["value"] == 0.133- ) # i.e 10/60 i.e 31st to 32nd minute changes+ assert result_values[29]["value"] == 0.0167 # i.e 2/120 i.e 29th to 31st minute changes+ assert result_values[30]["value"] == 0.133 # i.e 10/60 i.e 31st to 32nd minute changescount_of_steady_rate = sum(1 for v in result_values if v["value"] == 0.0833)- assert (- count_of_steady_rate >= 55- ) # 59 - (1 reset + 1 high rate + 1 at the beginning)+ assert count_of_steady_rate >= 55 # 59 - (1 reset + 1 high rate + 1 at the beginning)# All rates should be non-negative (stale periods = 0 rate)for v in result_values:assert v["value"] >= 0, f"Rate should not be negative: {v['value']}"@@ -75,9 +70,9 @@ def test_rate_group_by_endpoint(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = "test_rate_groupby"@@ -106,9 +101,7 @@ def test_rate_group_by_endpoint(all_series = get_all_series(data, "A")# Should have 5 different endpoints- assert (- len(all_series) == 5- ), f"Expected 5 series for 5 endpoints, got {len(all_series)}"+ assert len(all_series) == 5, f"Expected 5 series for 5 endpoints, got {len(all_series)}"# endpoint -> valuesendpoint_values = {}@@ -118,27 +111,19 @@ def test_rate_group_by_endpoint(endpoint_values[endpoint] = valuesexpected_endpoints = {"/products", "/health", "/checkout", "/orders", "/users"}- assert (- set(endpoint_values.keys()) == expected_endpoints- ), f"Expected endpoints {expected_endpoints}, got {set(endpoint_values.keys())}"+ assert set(endpoint_values.keys()) == expected_endpoints, f"Expected endpoints {expected_endpoints}, got {set(endpoint_values.keys())}"# at no point rate should be negativefor endpoint, values in endpoint_values.items():for v in values:- assert (- v["value"] >= 0- ), f"Rate for {endpoint} should not be negative: {v['value']}"+ assert v["value"] >= 0, f"Rate for {endpoint} should not be negative: {v['value']}"# /health: 60 data points (t01-t60), steady +10/min# rate = 10/60 = 0.167health_values = endpoint_values["/health"]- assert (- len(health_values) >= 58- ), f"Expected >= 58 values for /health, got {len(health_values)}"+ assert len(health_values) >= 58, f"Expected >= 58 values for /health, got {len(health_values)}"count_steady_health = sum(1 for v in health_values if v["value"] == 0.167)- assert (- count_steady_health >= 57- ), f"Expected >= 57 steady rate values (0.167) for /health, got {count_steady_health}"+ assert count_steady_health >= 57, f"Expected >= 57 steady rate values (0.167) for /health, got {count_steady_health}"# all /health rates should be 0.167 except possibly first/last due to boundariesfor v in health_values[1:-1]:assert v["value"] == 0.167, f"Expected /health rate 0.167, got {v['value']}"@@ -146,86 +131,56 @@ def test_rate_group_by_endpoint(# /products: 51 data points with 10-minute gap (t20-t29 missing), steady +20/min# rate = 20/60 = 0.333, gap causes lower averaged rate at boundaryproducts_values = endpoint_values["/products"]- assert (- len(products_values) >= 49- ), f"Expected >= 49 values for /products, got {len(products_values)}"+ assert len(products_values) >= 49, f"Expected >= 49 values for /products, got {len(products_values)}"count_steady_products = sum(1 for v in products_values if v["value"] == 0.333)# most values should be 0.333, some boundary values differ due to 10-min gap- assert (- count_steady_products >= 46- ), f"Expected >= 46 steady rate values (0.333) for /products, got {count_steady_products}"+ assert count_steady_products >= 46, f"Expected >= 46 steady rate values (0.333) for /products, got {count_steady_products}"# check that non-0.333 values are due to gap averaging (should be lower)gap_boundary_values = [v["value"] for v in products_values if v["value"] != 0.333]for val in gap_boundary_values:- assert (- 0 < val < 0.333- ), f"Gap boundary values should be between 0 and 0.333, got {val}"+ assert 0 < val < 0.333, f"Gap boundary values should be between 0 and 0.333, got {val}"# /checkout: 61 data points (t00-t60), +1/min normal, +50/min spike at t40-t44# normal rate = 1/60 = 0.0167, spike rate = 50/60 = 0.833checkout_values = endpoint_values["/checkout"]- assert (- len(checkout_values) >= 59- ), f"Expected >= 59 values for /checkout, got {len(checkout_values)}"+ assert len(checkout_values) >= 59, f"Expected >= 59 values for /checkout, got {len(checkout_values)}"count_steady_checkout = sum(1 for v in checkout_values if v["value"] == 0.0167)- assert (- count_steady_checkout >= 53- ), f"Expected >= 53 steady rate values (0.0167) for /checkout, got {count_steady_checkout}"+ assert count_steady_checkout >= 53, f"Expected >= 53 steady rate values (0.0167) for /checkout, got {count_steady_checkout}"# check that spike values exist (traffic spike +50/min at t40-t44)count_spike_checkout = sum(1 for v in checkout_values if v["value"] == 0.833)- assert (- count_spike_checkout >= 4- ), f"Expected >= 4 spike rate values (0.833) for /checkout, got {count_spike_checkout}"+ assert count_spike_checkout >= 4, f"Expected >= 4 spike rate values (0.833) for /checkout, got {count_spike_checkout}"# spike values should be consecutive- spike_indices = [- i for i, v in enumerate[Any](checkout_values) if v["value"] == 0.833- ]+ spike_indices = [i for i, v in enumerate[Any](checkout_values) if v["value"] == 0.833]assert len(spike_indices) >= 4, f"Expected >= 4 spike indices, got {spike_indices}"# consecutivenessfor i in range(1, len(spike_indices)):- assert (- spike_indices[i] == spike_indices[i - 1] + 1- ), f"Spike indices should be consecutive, got {spike_indices}"+ assert spike_indices[i] == spike_indices[i - 1] + 1, f"Spike indices should be consecutive, got {spike_indices}"# /orders: 60 data points (t00-t60) with gap at t30, counter reset at t31 (150->2)# rate = 5/60 = 0.0833# reset at t31 causes: rate at t30 includes gap (lower), t31 has high rate after resetorders_values = endpoint_values["/orders"]- assert (- len(orders_values) >= 58- ), f"Expected >= 58 values for /orders, got {len(orders_values)}"+ assert len(orders_values) >= 58, f"Expected >= 58 values for /orders, got {len(orders_values)}"count_steady_orders = sum(1 for v in orders_values if v["value"] == 0.0833)- assert (- count_steady_orders >= 55- ), f"Expected >= 55 steady rate values (0.0833) for /orders, got {count_steady_orders}"+ assert count_steady_orders >= 55, f"Expected >= 55 steady rate values (0.0833) for /orders, got {count_steady_orders}"# check for counter reset effects - there should be some non-standard valuesnon_standard_orders = [v["value"] for v in orders_values if v["value"] != 0.0833]- assert (- len(non_standard_orders) >= 2- ), f"Expected >= 2 non-standard values due to counter reset, got {non_standard_orders}"+ assert len(non_standard_orders) >= 2, f"Expected >= 2 non-standard values due to counter reset, got {non_standard_orders}"# post-reset value should be higher (new counter value / interval)high_rate_orders = [v for v in non_standard_orders if v > 0.0833]- assert (- len(high_rate_orders) >= 1- ), f"Expected at least one high rate value after counter reset, got {non_standard_orders}"+ assert len(high_rate_orders) >= 1, f"Expected at least one high rate value after counter reset, got {non_standard_orders}"# /users: 56 data points (t05-t60), sparse +1 every 5 minutes# Rate = 1/60 = 0.0167 during increment, 0 during flat periodsusers_values = endpoint_values["/users"]- assert (- len(users_values) >= 54- ), f"Expected >= 54 values for /users, got {len(users_values)}"+ assert len(users_values) >= 54, f"Expected >= 54 values for /users, got {len(users_values)}"count_zero_users = sum(1 for v in users_values if v["value"] == 0)# most values should be 0 (flat periods between increments)- assert (- count_zero_users >= 40- ), f"Expected >= 40 zero rate values for /users (sparse data), got {count_zero_users}"+ assert count_zero_users >= 40, f"Expected >= 40 zero rate values for /users (sparse data), got {count_zero_users}"# non-zero values should be 0.0167 (1/60 increment rate)non_zero_users = [v["value"] for v in users_values if v["value"] != 0]count_increment_rate = sum(1 for v in non_zero_users if v == 0.0167)- assert (- count_increment_rate >= 8- ), f"Expected >= 8 increment rate values (0.0167) for /users, got {count_increment_rate}"+ assert count_increment_rate >= 8, f"Expected >= 8 increment rate values (0.0167) for /users, got {count_increment_rate}"diff --git a/tests/integration/tests/querier/06_order_by_table_querier.py b/tests/integration/tests/querier/06_order_by_table_querier.pyindex c3933a9aa2..cd32265b19 100644--- a/tests/integration/tests/querier/06_order_by_table_querier.py+++ b/tests/integration/tests/querier/06_order_by_table_querier.py@@ -1,6 +1,6 @@-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Callable, Dict, List, Optional, Tupleimport requests@@ -27,8 +27,8 @@ metric_values_for_test = {def generate_logs_with_counts(now: datetime,- service_counts: Dict[str, int],-) -> List[Logs]:+ service_counts: dict[str, int],+) -> list[Logs]:logs = []for service, count in service_counts.items():for i in range(count):@@ -44,8 +44,8 @@ def generate_logs_with_counts(def generate_traces_with_counts(now: datetime,- service_counts: Dict[str, int],-) -> List[Traces]:+ service_counts: dict[str, int],+) -> list[Traces]:traces = []for service, count in service_counts.items():for i in range(count):@@ -67,8 +67,8 @@ def generate_traces_with_counts(def generate_metrics_with_values(now: datetime,- service_values: Dict[str, float],-) -> List[Metrics]:+ service_values: dict[str, float],+) -> list[Metrics]:metrics = []for service, value in service_values.items():metrics.append(@@ -89,7 +89,7 @@ def make_scalar_query_request(signoz: types.SigNoz,token: str,now: datetime,- queries: List[Dict],+ queries: list[dict],lookback_minutes: int = 5,) -> requests.Response:return requests.post(@@ -98,9 +98,7 @@ def make_scalar_query_request(headers={"authorization": f"Bearer {token}"},json={"schemaVersion": "v1",- "start": int(- (now - timedelta(minutes=lookback_minutes)).timestamp() * 1000- ),+ "start": int((now - timedelta(minutes=lookback_minutes)).timestamp() * 1000),"end": int(now.timestamp() * 1000),"requestType": "scalar","compositeQuery": {"queries": queries},@@ -111,25 +109,17 @@ def make_scalar_query_request(def build_logs_query(name: str = "A",- aggregations: Optional[List[str]] = None,- group_by: Optional[List[str]] = None,- order_by: Optional[List[Tuple[str, str]]] = None,- limit: Optional[int] = None,-) -> Dict:+ aggregations: list[str] | None = None,+ group_by: list[str] | None = None,+ order_by: list[tuple[str, str]] | None = None,+ limit: int | None = None,+) -> dict:if aggregations is None:aggregations = ["count()"]aggs = [querier.build_logs_aggregation(expr) for expr in aggregations]- gb = (- [querier.build_group_by_field(f, "string", "resource") for f in group_by]- if group_by- else None- )- order = (- [querier.build_order_by(name, direction) for name, direction in order_by]- if order_by- else None- )+ gb = [querier.build_group_by_field(f, "string", "resource") for f in group_by] if group_by else None+ order = [querier.build_order_by(name, direction) for name, direction in order_by] if order_by else Nonereturn querier.build_scalar_query(name=name,@@ -143,25 +133,17 @@ def build_logs_query(def build_traces_query(name: str = "A",- aggregations: Optional[List[str]] = None,- group_by: Optional[List[str]] = None,- order_by: Optional[List[Tuple[str, str]]] = None,- limit: Optional[int] = None,-) -> Dict:+ aggregations: list[str] | None = None,+ group_by: list[str] | None = None,+ order_by: list[tuple[str, str]] | None = None,+ limit: int | None = None,+) -> dict:if aggregations is None:aggregations = ["count()"]aggs = [querier.build_logs_aggregation(expr) for expr in aggregations]- gb = (- [querier.build_group_by_field(f, "string", "resource") for f in group_by]- if group_by- else None- )- order = (- [querier.build_order_by(name, direction) for name, direction in order_by]- if order_by- else None- )+ gb = [querier.build_group_by_field(f, "string", "resource") for f in group_by] if group_by else None+ order = [querier.build_order_by(name, direction) for name, direction in order_by] if order_by else Nonereturn querier.build_scalar_query(name=name,@@ -178,25 +160,13 @@ def build_metrics_query(metric_name: str = "test.metric",time_aggregation: str = "latest",space_aggregation: str = "sum",- group_by: Optional[List[str]] = None,- order_by: Optional[List[Tuple[str, str]]] = None,- limit: Optional[int] = None,-) -> Dict:- aggs = [- querier.build_metrics_aggregation(- metric_name, time_aggregation, space_aggregation, "unspecified"- )- ]- gb = (- [querier.build_group_by_field(f, "string", "attribute") for f in group_by]- if group_by- else None- )- order = (- [querier.build_order_by(name, direction) for name, direction in order_by]- if order_by- else None- )+ group_by: list[str] | None = None,+ order_by: list[tuple[str, str]] | None = None,+ limit: int | None = None,+) -> dict:+ aggs = [querier.build_metrics_aggregation(metric_name, time_aggregation, space_aggregation, "unspecified")]+ gb = [querier.build_group_by_field(f, "string", "attribute") for f in group_by] if group_by else None+ order = [querier.build_order_by(name, direction) for name, direction in order_by] if order_by else Nonereturn querier.build_scalar_query(name=name,@@ -212,9 +182,9 @@ def test_logs_scalar_group_by_single_agg_no_order(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs(generate_logs_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -240,9 +210,9 @@ def test_logs_scalar_group_by_single_agg_order_by_agg_asc(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs(generate_logs_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -268,9 +238,9 @@ def test_logs_scalar_group_by_single_agg_order_by_agg_desc(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs(generate_logs_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -296,9 +266,9 @@ def test_logs_scalar_group_by_single_agg_order_by_grouping_key_asc(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs(generate_logs_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -306,11 +276,7 @@ def test_logs_scalar_group_by_single_agg_order_by_grouping_key_asc(signoz,token,now,- [- build_logs_query(- group_by=["service.name"], order_by=[("service.name", "asc")]- )- ],+ [build_logs_query(group_by=["service.name"], order_by=[("service.name", "asc")])],)assert response.status_code == HTTPStatus.OK@@ -328,9 +294,9 @@ def test_logs_scalar_group_by_single_agg_order_by_grouping_key_desc(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs(generate_logs_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -338,11 +304,7 @@ def test_logs_scalar_group_by_single_agg_order_by_grouping_key_desc(signoz,token,now,- [- build_logs_query(- group_by=["service.name"], order_by=[("service.name", "desc")]- )- ],+ [build_logs_query(group_by=["service.name"], order_by=[("service.name", "desc")])],)assert response.status_code == HTTPStatus.OK@@ -360,9 +322,9 @@ def test_logs_scalar_group_by_multiple_aggs_order_by_first_agg_asc(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs(generate_logs_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -383,18 +345,16 @@ def test_logs_scalar_group_by_multiple_aggs_order_by_first_agg_asc(assert response.json()["status"] == "success"data = querier.get_scalar_table_data(response.json())- querier.assert_scalar_column_order(- data, 0, ["service-d", "service-b", "service-a", "service-c"], "First column"- )+ querier.assert_scalar_column_order(data, 0, ["service-d", "service-b", "service-a", "service-c"], "First column")def test_logs_scalar_group_by_multiple_aggs_order_by_second_agg_desc(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs(generate_logs_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -416,18 +376,16 @@ def test_logs_scalar_group_by_multiple_aggs_order_by_second_agg_desc(data = querier.get_scalar_table_data(response.json())# count_distinct(body) should equal count() since each log has unique body- querier.assert_scalar_column_order(- data, 0, ["service-c", "service-a", "service-b", "service-d"], "First column"- )+ querier.assert_scalar_column_order(data, 0, ["service-c", "service-a", "service-b", "service-d"], "First column")def test_logs_scalar_group_by_single_agg_order_by_agg_asc_limit_2(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs(generate_logs_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -435,11 +393,7 @@ def test_logs_scalar_group_by_single_agg_order_by_agg_asc_limit_2(signoz,token,now,- [- build_logs_query(- group_by=["service.name"], order_by=[("count()", "asc")], limit=2- )- ],+ [build_logs_query(group_by=["service.name"], order_by=[("count()", "asc")], limit=2)],)assert response.status_code == HTTPStatus.OK@@ -457,9 +411,9 @@ def test_logs_scalar_group_by_single_agg_order_by_agg_desc_limit_3(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs(generate_logs_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -467,11 +421,7 @@ def test_logs_scalar_group_by_single_agg_order_by_agg_desc_limit_3(signoz,token,now,- [- build_logs_query(- group_by=["service.name"], order_by=[("count()", "desc")], limit=3- )- ],+ [build_logs_query(group_by=["service.name"], order_by=[("count()", "desc")], limit=3)],)assert response.status_code == HTTPStatus.OK@@ -489,9 +439,9 @@ def test_logs_scalar_group_by_order_by_grouping_key_asc_limit_2(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs(generate_logs_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -499,11 +449,7 @@ def test_logs_scalar_group_by_order_by_grouping_key_asc_limit_2(signoz,token,now,- [- build_logs_query(- group_by=["service.name"], order_by=[("service.name", "asc")], limit=2- )- ],+ [build_logs_query(group_by=["service.name"], order_by=[("service.name", "asc")], limit=2)],)assert response.status_code == HTTPStatus.OK@@ -521,9 +467,9 @@ def test_traces_scalar_group_by_single_agg_no_order(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces(generate_traces_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -549,9 +495,9 @@ def test_traces_scalar_group_by_single_agg_order_by_agg_asc(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces(generate_traces_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -577,9 +523,9 @@ def test_traces_scalar_group_by_single_agg_order_by_agg_desc(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces(generate_traces_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -605,9 +551,9 @@ def test_traces_scalar_group_by_single_agg_order_by_grouping_key_asc(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces(generate_traces_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -615,11 +561,7 @@ def test_traces_scalar_group_by_single_agg_order_by_grouping_key_asc(signoz,token,now,- [- build_traces_query(- group_by=["service.name"], order_by=[("service.name", "asc")]- )- ],+ [build_traces_query(group_by=["service.name"], order_by=[("service.name", "asc")])],)assert response.status_code == HTTPStatus.OK@@ -637,9 +579,9 @@ def test_traces_scalar_group_by_single_agg_order_by_grouping_key_desc(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces(generate_traces_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -647,11 +589,7 @@ def test_traces_scalar_group_by_single_agg_order_by_grouping_key_desc(signoz,token,now,- [- build_traces_query(- group_by=["service.name"], order_by=[("service.name", "desc")]- )- ],+ [build_traces_query(group_by=["service.name"], order_by=[("service.name", "desc")])],)assert response.status_code == HTTPStatus.OK@@ -669,9 +607,9 @@ def test_traces_scalar_group_by_multiple_aggs_order_by_first_agg_asc(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces(generate_traces_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -692,18 +630,16 @@ def test_traces_scalar_group_by_multiple_aggs_order_by_first_agg_asc(assert response.json()["status"] == "success"data = querier.get_scalar_table_data(response.json())- querier.assert_scalar_column_order(- data, 0, ["service-d", "service-b", "service-a", "service-c"], "First column"- )+ querier.assert_scalar_column_order(data, 0, ["service-d", "service-b", "service-a", "service-c"], "First column")def test_traces_scalar_group_by_single_agg_order_by_agg_asc_limit_2(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces(generate_traces_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -711,11 +647,7 @@ def test_traces_scalar_group_by_single_agg_order_by_agg_asc_limit_2(signoz,token,now,- [- build_traces_query(- group_by=["service.name"], order_by=[("count()", "asc")], limit=2- )- ],+ [build_traces_query(group_by=["service.name"], order_by=[("count()", "asc")], limit=2)],)assert response.status_code == HTTPStatus.OK@@ -733,9 +665,9 @@ def test_traces_scalar_group_by_single_agg_order_by_agg_desc_limit_3(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces(generate_traces_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -743,11 +675,7 @@ def test_traces_scalar_group_by_single_agg_order_by_agg_desc_limit_3(signoz,token,now,- [- build_traces_query(- group_by=["service.name"], order_by=[("count()", "desc")], limit=3- )- ],+ [build_traces_query(group_by=["service.name"], order_by=[("count()", "desc")], limit=3)],)assert response.status_code == HTTPStatus.OK@@ -765,9 +693,9 @@ def test_traces_scalar_group_by_order_by_grouping_key_asc_limit_2(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces(generate_traces_with_counts(now, log_or_trace_service_counts))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -775,11 +703,7 @@ def test_traces_scalar_group_by_order_by_grouping_key_asc_limit_2(signoz,token,now,- [- build_traces_query(- group_by=["service.name"], order_by=[("service.name", "asc")], limit=2- )- ],+ [build_traces_query(group_by=["service.name"], order_by=[("service.name", "asc")], limit=2)],)assert response.status_code == HTTPStatus.OK@@ -797,9 +721,9 @@ def test_metrics_scalar_group_by_single_agg_no_order(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_metrics(generate_metrics_with_values(now, metric_values_for_test))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -830,9 +754,9 @@ def test_metrics_scalar_group_by_single_agg_order_by_agg_asc(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_metrics(generate_metrics_with_values(now, metric_values_for_test))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -868,9 +792,9 @@ def test_metrics_scalar_group_by_single_agg_order_by_grouping_key_asc(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_metrics(generate_metrics_with_values(now, metric_values_for_test))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -906,9 +830,9 @@ def test_metrics_scalar_group_by_single_agg_order_by_agg_asc_limit_2(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_metrics(generate_metrics_with_values(now, metric_values_for_test))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -940,9 +864,9 @@ def test_metrics_scalar_group_by_single_agg_order_by_agg_desc_limit_3(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_metrics(generate_metrics_with_values(now, metric_values_for_test))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)@@ -974,9 +898,9 @@ def test_metrics_scalar_group_by_order_by_grouping_key_asc_limit_2(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_metrics(generate_metrics_with_values(now, metric_values_for_test))token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)diff --git a/tests/integration/tests/querier/07_metrics_multi_temporality.py b/tests/integration/tests/querier/07_metrics_multi_temporality.pyindex f3a8cef1dd..0bcaf845f9 100644--- a/tests/integration/tests/querier/07_metrics_multi_temporality.py+++ b/tests/integration/tests/querier/07_metrics_multi_temporality.py@@ -3,9 +3,9 @@ Look at the multi_temporality_counters_1h.jsonl file for the relevant data"""import random-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Callable, Listimport pytest@@ -21,12 +21,8 @@ from fixtures.querier import ()MULTI_TEMPORALITY_FILE = get_testdata_file_path("multi_temporality_counters_1h.jsonl")-MULTI_TEMPORALITY_FILE_10h = get_testdata_file_path(- "multi_temporality_counters_10h.jsonl"-)-MULTI_TEMPORALITY_FILE_24h = get_testdata_file_path(- "multi_temporality_counters_24h.jsonl"-)+MULTI_TEMPORALITY_FILE_10h = get_testdata_file_path("multi_temporality_counters_10h.jsonl")+MULTI_TEMPORALITY_FILE_24h = get_testdata_file_path("multi_temporality_counters_24h.jsonl")@pytest.mark.parametrize(@@ -40,13 +36,13 @@ def test_with_steady_values_and_reset(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],time_aggregation: str,expected_value_at_31st_minute: float,expected_value_at_32nd_minute: float,steady_value: float,) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = f"test_{time_aggregation}_stale"@@ -77,18 +73,12 @@ def test_with_steady_values_and_reset(# we skip the rate value for the first data point without previous valueassert result_values[29]["value"] == expected_value_at_31st_minuteassert result_values[30]["value"] == expected_value_at_32nd_minute- assert (- result_values[38]["value"] == steady_value- ) # 38th minute is when cumulative shifts to delta+ assert result_values[38]["value"] == steady_value # 38th minute is when cumulative shifts to deltacount_of_steady_rate = sum(1 for v in result_values if v["value"] == steady_value)- assert (- count_of_steady_rate >= 55- ) # 59 - (1 reset + 1 high rate + 1 at the beginning)+ assert count_of_steady_rate >= 55 # 59 - (1 reset + 1 high rate + 1 at the beginning)# All rates should be non-negative (stale periods = 0 rate)for v in result_values:- assert (- v["value"] >= 0- ), f"{time_aggregation} should not be negative: {v['value']}"+ assert v["value"] >= 0, f"{time_aggregation} should not be negative: {v['value']}"@pytest.mark.parametrize(@@ -102,7 +92,7 @@ def test_group_by_endpoint(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],time_aggregation: str,stable_health_value: float,stable_products_value: float,@@ -111,7 +101,7 @@ def test_group_by_endpoint(stable_orders_value: float,spike_users_value: float,) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = f"test_{time_aggregation}_groupby"@@ -138,9 +128,7 @@ def test_group_by_endpoint(data = response.json()all_series = get_all_series(data, "A")# Should have 5 different endpoints- assert (- len(all_series) == 5- ), f"Expected 5 series for 5 endpoints, got {len(all_series)}"+ assert len(all_series) == 5, f"Expected 5 series for 5 endpoints, got {len(all_series)}"# endpoint -> valuesendpoint_values = {}@@ -150,128 +138,74 @@ def test_group_by_endpoint(endpoint_values[endpoint] = valuesexpected_endpoints = {"/products", "/health", "/checkout", "/orders", "/users"}- assert (- set(endpoint_values.keys()) == expected_endpoints- ), f"Expected endpoints {expected_endpoints}, got {set(endpoint_values.keys())}"+ assert set(endpoint_values.keys()) == expected_endpoints, f"Expected endpoints {expected_endpoints}, got {set(endpoint_values.keys())}"# at no point rate should be negativefor endpoint, values in endpoint_values.items():for v in values:- assert (- v["value"] >= 0- ), f"Rate for {endpoint} should not be negative: {v['value']}"+ assert v["value"] >= 0, f"Rate for {endpoint} should not be negative: {v['value']}"# /health: 60 data points (t01-t60), steady +10/minhealth_values = endpoint_values["/health"]- assert (- len(health_values) >= 58- ), f"Expected >= 58 values for /health, got {len(health_values)}"- count_steady_health = sum(- 1 for v in health_values if v["value"] == stable_health_value- )- assert (- count_steady_health >= 57- ), f"Expected >= 57 steady rate values ({stable_health_value}) for /health, got {count_steady_health}"+ assert len(health_values) >= 58, f"Expected >= 58 values for /health, got {len(health_values)}"+ count_steady_health = sum(1 for v in health_values if v["value"] == stable_health_value)+ assert count_steady_health >= 57, f"Expected >= 57 steady rate values ({stable_health_value}) for /health, got {count_steady_health}"# all /health rates should be state except possibly first/last due to boundariesfor v in health_values[1:-1]:- assert (- v["value"] == stable_health_value- ), f"Expected /health rate {stable_health_value}, got {v['value']}"+ assert v["value"] == stable_health_value, f"Expected /health rate {stable_health_value}, got {v['value']}"# /products: 51 data points with 10-minute gap (t20-t29 missing), steady +20/minproducts_values = endpoint_values["/products"]- assert (- len(products_values) >= 49- ), f"Expected >= 49 values for /products, got {len(products_values)}"- count_steady_products = sum(- 1 for v in products_values if v["value"] == stable_products_value- )+ assert len(products_values) >= 49, f"Expected >= 49 values for /products, got {len(products_values)}"+ count_steady_products = sum(1 for v in products_values if v["value"] == stable_products_value)# most values should be stable, some boundary values differ due to 10-min gap- assert (- count_steady_products >= 46- ), f"Expected >= 46 steady rate values ({stable_products_value}) for /products, got {count_steady_products}"+ assert count_steady_products >= 46, f"Expected >= 46 steady rate values ({stable_products_value}) for /products, got {count_steady_products}"# check that non-stable values are due to gap averaging (should be lower)- gap_boundary_values = [- v["value"] for v in products_values if v["value"] != stable_products_value- ]+ gap_boundary_values = [v["value"] for v in products_values if v["value"] != stable_products_value]for val in gap_boundary_values:- assert (- 0 < val < stable_products_value- ), f"Gap boundary values should be between 0 and {stable_products_value}, got {val}"+ assert 0 < val < stable_products_value, f"Gap boundary values should be between 0 and {stable_products_value}, got {val}"# /checkout: 61 data points (t00-t60), +1/min normal, +50/min spike at t40-t44checkout_values = endpoint_values["/checkout"]- assert (- len(checkout_values) >= 59- ), f"Expected >= 59 values for /checkout, got {len(checkout_values)}"- count_steady_checkout = sum(- 1 for v in checkout_values if v["value"] == stable_checkout_value- )- assert (- count_steady_checkout >= 53- ), f"Expected >= 53 steady {time_aggregation} values ({stable_checkout_value}) for /checkout, got {count_steady_checkout}"+ assert len(checkout_values) >= 59, f"Expected >= 59 values for /checkout, got {len(checkout_values)}"+ count_steady_checkout = sum(1 for v in checkout_values if v["value"] == stable_checkout_value)+ assert count_steady_checkout >= 53, f"Expected >= 53 steady {time_aggregation} values ({stable_checkout_value}) for /checkout, got {count_steady_checkout}"# check that spike values exist (traffic spike +50/min at t40-t44)- count_spike_checkout = sum(- 1 for v in checkout_values if v["value"] == spike_checkout_value- )- assert (- count_spike_checkout >= 4- ), f"Expected >= 4 spike {time_aggregation} values ({spike_checkout_value}) for /checkout, got {count_spike_checkout}"+ count_spike_checkout = sum(1 for v in checkout_values if v["value"] == spike_checkout_value)+ assert count_spike_checkout >= 4, f"Expected >= 4 spike {time_aggregation} values ({spike_checkout_value}) for /checkout, got {count_spike_checkout}"# spike values should be consecutive- spike_indices = [- i for i, v in enumerate(checkout_values) if v["value"] == spike_checkout_value- ]+ spike_indices = [i for i, v in enumerate(checkout_values) if v["value"] == spike_checkout_value]assert len(spike_indices) >= 4, f"Expected >= 4 spike indices, got {spike_indices}"# consecutivenessfor i in range(1, len(spike_indices)):- assert (- spike_indices[i] == spike_indices[i - 1] + 1- ), f"Spike indices should be consecutive, got {spike_indices}"+ assert spike_indices[i] == spike_indices[i - 1] + 1, f"Spike indices should be consecutive, got {spike_indices}"# /orders: 60 data points (t00-t60) with gap at t30, counter reset at t31 (150->2)# reset at t31 causes: rate/increase at t30 includes gap (lower), t31 has high rate after resetorders_values = endpoint_values["/orders"]- assert (- len(orders_values) >= 58- ), f"Expected >= 58 values for /orders, got {len(orders_values)}"- count_steady_orders = sum(- 1 for v in orders_values if v["value"] == stable_orders_value- )- assert (- count_steady_orders >= 55- ), f"Expected >= 55 steady {time_aggregation} values ({stable_orders_value}) for /orders, got {count_steady_orders}"+ assert len(orders_values) >= 58, f"Expected >= 58 values for /orders, got {len(orders_values)}"+ count_steady_orders = sum(1 for v in orders_values if v["value"] == stable_orders_value)+ assert count_steady_orders >= 55, f"Expected >= 55 steady {time_aggregation} values ({stable_orders_value}) for /orders, got {count_steady_orders}"# check for counter reset effects - there should be some non-standard values- non_standard_orders = [- v["value"] for v in orders_values if v["value"] != stable_orders_value- ]- assert (- len(non_standard_orders) >= 2- ), f"Expected >= 2 non-standard values due to counter reset, got {non_standard_orders}"+ non_standard_orders = [v["value"] for v in orders_values if v["value"] != stable_orders_value]+ assert len(non_standard_orders) >= 2, f"Expected >= 2 non-standard values due to counter reset, got {non_standard_orders}"# post-reset value should be higher (new counter value / interval)high_rate_orders = [v for v in non_standard_orders if v > stable_orders_value]- assert (- len(high_rate_orders) >= 1- ), f"Expected at least one high {time_aggregation} value after counter reset, got {non_standard_orders}"+ assert len(high_rate_orders) >= 1, f"Expected at least one high {time_aggregation} value after counter reset, got {non_standard_orders}"# /users: 56 data points (t05-t60), sparse +1 every 5 minutesusers_values = endpoint_values["/users"]- assert (- len(users_values) >= 54- ), f"Expected >= 54 values for /users, got {len(users_values)}"+ assert len(users_values) >= 54, f"Expected >= 54 values for /users, got {len(users_values)}"count_zero_users = sum(1 for v in users_values if v["value"] == 0)# most values should be 0 (flat periods between increments)- assert (- count_zero_users >= 40- ), f"Expected >= 40 zero {time_aggregation} values for /users (sparse data), got {count_zero_users}"+ assert count_zero_users >= 40, f"Expected >= 40 zero {time_aggregation} values for /users (sparse data), got {count_zero_users}"# non-zero values should be 0.0167 (1/60 increment rate)non_zero_users = [v["value"] for v in users_values if v["value"] != 0]count_increment_rate = sum(1 for v in non_zero_users if v == spike_users_value)- assert (- count_increment_rate >= 8- ), f"Expected >= 8 increment {time_aggregation} values ({spike_users_value}) for /users, got {count_increment_rate}"+ assert count_increment_rate >= 8, f"Expected >= 8 increment {time_aggregation} values ({spike_users_value}) for /users, got {count_increment_rate}"@pytest.mark.parametrize(@@ -285,13 +219,13 @@ def test_for_service_with_switch(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],time_aggregation: str,expected_value_at_30th_minute: float,expected_value_at_31st_minute: float,value_at_switch: float,) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = f"test_{time_aggregation}_count"@@ -326,9 +260,7 @@ def test_for_service_with_switch() # 39th minute is when cumulative shifts to delta# All rates should be non-negative (stale periods = 0 rate)for v in result_values:- assert (- v["value"] >= 0- ), f"{time_aggregation} should not be negative: {v['value']}"+ assert v["value"] >= 0, f"{time_aggregation} should not be negative: {v['value']}"@pytest.mark.parametrize(@@ -342,11 +274,11 @@ def test_for_week_long_time_range(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],time_aggregation: str,expected_value: float,) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(days=7)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = f"test_{time_aggregation}_" + hex(random.getrandbits(32))[2:]@@ -386,11 +318,11 @@ def test_for_month_long_time_range(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],time_aggregation: str,expected_value: float,) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(days=31)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = f"test_{time_aggregation}_" + hex(random.getrandbits(32))[2:]diff --git a/tests/integration/tests/querier/08_filter_expression.py b/tests/integration/tests/querier/08_filter_expression.pyindex 266b164d5e..10909c89b5 100644--- a/tests/integration/tests/querier/08_filter_expression.py+++ b/tests/integration/tests/querier/08_filter_expression.py@@ -1,8 +1,8 @@import os+from collections.abc import Callablefrom concurrent.futures import ThreadPoolExecutor, as_completed-from datetime import datetime, timedelta, timezone+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Callable, List, Setimport pytestimport requests@@ -95,9 +95,9 @@ def test_not_filter_expression(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],expression: str,- expected_logs: Set[str],+ expected_logs: set[str],) -> None:"""Verifies that valid NOT filter expressions return the correct set of logs.@@ -113,7 +113,7 @@ def test_not_filter_expression(status_code/latency_ms/error_count are present as attribute on alpha and as resource on beta.This intentional overlap exercises context-prefix disambiguation."""- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)insert_logs([Logs(@@ -149,7 +149,7 @@ def test_not_filter_expression(token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)response = make_query_request(signoz,@@ -200,7 +200,7 @@ def test_filter_expressions_no_server_error(token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)insert_logs([Logs(@@ -240,7 +240,7 @@ def test_filter_expressions_no_server_error(filter_expression: str,) -> requests.Response:"""Helper to query raw logs with a filter expression over the last 30 seconds."""- now = datetime.now(tz=timezone.utc)+ now = datetime.now(tz=UTC)return make_query_request(signoz,token,@@ -268,22 +268,13 @@ def test_filter_expressions_no_server_error(],)- failures: List[str] = []+ failures: list[str] = []with ThreadPoolExecutor(max_workers=40) as executor:with open(FILTER_EXPRESSIONS_FILE, encoding="utf-8") as f:- futures = {- executor.submit(- _make_raw_logs_query, signoz, token, expr.rstrip("\n")- ): expr.rstrip("\n")- for expr in f- }+ futures = {executor.submit(_make_raw_logs_query, signoz, token, expr.rstrip("\n")): expr.rstrip("\n") for expr in f}for future in as_completed(futures):expr = futures[future]if future.result().status_code == HTTPStatus.INTERNAL_SERVER_ERROR:failures.append(expr)- assert (- len(failures) <= 0- ), f"{len(failures)} expression(s) caused HTTP 500:\n" + "\n".join(- f" {expr!r}" for expr in failures- )+ assert len(failures) <= 0, f"{len(failures)} expression(s) caused HTTP 500:\n" + "\n".join(f" {expr!r}" for expr in failures)diff --git a/tests/integration/tests/querier/08_metrics_histogram.py b/tests/integration/tests/querier/08_metrics_histogram.pyindex e1eae64273..e74e14e5e6 100644--- a/tests/integration/tests/querier/08_metrics_histogram.py+++ b/tests/integration/tests/querier/08_metrics_histogram.py@@ -2,9 +2,9 @@Look at the histogram_data_1h.jsonl file for the relevant data"""-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Callable, Listimport pytest@@ -51,13 +51,13 @@ def test_histogram_count_for_one_endpoint(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],threshold: float,operator: str,first_value: float,last_value: float,) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = "test_one_endpoint_bucket"@@ -118,13 +118,13 @@ def test_histogram_count_for_one_service(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],threshold: float,operator: str,first_value: float,last_value: float,) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = "test_one_service_bucket"@@ -187,14 +187,14 @@ def test_histogram_count_for_delta_service(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],threshold: float,operator: str,zeroth_value: float,first_value: float,last_value: float,) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = "test_delta_service_bucket"@@ -221,13 +221,9 @@ def test_histogram_count_for_delta_service(data = response.json()result_values = sorted(get_series_values(data, "A"), key=lambda x: x["timestamp"])- assert (- len(result_values) == 60- ) ## in delta, the value at 10:01 will also be reported+ assert len(result_values) == 60 ## in delta, the value at 10:01 will also be reportedassert result_values[0]["value"] == zeroth_value- assert (- result_values[1]["value"] == first_value- ) ## to keep parallel to the cumulative test cases, first_value refers to the value at 10:02+ assert result_values[1]["value"] == first_value ## to keep parallel to the cumulative test cases, first_value refers to the value at 10:02assert result_values[-1]["value"] == last_value@@ -250,14 +246,14 @@ def test_histogram_count_for_all_services(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],threshold: float,operator: str,zeroth_value: float,first_value: float,last_value: float,) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = "test_all_services_bucket"@@ -284,13 +280,9 @@ def test_histogram_count_for_all_services(data = response.json()result_values = sorted(get_series_values(data, "A"), key=lambda x: x["timestamp"])- assert (- len(result_values) == 60- ) ## in delta, the value at 10:01 will also be reported+ assert len(result_values) == 60 ## in delta, the value at 10:01 will also be reportedassert result_values[0]["value"] == zeroth_value- assert (- result_values[1]["value"] == first_value- ) ## to keep parallel to the cumulative test cases, first_value refers to the value at 10:02+ assert result_values[1]["value"] == first_value ## to keep parallel to the cumulative test cases, first_value refers to the value at 10:02assert result_values[-1]["value"] == last_value@@ -298,9 +290,9 @@ def test_histogram_count_no_param(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = "test_count_no_param_bucket"@@ -325,9 +317,7 @@ def test_histogram_count_no_param(data = response.json()all_series = get_all_series(data, "A")- assert (- len(all_series) == 8- ), f"Expected 8 series for 8 le buckets, got {len(all_series)}"+ assert len(all_series) == 8, f"Expected 8 series for 8 le buckets, got {len(all_series)}"le_buckets = {}for series in all_series:@@ -336,9 +326,7 @@ def test_histogram_count_no_param(le_buckets[le] = valuesexpected_buckets = {"1000", "1500", "2000", "4000", "5000", "6000", "8000", "+Inf"}- assert (- set(le_buckets.keys()) == expected_buckets- ), f"Expected endpoints {expected_buckets}, got {set(le_buckets.keys())}"+ assert set(le_buckets.keys()) == expected_buckets, f"Expected endpoints {expected_buckets}, got {set(le_buckets.keys())}"first_values = {"1000": 33,@@ -364,13 +352,9 @@ def test_histogram_count_no_param(assert len(values) == 60for v in values:- assert (- v["value"] >= 0- ), f"Count for {le} should not be negative: {v['value']}"+ assert v["value"] >= 0, f"Count for {le} should not be negative: {v['value']}"assert values[0]["value"] == 12345- assert (- values[1]["value"] == first_values[le]- ) ## to keep parallel to the cumulative test cases, first_value refers to the value at 10:02+ assert values[1]["value"] == first_values[le] ## to keep parallel to the cumulative test cases, first_value refers to the value at 10:02assert values[-1]["value"] == last_values[le]@@ -388,13 +372,13 @@ def test_histogram_percentile_for_all_services(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],space_agg: str,zeroth_value: float,first_value: float,last_value: float,) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = f"test_{space_agg}_bucket"@@ -439,12 +423,12 @@ def test_histogram_percentile_for_cumulative_service(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],space_agg: str,first_value: float,last_value: float,) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = f"test_{space_agg}_cumulative_bucket"@@ -489,13 +473,13 @@ def test_histogram_percentile_for_delta_service(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],space_agg: str,zeroth_value: float,first_value: float,last_value: float,) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = f"test_{space_agg}_bucket"diff --git a/tests/integration/tests/querier/09_metrics_gauge.py b/tests/integration/tests/querier/09_metrics_gauge.pyindex b4c2bc899f..f15a092318 100644--- a/tests/integration/tests/querier/09_metrics_gauge.py+++ b/tests/integration/tests/querier/09_metrics_gauge.py@@ -1,6 +1,6 @@-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Callable, Listimport pytest@@ -41,7 +41,7 @@ def test_for_one_service(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],time_agg: str,space_agg: str,service: str,@@ -51,7 +51,7 @@ def test_for_one_service(twentieth_min_val: float,after_twentieth_min_val: float, ## web service has a gap of 10 mins after the 20th minute) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = f"test_memory_{time_agg}_{space_agg}_{service}_usage"@@ -99,7 +99,7 @@ def test_for_multiple_aggregations(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],time_agg: str,space_agg: str,start_val: float,@@ -108,7 +108,7 @@ def test_for_multiple_aggregations(twenty_first_min_val: float, ## web service has a gap of 10 mins after the 20th minutethirty_first_min_val: float,) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = f"test_memory_{time_agg}_{space_agg}_usage"diff --git a/tests/integration/tests/querier/10_metrics_rate_delta_counter.py b/tests/integration/tests/querier/10_metrics_rate_delta_counter.pyindex b71cfcb936..c8274a68af 100644--- a/tests/integration/tests/querier/10_metrics_rate_delta_counter.py+++ b/tests/integration/tests/querier/10_metrics_rate_delta_counter.py@@ -3,9 +3,10 @@ Look at the delta_counters_1h.jsonl file for the relevant data"""import os-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Any, Callable, List+from typing import Anyfrom fixtures import typesfrom fixtures.auth import USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD@@ -25,9 +26,9 @@ def test_rate_with_steady_values_and_reset(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = "test_rate_stale"@@ -53,15 +54,9 @@ def test_rate_with_steady_values_and_reset(data = response.json()result_values = sorted(get_series_values(data, "A"), key=lambda x: x["timestamp"])- assert (- len(result_values) == 60- ) ## total 61 minutes covered, and 30th minute is missing- assert (- result_values[30]["value"] == 0.0333- ) # reset happens and [30] is for 31st minute. 2/60 cuz delta divides by step interval- assert (- result_values[31]["value"] == 0.133- ) # i.e 8/60 i.e 31st to 32nd minute changes+ assert len(result_values) == 60 ## total 61 minutes covered, and 30th minute is missing+ assert result_values[30]["value"] == 0.0333 # reset happens and [30] is for 31st minute. 2/60 cuz delta divides by step interval+ assert result_values[31]["value"] == 0.133 # i.e 8/60 i.e 31st to 32nd minute changescount_of_steady_rate = sum(1 for v in result_values if v["value"] == 0.0833)assert count_of_steady_rate == 58 # 1 reset + 1 high rate are excluded# All rates should be non-negative (stale periods = 0 rate)@@ -73,9 +68,9 @@ def test_rate_group_by_endpoint(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_metrics: Callable[[List[Metrics]], None],+ insert_metrics: Callable[[list[Metrics]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)metric_name = "test_rate_groupby"@@ -103,9 +98,7 @@ def test_rate_group_by_endpoint(all_series = get_all_series(data, "A")# Should have 5 different endpoints- assert (- len(all_series) == 5- ), f"Expected 5 series for 5 endpoints, got {len(all_series)}"+ assert len(all_series) == 5, f"Expected 5 series for 5 endpoints, got {len(all_series)}"# endpoint -> valuesendpoint_values = {}@@ -115,27 +108,19 @@ def test_rate_group_by_endpoint(endpoint_values[endpoint] = valuesexpected_endpoints = {"/products", "/health", "/checkout", "/orders", "/users"}- assert (- set(endpoint_values.keys()) == expected_endpoints- ), f"Expected endpoints {expected_endpoints}, got {set(endpoint_values.keys())}"+ assert set(endpoint_values.keys()) == expected_endpoints, f"Expected endpoints {expected_endpoints}, got {set(endpoint_values.keys())}"# at no point rate should be negativefor endpoint, values in endpoint_values.items():for v in values:- assert (- v["value"] >= 0- ), f"Rate for {endpoint} should not be negative: {v['value']}"+ assert v["value"] >= 0, f"Rate for {endpoint} should not be negative: {v['value']}"# /health: 60 data points (t01-t60), steady +10/min# rate = 10/60 = 0.167health_values = endpoint_values["/health"]- assert (- len(health_values) == 60- ), f"Expected 60 values for /health, got {len(health_values)}"+ assert len(health_values) == 60, f"Expected 60 values for /health, got {len(health_values)}"count_steady_health = sum(1 for v in health_values if v["value"] == 0.167)- assert (- count_steady_health == 60- ), f"Expected == 60 steady rate values (0.167) for /health, got {count_steady_health}"+ assert count_steady_health == 60, f"Expected == 60 steady rate values (0.167) for /health, got {count_steady_health}"# all /health rates should be 0.167 except possibly first/last due to boundariesfor v in health_values[1:-1]:assert v["value"] == 0.167, f"Expected /health rate 0.167, got {v['value']}"@@ -143,78 +128,50 @@ def test_rate_group_by_endpoint(# /products: 51 data points with 10-minute gap (t20-t29 missing), steady +20/min# rate = 20/60 = 0.333, gap causes lower averaged rate at boundaryproducts_values = endpoint_values["/products"]- assert (- len(products_values) == 51- ), f"Expected 51 values for /products, got {len(products_values)}"+ assert len(products_values) == 51, f"Expected 51 values for /products, got {len(products_values)}"count_steady_products = sum(1 for v in products_values if v["value"] == 0.333)- assert (- count_steady_products == 51- ), f"Expected 51 steady rate values (0.333) for /products, got {count_steady_products}"+ assert count_steady_products == 51, f"Expected 51 steady rate values (0.333) for /products, got {count_steady_products}"# /checkout: 61 data points (t00-t60), +1/min normal, +50/min spike at t40-t44# normal rate = 1/60 = 0.0167, spike rate = 50/60 = 0.833checkout_values = endpoint_values["/checkout"]- assert (- len(checkout_values) == 61- ), f"Expected 61 values for /checkout, got {len(checkout_values)}"+ assert len(checkout_values) == 61, f"Expected 61 values for /checkout, got {len(checkout_values)}"count_steady_checkout = sum(1 for v in checkout_values if v["value"] == 0.0167)- assert (- count_steady_checkout == 56- ), f"Expected 56 steady rate values (0.0167) for /checkout, got {count_steady_checkout}"+ assert count_steady_checkout == 56, f"Expected 56 steady rate values (0.0167) for /checkout, got {count_steady_checkout}"# check that spike values exist (traffic spike +50/min at t40-t44)count_spike_checkout = sum(1 for v in checkout_values if v["value"] == 0.833)- assert (- count_spike_checkout == 5- ), f"Expected 5 spike rate values (0.833) for /checkout, got {count_spike_checkout}"+ assert count_spike_checkout == 5, f"Expected 5 spike rate values (0.833) for /checkout, got {count_spike_checkout}"# spike values should be consecutive- spike_indices = [- i for i, v in enumerate[Any](checkout_values) if v["value"] == 0.833- ]+ spike_indices = [i for i, v in enumerate[Any](checkout_values) if v["value"] == 0.833]assert len(spike_indices) == 5, f"Expected 5 spike indices, got {spike_indices}"# consecutivenessfor i in range(1, len(spike_indices)):- assert (- spike_indices[i] == spike_indices[i - 1] + 1- ), f"Spike indices should be consecutive, got {spike_indices}"+ assert spike_indices[i] == spike_indices[i - 1] + 1, f"Spike indices should be consecutive, got {spike_indices}"# /orders: 60 data points (t00-t60) with gap at t30, counter reset at t31 (150->2)# rate = 5/60 = 0.0833# reset at t31 causes: rate at t30 includes gap (lower), t31 has high rate after resetorders_values = endpoint_values["/orders"]- assert (- len(orders_values) == 60- ), f"Expected 59 values for /orders, got {len(orders_values)}"+ assert len(orders_values) == 60, f"Expected 59 values for /orders, got {len(orders_values)}"count_steady_orders = sum(1 for v in orders_values if v["value"] == 0.0833)- assert (- count_steady_orders == 58- ), f"Expected 58 steady rate values (0.0833) for /orders, got {count_steady_orders}"+ assert count_steady_orders == 58, f"Expected 58 steady rate values (0.0833) for /orders, got {count_steady_orders}"# check for counter reset effects - there should be some non-standard valuesnon_standard_orders = [v["value"] for v in orders_values if v["value"] != 0.0833]- assert (- len(non_standard_orders) == 2- ), f"Expected 2 non-standard values due to counter reset, got {non_standard_orders}"+ assert len(non_standard_orders) == 2, f"Expected 2 non-standard values due to counter reset, got {non_standard_orders}"# post-reset value should be higher (new counter value / interval)high_rate_orders = [v for v in non_standard_orders if v > 0.0833]- assert (- len(high_rate_orders) == 1- ), f"Expected one high rate value after counter reset, got {non_standard_orders}"+ assert len(high_rate_orders) == 1, f"Expected one high rate value after counter reset, got {non_standard_orders}"# /users: 56 data points (t05-t60), sparse +1 every 5 minutes (12 of them)# Rate = 1/60 = 0.0167 during increment, 0 during flat periodsusers_values = endpoint_values["/users"]- assert (- len(users_values) == 56- ), f"Expected 56 values for /users, got {len(users_values)}"+ assert len(users_values) == 56, f"Expected 56 values for /users, got {len(users_values)}"count_zero_users = sum(1 for v in users_values if v["value"] == 0)# most values should be 0 (flat periods between increments)- assert (- count_zero_users == 44- ), f"Expected 44 zero rate values for /users (sparse data), got {count_zero_users}"+ assert count_zero_users == 44, f"Expected 44 zero rate values for /users (sparse data), got {count_zero_users}"# non-zero values should be 0.0167 (1/60 increment rate)non_zero_users = [v["value"] for v in users_values if v["value"] != 0]count_increment_rate = sum(1 for v in non_zero_users if v == 0.0167)- assert (- count_increment_rate == 12- ), f"Expected 12 increment rate values (0.0167) for /users, got {count_increment_rate}"+ assert count_increment_rate == 12, f"Expected 12 increment rate values (0.0167) for /users, got {count_increment_rate}"diff --git a/tests/integration/tests/querier/11_cost_meter.py b/tests/integration/tests/querier/11_cost_meter.pyindex 62cb3ac77f..a242e9b0ec 100644--- a/tests/integration/tests/querier/11_cost_meter.py+++ b/tests/integration/tests/querier/11_cost_meter.py@@ -1,6 +1,6 @@-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Callable, Listimport requests@@ -18,9 +18,9 @@ def test_query_range_cost_meter(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_meter_samples: Callable[[List[MeterSample]], None],+ insert_meter_samples: Callable[[list[MeterSample]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)@@ -64,9 +64,9 @@ def test_list_meter_metric_names(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_meter_samples: Callable[[List[MeterSample]], None],+ insert_meter_samples: Callable[[list[MeterSample]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ms = int((now - timedelta(minutes=65)).timestamp() * 1000)end_ms = int(now.timestamp() * 1000)@@ -105,9 +105,7 @@ def test_list_meter_metric_names(data = response.json()metrics = data.get("data", {}).get("metrics", [])metric_names = [m["metricName"] for m in metrics]- assert (- metric_name in metric_names- ), f"Expected {metric_name} in metric names, got: {metric_names}"+ assert metric_name in metric_names, f"Expected {metric_name} in metric names, got: {metric_names}"# Verify /api/v1/fields/values with source=meter filters label values by metricNamespace@@ -117,9 +115,9 @@ def test_metric_namespace_meter_values_filtering(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_meter_samples: Callable[[List[MeterSample]], None],+ insert_meter_samples: Callable[[list[MeterSample]], None],) -> None:- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)samples_a = make_meter_samples("meter.ns.a.cost",diff --git a/tests/integration/tests/querier/12_logs_resource_evolution.py b/tests/integration/tests/querier/12_logs_resource_evolution.pyindex 271623b471..8f80310885 100644--- a/tests/integration/tests/querier/12_logs_resource_evolution.py+++ b/tests/integration/tests/querier/12_logs_resource_evolution.py@@ -1,6 +1,6 @@-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Callable, Dict, Listfrom fixtures import typesfrom fixtures.auth import USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD@@ -31,7 +31,7 @@ def _get_logs_resource_evolution_time_json(signoz: types.SigNoz) -> datetime:assert result, "Expected logs resource evolution metadata to exist"release_time_ns = int(result[0][0])- return datetime.fromtimestamp(release_time_ns / 1e9, tz=timezone.utc)+ return datetime.fromtimestamp(release_time_ns / 1e9, tz=UTC)# Logs with timestamps before the evolution time will have resources written only to resources_string.@@ -62,7 +62,7 @@ def _query_grouped_log_series(end: datetime,group_by: str = "service.name",aggregation: str = "count()",-) -> Dict[str, List[Dict]]:+) -> dict[str, list[dict]]:response = make_query_request(signoz,token,@@ -98,8 +98,8 @@ def _query_grouped_log_series(def _assert_grouped_series(- series_by_group: Dict[str, Dict],- expected_values_by_group: Dict[str, Dict[int, int]],+ series_by_group: dict[str, dict],+ expected_values_by_group: dict[str, dict[int, int]],) -> None:assert set(series_by_group.keys()) == set(expected_values_by_group.keys())@@ -108,17 +108,14 @@ def _assert_grouped_series(series_by_group[group_name]["values"],key=lambda value: value["timestamp"],)- expected_values = [- {"timestamp": timestamp, "value": value}- for timestamp, value in sorted(expected_by_ts.items())- ]+ expected_values = [{"timestamp": timestamp, "value": value} for timestamp, value in sorted(expected_by_ts.items())]assert actual_values == expected_valuesdef _test_logs_resource_evolution(signoz: types.SigNoz,token: str,- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""# 1. Get the evolution time.@@ -165,9 +162,7 @@ def _test_logs_resource_evolution(])- before_series = _query_grouped_log_series(- signoz, token, before_2 - timedelta(minutes=1), before_1 + timedelta(minutes=1)- )+ before_series = _query_grouped_log_series(signoz, token, before_2 - timedelta(minutes=1), before_1 + timedelta(minutes=1))_assert_grouped_series(before_series,expected_values_by_group={@@ -180,9 +175,7 @@ def _test_logs_resource_evolution(},)- after_series = _query_grouped_log_series(- signoz, token, after_1 - timedelta(minutes=1), after_2 + timedelta(minutes=1)- )+ after_series = _query_grouped_log_series(signoz, token, after_1 - timedelta(minutes=1), after_2 + timedelta(minutes=1))_assert_grouped_series(after_series,expected_values_by_group={@@ -195,9 +188,7 @@ def _test_logs_resource_evolution(},)- spanning_series = _query_grouped_log_series(- signoz, token, before_2, after_2 + timedelta(minutes=1)- )+ spanning_series = _query_grouped_log_series(signoz, token, before_2, after_2 + timedelta(minutes=1))_assert_grouped_series(spanning_series,expected_values_by_group={@@ -242,7 +233,7 @@ def test_logs_resource_evolution(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)_test_logs_resource_evolution(signoz, token, insert_logs)@@ -252,7 +243,7 @@ def test_logs_materialized_resource_evolution(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],materialize_log_field: Callable[[str, str, str, str], None],) -> None:token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)diff --git a/tests/integration/tests/querier/14_list_query_expectations.py b/tests/integration/tests/querier/14_list_query_expectations.pyindex df6473a602..ef3fa5488a 100644--- a/tests/integration/tests/querier/14_list_query_expectations.py+++ b/tests/integration/tests/querier/14_list_query_expectations.py@@ -1,6 +1,7 @@-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Any, Callable, List+from typing import Anyimport pytest@@ -373,9 +374,9 @@ def test_logs_list_query_timestamp_expectations(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],query: BuilderQuery,- result: Callable[[List[Logs]], List[Any]],+ result: Callable[[list[Logs]], list[Any]],) -> None:"""Setup:@@ -392,10 +393,8 @@ def test_logs_list_query_timestamp_expectations(response = make_query_request(signoz,token,- start_ms=int(- (datetime.now(tz=timezone.utc) - timedelta(minutes=10)).timestamp() * 1000- ),- end_ms=int(datetime.now(tz=timezone.utc).timestamp() * 1000),+ start_ms=int((datetime.now(tz=UTC) - timedelta(minutes=10)).timestamp() * 1000),+ end_ms=int(datetime.now(tz=UTC).timestamp() * 1000),request_type="raw",queries=[query.to_dict()],)@@ -645,9 +644,9 @@ def test_logs_list_query_trace_id_expectations(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],query: BuilderQuery,- results: Callable[[List[Logs]], List[Any]],+ results: Callable[[list[Logs]], list[Any]],) -> None:"""Justification for expected rows and ordering:@@ -660,7 +659,7 @@ def test_logs_list_query_trace_id_expectations(Tests:"""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)logs = [Logs(@@ -723,10 +722,8 @@ def test_logs_list_query_trace_id_expectations(response = make_query_request(signoz,token,- start_ms=int(- (datetime.now(tz=timezone.utc) - timedelta(minutes=10)).timestamp() * 1000- ),- end_ms=int(datetime.now(tz=timezone.utc).timestamp() * 1000),+ start_ms=int((datetime.now(tz=UTC) - timedelta(minutes=10)).timestamp() * 1000),+ end_ms=int(datetime.now(tz=UTC).timestamp() * 1000),request_type="raw",queries=[query.to_dict()],)@@ -740,19 +737,15 @@ def test_logs_list_query_trace_id_expectations(else:print(response.json())rows = response.json()["data"]["data"]["results"][0]["rows"]- assert len(rows) == len(- results(logs)- ), f"Expected {len(results(logs))} rows, got {len(rows)}"+ assert len(rows) == len(results(logs)), f"Expected {len(results(logs))} rows, got {len(rows)}"for row, expected_row in zip(rows, results(logs)):data = row["data"]keys = list(data.keys())for i, expected_value in enumerate(expected_row):- assert (- data[keys[i]] == expected_value- ), f"Row mismatch at key '{keys[i]}': expected {expected_value}, got {data[keys[i]]}"+ assert data[keys[i]] == expected_value, f"Row mismatch at key '{keys[i]}': expected {expected_value}, got {data[keys[i]]}"-def _flatten_log(log: Logs) -> List[Any]:+def _flatten_log(log: Logs) -> list[Any]:return [log.attributes_bool,log.attributes_number,diff --git a/tests/integration/tests/rawexportdata/01_logs.py b/tests/integration/tests/rawexportdata/01_logs.pyindex 73bb0cbefd..bbadffc995 100644--- a/tests/integration/tests/rawexportdata/01_logs.py+++ b/tests/integration/tests/rawexportdata/01_logs.py@@ -1,9 +1,9 @@import csvimport ioimport json-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Callable, Listimport requests@@ -39,7 +39,7 @@ def test_export_logs_csv(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Setup:@@ -51,7 +51,7 @@ def test_export_logs_csv(3. Validate headers are present4. Check log data is correctly formatted"""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs([@@ -152,7 +152,7 @@ def test_export_logs_jsonl(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Setup:@@ -164,7 +164,7 @@ def test_export_logs_jsonl(3. Check each line is valid JSON4. Validate log data is correctly formatted"""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs([@@ -248,7 +248,7 @@ def test_export_logs_with_filter(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Setup:@@ -258,7 +258,7 @@ def test_export_logs_with_filter(1. Export logs with filter applied2. Verify only filtered logs are returned"""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs([@@ -301,11 +301,7 @@ def test_export_logs_with_filter(body = QueryRangeRequest(start=start_ns,end=end_ns,- queries=[- BuilderQuery(- signal="logs", name="A", filter_expression="severity_text = 'ERROR'"- )- ],+ queries=[BuilderQuery(signal="logs", name="A", filter_expression="severity_text = 'ERROR'")],).to_dict()# Export logs with filter@@ -337,7 +333,7 @@ def test_export_logs_with_limit(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Setup:@@ -347,7 +343,7 @@ def test_export_logs_with_limit(1. Export logs with limit applied2. Verify only limited number of logs are returned"""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)logs = []for i in range(5):@@ -405,7 +401,7 @@ def test_export_logs_with_columns(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Setup:@@ -415,7 +411,7 @@ def test_export_logs_with_columns(1. Export logs with specific columns2. Verify only specified columns are returned"""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs([@@ -491,7 +487,7 @@ def test_export_logs_with_order_by(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Setup:@@ -501,7 +497,7 @@ def test_export_logs_with_order_by(1. Export logs with ascending timestamp order2. Verify logs are returned in correct order"""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs([@@ -582,7 +578,7 @@ def test_export_logs_with_complex_filter(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_logs: Callable[[List[Logs]], None],+ insert_logs: Callable[[list[Logs]], None],) -> None:"""Setup:@@ -592,7 +588,7 @@ def test_export_logs_with_complex_filter(1. Export logs with complex filter (multiple conditions)2. Verify only logs matching all conditions are returned"""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_logs([@@ -660,9 +656,7 @@ def test_export_logs_with_complex_filter(# Parse JSONL contentjsonl_lines = response.text.strip().split("\n")- assert (- len(jsonl_lines) == 1- ), f"Expected 1 line (complex filter), got {len(jsonl_lines)}"+ assert len(jsonl_lines) == 1, f"Expected 1 line (complex filter), got {len(jsonl_lines)}"# Verify the filtered logfiltered_obj = json.loads(jsonl_lines[0])diff --git a/tests/integration/tests/rawexportdata/02_traces.py b/tests/integration/tests/rawexportdata/02_traces.pyindex 5b389024e1..c6dbb8e677 100644--- a/tests/integration/tests/rawexportdata/02_traces.py+++ b/tests/integration/tests/rawexportdata/02_traces.py@@ -1,9 +1,9 @@import csvimport ioimport json-from datetime import datetime, timedelta, timezone+from collections.abc import Callable+from datetime import UTC, datetime, timedeltafrom http import HTTPStatus-from typing import Callable, Listimport requests@@ -45,7 +45,7 @@ def test_export_traces_csv(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Setup:@@ -63,7 +63,7 @@ def test_export_traces_csv(topic_service_trace_id = TraceIdGenerator.trace_id()topic_service_span_id = TraceIdGenerator.span_id()- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces([@@ -188,7 +188,7 @@ def test_export_traces_jsonl(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Setup:@@ -205,7 +205,7 @@ def test_export_traces_jsonl(topic_service_trace_id = TraceIdGenerator.trace_id()topic_service_span_id = TraceIdGenerator.span_id()- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces([@@ -305,7 +305,7 @@ def test_export_traces_with_filter(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Setup:@@ -320,7 +320,7 @@ def test_export_traces_with_filter(service_b_trace_id = TraceIdGenerator.trace_id()service_b_span_id = TraceIdGenerator.span_id()- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces([@@ -404,7 +404,7 @@ def test_export_traces_with_limit(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Setup:@@ -414,7 +414,7 @@ def test_export_traces_with_limit(1. Export traces with limit applied2. Verify only limited number of traces are returned"""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)traces = []for i in range(5):@@ -482,7 +482,7 @@ def test_export_traces_multiple_queries_rejected(1. POST with multiple builder queries but no trace operator is rejected2. Verify 400 error is returned"""- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)start_ns = int((now - timedelta(minutes=5)).timestamp() * 1e9)end_ns = int(now.timestamp() * 1e9)@@ -526,7 +526,7 @@ def test_export_traces_with_composite_query_trace_operator(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Setup:@@ -541,7 +541,7 @@ def test_export_traces_with_composite_query_trace_operator(child_span_id_1 = TraceIdGenerator.span_id()child_span_id_2 = TraceIdGenerator.span_id()- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces([@@ -668,7 +668,7 @@ def test_export_traces_with_select_fields(signoz: types.SigNoz,create_user_admin: None, # pylint: disable=unused-argumentget_token: Callable[[str, str], str],- insert_traces: Callable[[List[Traces]], None],+ insert_traces: Callable[[list[Traces]], None],) -> None:"""Setup:@@ -681,7 +681,7 @@ def test_export_traces_with_select_fields(trace_id = TraceIdGenerator.trace_id()span_id = TraceIdGenerator.span_id()- now = datetime.now(tz=timezone.utc).replace(second=0, microsecond=0)+ now = datetime.now(tz=UTC).replace(second=0, microsecond=0)insert_traces([diff --git a/tests/integration/tests/role/01_register.py b/tests/integration/tests/role/01_register.pyindex a86d8b12a2..26bcb1e040 100644--- a/tests/integration/tests/role/01_register.py+++ b/tests/integration/tests/role/01_register.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport pytestimport requests@@ -72,9 +72,7 @@ def test_root_user_signoz_admin_assignment(# Loop over the roles and get the org_id and id for signoz-admin roleroles = response.json()["data"]- admin_role_entry = next(- (role for role in roles if role["name"] == "signoz-admin"), None- )+ admin_role_entry = next((role for role in roles if role["name"] == "signoz-admin"), None)assert admin_role_entry is not Noneorg_id = admin_role_entry["orgId"]@@ -124,9 +122,7 @@ def test_anonymous_user_signoz_anonymous_assignment(# Loop over the roles and get the org_id and id for signoz-admin roleroles = response.json()["data"]- admin_role_entry = next(- (role for role in roles if role["name"] == "signoz-anonymous"), None- )+ admin_role_entry = next((role for role in roles if role["name"] == "signoz-anonymous"), None)assert admin_role_entry is not Noneorg_id = admin_role_entry["orgId"]diff --git a/tests/integration/tests/role/02_user.py b/tests/integration/tests/role/02_user.pyindex 37833196c9..7a6563367d 100644--- a/tests/integration/tests/role/02_user.py+++ b/tests/integration/tests/role/02_user.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport pytestimport requests@@ -132,9 +132,7 @@ def test_user_update_role_grant(viewer_tuple_object_id = f"organization/{org_id}/role/signoz-viewer"# Check there is no tuple for signoz-editor assignmenteditor_tuple_result = conn.execute(- sql.text(- "SELECT * FROM tuple WHERE object_id = :object_id AND relation = 'assignee'"- ),+ sql.text("SELECT * FROM tuple WHERE object_id = :object_id AND relation = 'assignee'"),{"object_id": editor_tuple_object_id},)for row in editor_tuple_result.mappings().fetchall():@@ -147,9 +145,7 @@ def test_user_update_role_grant(# Check that a tuple exists for signoz-viewer assignmentviewer_tuple_result = conn.execute(- sql.text(- "SELECT * FROM tuple WHERE object_id = :object_id AND relation = 'assignee'"- ),+ sql.text("SELECT * FROM tuple WHERE object_id = :object_id AND relation = 'assignee'"),{"object_id": viewer_tuple_object_id},)row = viewer_tuple_result.mappings().fetchone()@@ -204,9 +200,7 @@ def test_user_delete_role_revoke(with signoz.sqlstore.conn.connect() as conn:tuple_result = conn.execute(- sql.text(- "SELECT * FROM tuple WHERE object_id = :object_id AND relation = 'assignee'"- ),+ sql.text("SELECT * FROM tuple WHERE object_id = :object_id AND relation = 'assignee'"),{"object_id": tuple_object_id},)diff --git a/tests/integration/tests/rootuser/01_rootuser.py b/tests/integration/tests/rootuser/01_rootuser.pyindex b48d2dc156..c2aaf48d4e 100644--- a/tests/integration/tests/rootuser/01_rootuser.py+++ b/tests/integration/tests/rootuser/01_rootuser.py@@ -32,9 +32,7 @@ def test_root_user_created(signoz: types.SigNoz) -> None:)time.sleep(2)else:- raise AssertionError(- "setupCompleted did not become true within the expected time"- )+ raise AssertionError("setupCompleted did not become true within the expected time")# Phase 2: wait for root user to be fully resolvedfor attempt in range(15):diff --git a/tests/integration/tests/serviceaccount/01_crud.py b/tests/integration/tests/serviceaccount/01_crud.pyindex 8226f11a2e..bfe9bed05b 100644--- a/tests/integration/tests/serviceaccount/01_crud.py+++ b/tests/integration/tests/serviceaccount/01_crud.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -103,9 +103,7 @@ def test_get_service_account(service_account = find_service_account_by_name(signoz, token, "test-sa")response = requests.get(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account['id']}"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account['id']}"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -127,9 +125,7 @@ def test_get_service_account_not_found(token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)response = requests.get(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/00000000-0000-0000-0000-000000000000"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/00000000-0000-0000-0000-000000000000"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -146,9 +142,7 @@ def test_update_service_account(service_account = find_service_account_by_name(signoz, token, "test-sa")response = requests.put(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account['id']}"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account['id']}"),json={"name": "test-sa-updated"},headers={"Authorization": f"Bearer {token}"},timeout=5,@@ -158,9 +152,7 @@ def test_update_service_account(# verify the updateget_resp = requests.get(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account['id']}"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account['id']}"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -179,9 +171,7 @@ def test_delete_service_account(# verify status changed to deletedget_resp = requests.get(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -232,13 +222,9 @@ def test_delete_already_deleted_service_account(# second delete should be handled gracefully (idempotent or error)response = requests.delete(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}"),headers={"Authorization": f"Bearer {token}"},timeout=5,)- assert (- response.status_code == HTTPStatus.NOT_IMPLEMENTED- ), f"Expected 501 for already-deleted SA, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.NOT_IMPLEMENTED, f"Expected 501 for already-deleted SA, got {response.status_code}: {response.text}"diff --git a/tests/integration/tests/serviceaccount/02_keys.py b/tests/integration/tests/serviceaccount/02_keys.pyindex 5c5a71d77c..f80427025f 100644--- a/tests/integration/tests/serviceaccount/02_keys.py+++ b/tests/integration/tests/serviceaccount/02_keys.py@@ -1,6 +1,6 @@import time+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -25,9 +25,7 @@ def test_create_api_key(service_account_id = create_service_account(signoz, token, "sa-for-keys")response = requests.post(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"),json={"name": "my-key", "expiresAt": 0},headers={"Authorization": f"Bearer {token}"},timeout=5,@@ -50,9 +48,7 @@ def test_create_api_key_duplicate_name(# creating a key with the same name should failresponse = requests.post(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account['id']}/keys"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account['id']}/keys"),json={"name": "my-key", "expiresAt": 0},headers={"Authorization": f"Bearer {token}"},timeout=5,@@ -70,9 +66,7 @@ def test_list_api_keys(service_account = find_service_account_by_name(signoz, token, "sa-for-keys")response = requests.get(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account['id']}/keys"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account['id']}/keys"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -97,18 +91,14 @@ def test_update_api_key(service_account = find_service_account_by_name(signoz, token, "sa-for-keys")keys_resp = requests.get(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account['id']}/keys"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account['id']}/keys"),headers={"Authorization": f"Bearer {token}"},timeout=5,)key_id = keys_resp.json()["data"][0]["id"]response = requests.put(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account['id']}/keys/{key_id}"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account['id']}/keys/{key_id}"),json={"name": "renamed-key", "expiresAt": 0},headers={"Authorization": f"Bearer {token}"},timeout=5,@@ -126,9 +116,7 @@ def test_revoke_api_key(service_account_id = create_service_account(signoz, token, "sa-revoke-key")create_resp = requests.post(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"),json={"name": "key-to-revoke", "expiresAt": 0},headers={"Authorization": f"Bearer {token}"},timeout=5,@@ -137,9 +125,7 @@ def test_revoke_api_key(key_id = create_resp.json()["data"]["id"]response = requests.delete(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys/{key_id}"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys/{key_id}"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -158,9 +144,7 @@ def test_create_api_key_with_expiry(future_ts = int(time.time()) + 3600 # 1 hour from nowresponse = requests.post(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"),json={"name": "future-key", "expiresAt": future_ts},headers={"Authorization": f"Bearer {token}"},timeout=5,@@ -179,9 +163,7 @@ def test_create_api_key_with_expiry(# verify expiresAt is stored correctlykeys_resp = requests.get(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -200,17 +182,13 @@ def test_create_api_key_with_past_expiry_rejected(past_ts = int(time.time()) - 60 # 1 minute agoresponse = requests.post(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"),json={"name": "expired-key", "expiresAt": past_ts},headers={"Authorization": f"Bearer {token}"},timeout=5,)- assert (- response.status_code == HTTPStatus.BAD_REQUEST- ), f"Expected 400 for past expiresAt, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.BAD_REQUEST, f"Expected 400 for past expiresAt, got {response.status_code}: {response.text}"def test_create_api_key_no_expiry(@@ -223,9 +201,7 @@ def test_create_api_key_no_expiry(service_account_id = create_service_account(signoz, token, "sa-key-no-expiry")response = requests.post(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"),json={"name": "forever-key", "expiresAt": 0},headers={"Authorization": f"Bearer {token}"},timeout=5,@@ -243,9 +219,7 @@ def test_create_api_key_no_expiry(# verify expiresAt is 0keys_resp = requests.get(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -264,9 +238,7 @@ def test_update_api_key_expiry(# create with no expirycreate_resp = requests.post(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"),json={"name": "update-expiry-key", "expiresAt": 0},headers={"Authorization": f"Bearer {token}"},timeout=5,@@ -278,16 +250,12 @@ def test_update_api_key_expiry(# updating to expire in the past should be rejectedpast_ts = int(time.time()) - 60update_resp = requests.put(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys/{key_id}"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys/{key_id}"),json={"name": "update-expiry-key", "expiresAt": past_ts},headers={"Authorization": f"Bearer {token}"},timeout=5,)- assert (- update_resp.status_code == HTTPStatus.BAD_REQUEST- ), f"Expected 400 for past expiresAt update, got {update_resp.status_code}: {update_resp.text}"+ assert update_resp.status_code == HTTPStatus.BAD_REQUEST, f"Expected 400 for past expiresAt update, got {update_resp.status_code}: {update_resp.text}"# key should still work since the update was rejecteddash_resp = requests.get(@@ -295,6 +263,4 @@ def test_update_api_key_expiry(headers={"SIGNOZ-API-KEY": api_key},timeout=5,)- assert (- dash_resp.status_code == HTTPStatus.OK- ), f"Key should still work after rejected update, got {dash_resp.status_code}: {dash_resp.text}"+ assert dash_resp.status_code == HTTPStatus.OK, f"Key should still work after rejected update, got {dash_resp.status_code}: {dash_resp.text}"diff --git a/tests/integration/tests/serviceaccount/03_auth.py b/tests/integration/tests/serviceaccount/03_auth.pyindex 3d5f6a1d6c..38588dcab1 100644--- a/tests/integration/tests/serviceaccount/03_auth.py+++ b/tests/integration/tests/serviceaccount/03_auth.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -49,9 +49,7 @@ def test_service_account_key_forbidden_on_user_me()## This shouldn't be allowed on api key identn, will be updated once we fix that.- assert (- response.status_code == HTTPStatus.NOT_FOUND- ), f"Expected 404 for service account on /users/me, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.NOT_FOUND, f"Expected 404 for service account on /users/me, got {response.status_code}: {response.text}"def test_service_account_key_forbidden_on_user_preferences(@@ -70,9 +68,7 @@ def test_service_account_key_forbidden_on_user_preferences()## This shouldn't be allowed on api key identn, will be updated once we fix that.- assert (- response.status_code == HTTPStatus.OK- ), f"Expected 200 for service account on /user/preferences, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.OK, f"Expected 200 for service account on /user/preferences, got {response.status_code}: {response.text}"def test_service_account_role_access_admin(@@ -82,9 +78,7 @@ def test_service_account_role_access_admin():"""Admin service account can access admin, edit, and view endpoints."""token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- _, api_key = create_service_account_with_key(- signoz, token, "sa-role-admin", role="signoz-admin"- )+ _, api_key = create_service_account_with_key(signoz, token, "sa-role-admin", role="signoz-admin")# AdminAccess: list service accountsresp = requests.get(@@ -92,9 +86,7 @@ def test_service_account_role_access_admin(headers={"SIGNOZ-API-KEY": api_key},timeout=5,)- assert (- resp.status_code == HTTPStatus.OK- ), f"Admin service account should access admin endpoint, got {resp.status_code}: {resp.text}"+ assert resp.status_code == HTTPStatus.OK, f"Admin service account should access admin endpoint, got {resp.status_code}: {resp.text}"# EditAccess: create a dashboardresp = requests.post(@@ -107,9 +99,7 @@ def test_service_account_role_access_admin(headers={"SIGNOZ-API-KEY": api_key},timeout=5,)- assert (- resp.status_code == HTTPStatus.CREATED- ), f"Admin service account should access edit endpoint, got {resp.status_code}: {resp.text}"+ assert resp.status_code == HTTPStatus.CREATED, f"Admin service account should access edit endpoint, got {resp.status_code}: {resp.text}"# ViewAccess: list dashboardsresp = requests.get(@@ -117,9 +107,7 @@ def test_service_account_role_access_admin(headers={"SIGNOZ-API-KEY": api_key},timeout=5,)- assert (- resp.status_code == HTTPStatus.OK- ), f"Admin service account should access view endpoint, got {resp.status_code}: {resp.text}"+ assert resp.status_code == HTTPStatus.OK, f"Admin service account should access view endpoint, got {resp.status_code}: {resp.text}"def test_service_account_role_access_editor(@@ -129,9 +117,7 @@ def test_service_account_role_access_editor():"""Editor service account can access edit and view endpoints but not admin."""token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- _, api_key = create_service_account_with_key(- signoz, token, "sa-role-editor", role="signoz-editor"- )+ _, api_key = create_service_account_with_key(signoz, token, "sa-role-editor", role="signoz-editor")# AdminAccess: should be forbiddenresp = requests.get(@@ -139,9 +125,7 @@ def test_service_account_role_access_editor(headers={"SIGNOZ-API-KEY": api_key},timeout=5,)- assert (- resp.status_code == HTTPStatus.FORBIDDEN- ), f"Editor service account should be forbidden from admin endpoint, got {resp.status_code}: {resp.text}"+ assert resp.status_code == HTTPStatus.FORBIDDEN, f"Editor service account should be forbidden from admin endpoint, got {resp.status_code}: {resp.text}"# EditAccess: create a dashboardresp = requests.post(@@ -154,9 +138,7 @@ def test_service_account_role_access_editor(headers={"SIGNOZ-API-KEY": api_key},timeout=5,)- assert (- resp.status_code == HTTPStatus.CREATED- ), f"Editor service account should access edit endpoint, got {resp.status_code}: {resp.text}"+ assert resp.status_code == HTTPStatus.CREATED, f"Editor service account should access edit endpoint, got {resp.status_code}: {resp.text}"# ViewAccess: list dashboardsresp = requests.get(@@ -164,9 +146,7 @@ def test_service_account_role_access_editor(headers={"SIGNOZ-API-KEY": api_key},timeout=5,)- assert (- resp.status_code == HTTPStatus.OK- ), f"Editor service account should access view endpoint, got {resp.status_code}: {resp.text}"+ assert resp.status_code == HTTPStatus.OK, f"Editor service account should access view endpoint, got {resp.status_code}: {resp.text}"def test_service_account_role_access_viewer(@@ -176,9 +156,7 @@ def test_service_account_role_access_viewer():"""Viewer service account can access view endpoints but not edit or admin."""token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- _, api_key = create_service_account_with_key(- signoz, token, "sa-role-viewer", role="signoz-viewer"- )+ _, api_key = create_service_account_with_key(signoz, token, "sa-role-viewer", role="signoz-viewer")# AdminAccess: should be forbiddenresp = requests.get(@@ -186,9 +164,7 @@ def test_service_account_role_access_viewer(headers={"SIGNOZ-API-KEY": api_key},timeout=5,)- assert (- resp.status_code == HTTPStatus.FORBIDDEN- ), f"Viewer service account should be forbidden from admin endpoint, got {resp.status_code}: {resp.text}"+ assert resp.status_code == HTTPStatus.FORBIDDEN, f"Viewer service account should be forbidden from admin endpoint, got {resp.status_code}: {resp.text}"# EditAccess: should be forbiddenresp = requests.post(@@ -201,9 +177,7 @@ def test_service_account_role_access_viewer(headers={"SIGNOZ-API-KEY": api_key},timeout=5,)- assert (- resp.status_code == HTTPStatus.FORBIDDEN- ), f"Viewer service account should be forbidden from edit endpoint, got {resp.status_code}: {resp.text}"+ assert resp.status_code == HTTPStatus.FORBIDDEN, f"Viewer service account should be forbidden from edit endpoint, got {resp.status_code}: {resp.text}"# ViewAccess: list dashboardsresp = requests.get(@@ -211,9 +185,7 @@ def test_service_account_role_access_viewer(headers={"SIGNOZ-API-KEY": api_key},timeout=5,)- assert (- resp.status_code == HTTPStatus.OK- ), f"Viewer service account should access view endpoint, got {resp.status_code}: {resp.text}"+ assert resp.status_code == HTTPStatus.OK, f"Viewer service account should access view endpoint, got {resp.status_code}: {resp.text}"def test_service_account_key_deleted_account_rejected(@@ -223,9 +195,7 @@ def test_service_account_key_deleted_account_rejected():"""A deleted service account's key must be rejected."""token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- service_account_id, api_key = create_service_account_with_key(- signoz, token, "sa-disable-auth"- )+ service_account_id, api_key = create_service_account_with_key(signoz, token, "sa-disable-auth")# verify the key works before deletingresponse = requests.get(@@ -245,9 +215,7 @@ def test_service_account_key_deleted_account_rejected(timeout=5,)- assert (- response.status_code == HTTPStatus.UNAUTHORIZED- ), f"Expected 401 for disabled service account, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.UNAUTHORIZED, f"Expected 401 for disabled service account, got {response.status_code}: {response.text}"def test_service_account_key_revoked_key_rejected(@@ -257,9 +225,7 @@ def test_service_account_key_revoked_key_rejected():"""A revoked API key must be rejected."""token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- service_account_id, api_key = create_service_account_with_key(- signoz, token, "sa-revoke-auth"- )+ service_account_id, api_key = create_service_account_with_key(signoz, token, "sa-revoke-auth")# verify the key works firstresponse = requests.get(@@ -271,9 +237,7 @@ def test_service_account_key_revoked_key_rejected(# find the key idkeys_resp = requests.get(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -281,9 +245,7 @@ def test_service_account_key_revoked_key_rejected(# revoke itrevoke_resp = requests.delete(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys/{key_id}"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/keys/{key_id}"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -296,9 +258,7 @@ def test_service_account_key_revoked_key_rejected(timeout=5,)- assert (- response.status_code == HTTPStatus.UNAUTHORIZED- ), f"Expected 401 for revoked key, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.UNAUTHORIZED, f"Expected 401 for revoked key, got {response.status_code}: {response.text}"def test_user_token_still_works_on_user_me(diff --git a/tests/integration/tests/serviceaccount/04_roles.py b/tests/integration/tests/serviceaccount/04_roles.pyindex 223e07564d..a5ba4e0d64 100644--- a/tests/integration/tests/serviceaccount/04_roles.py+++ b/tests/integration/tests/serviceaccount/04_roles.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -23,14 +23,10 @@ def test_get_service_account_roles():"""GET /{id}/roles returns the assigned roles list."""token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- service_account_id = create_service_account(- signoz, token, "sa-get-roles", role="signoz-viewer"- )+ service_account_id = create_service_account(signoz, token, "sa-get-roles", role="signoz-viewer")response = requests.get(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -52,16 +48,12 @@ def test_assign_role_to_service_account(token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)# create service account with viewer role- service_account_id = create_service_account(- signoz, token, "sa-assign-role", role="signoz-viewer"- )+ service_account_id = create_service_account(signoz, token, "sa-assign-role", role="signoz-viewer")# assign editor role (replaces viewer)editor_role_id = find_role_by_name(signoz, token, "signoz-editor")assign_resp = requests.post(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"),json={"id": editor_role_id},headers={"Authorization": f"Bearer {token}"},timeout=5,@@ -70,9 +62,7 @@ def test_assign_role_to_service_account(# verify only editor role is present (viewer was replaced)roles_resp = requests.get(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -90,17 +80,13 @@ def test_assign_role_idempotent():"""POST same role twice succeeds (replace with same role is idempotent)."""token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- service_account_id = create_service_account(- signoz, token, "sa-role-idempotent", role="signoz-viewer"- )+ service_account_id = create_service_account(signoz, token, "sa-role-idempotent", role="signoz-viewer")viewer_role_id = find_role_by_name(signoz, token, "signoz-viewer")# assign the same role againresp = requests.post(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"),json={"id": viewer_role_id},headers={"Authorization": f"Bearer {token}"},timeout=5,@@ -109,9 +95,7 @@ def test_assign_role_idempotent(# verify only one instance of the roleroles_resp = requests.get(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -128,9 +112,7 @@ def test_assign_role_replaces_access(token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)# create SA with viewer role and an API key- service_account_id, api_key = create_service_account_with_key(- signoz, token, "sa-role-replace-access", role="signoz-viewer"- )+ service_account_id, api_key = create_service_account_with_key(signoz, token, "sa-role-replace-access", role="signoz-viewer")# viewer should get 403 on admin-only endpointresp = requests.get(@@ -138,16 +120,12 @@ def test_assign_role_replaces_access(headers={"SIGNOZ-API-KEY": api_key},timeout=5,)- assert (- resp.status_code == HTTPStatus.FORBIDDEN- ), f"Expected 403 for viewer on admin endpoint, got {resp.status_code}: {resp.text}"+ assert resp.status_code == HTTPStatus.FORBIDDEN, f"Expected 403 for viewer on admin endpoint, got {resp.status_code}: {resp.text}"# assign admin role (replaces viewer)admin_role_id = find_role_by_name(signoz, token, "signoz-admin")assign_resp = requests.post(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"),json={"id": admin_role_id},headers={"Authorization": f"Bearer {token}"},timeout=5,@@ -160,15 +138,11 @@ def test_assign_role_replaces_access(headers={"SIGNOZ-API-KEY": api_key},timeout=5,)- assert (- resp.status_code == HTTPStatus.OK- ), f"Expected 200 for admin on admin endpoint, got {resp.status_code}: {resp.text}"+ assert resp.status_code == HTTPStatus.OK, f"Expected 200 for admin on admin endpoint, got {resp.status_code}: {resp.text}"# verify only admin role is presentroles_resp = requests.get(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -186,17 +160,13 @@ def test_remove_role_from_service_account():"""DELETE /{id}/roles/{rid} revokes a role."""token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- service_account_id = create_service_account(- signoz, token, "sa-remove-role", role="signoz-editor"- )+ service_account_id = create_service_account(signoz, token, "sa-remove-role", role="signoz-editor")editor_role_id = find_role_by_name(signoz, token, "signoz-editor")# remove the roleresp = requests.delete(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles/{editor_role_id}"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles/{editor_role_id}"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -204,9 +174,7 @@ def test_remove_role_from_service_account(# verify role is goneroles_resp = requests.get(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -222,9 +190,7 @@ def test_remove_role_verify_access_lost():"""After role removal, service account key gets 403 on endpoints requiring that role."""token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- service_account_id, api_key = create_service_account_with_key(- signoz, token, "sa-role-access-lost", role="signoz-admin"- )+ service_account_id, api_key = create_service_account_with_key(signoz, token, "sa-role-access-lost", role="signoz-admin")# verify admin access worksresp = requests.get(@@ -237,9 +203,7 @@ def test_remove_role_verify_access_lost(# remove admin roleadmin_role_id = find_role_by_name(signoz, token, "signoz-admin")del_resp = requests.delete(- signoz.self.host_configs["8080"].get(- f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles/{admin_role_id}"- ),+ signoz.self.host_configs["8080"].get(f"{SERVICE_ACCOUNT_BASE}/{service_account_id}/roles/{admin_role_id}"),headers={"Authorization": f"Bearer {token}"},timeout=5,)@@ -251,6 +215,4 @@ def test_remove_role_verify_access_lost(headers={"SIGNOZ-API-KEY": api_key},timeout=5,)- assert (- resp.status_code == HTTPStatus.FORBIDDEN- ), f"Expected 403 after role removal, got {resp.status_code}: {resp.text}"+ assert resp.status_code == HTTPStatus.FORBIDDEN, f"Expected 403 after role removal, got {resp.status_code}: {resp.text}"diff --git a/tests/integration/tests/serviceaccount/05_me.py b/tests/integration/tests/serviceaccount/05_me.pyindex 05d02e7477..db69832108 100644--- a/tests/integration/tests/serviceaccount/05_me.py+++ b/tests/integration/tests/serviceaccount/05_me.py@@ -1,5 +1,5 @@+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport requests@@ -23,9 +23,7 @@ def test_get_my_service_account():"""Service account with API key calls GET /me, gets own details."""token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- service_account_id, api_key = create_service_account_with_key(- signoz, token, "sa-me-get"- )+ service_account_id, api_key = create_service_account_with_key(signoz, token, "sa-me-get")response = requests.get(signoz.self.host_configs["8080"].get(ME_ENDPOINT),@@ -54,9 +52,7 @@ def test_get_me_requires_sa_identity()# user JWT has no service account ID in claims, should fail- assert (- response.status_code == HTTPStatus.NOT_FOUND- ), f"Expected error for user JWT on service account /me, got {response.status_code}: {response.text}"+ assert response.status_code == HTTPStatus.NOT_FOUND, f"Expected error for user JWT on service account /me, got {response.status_code}: {response.text}"def test_update_my_service_account(@@ -66,9 +62,7 @@ def test_update_my_service_account():"""Service account calls PUT /me with new name, verify update."""token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- service_account_id, api_key = create_service_account_with_key(- signoz, token, "sa-me-update"- )+ service_account_id, api_key = create_service_account_with_key(signoz, token, "sa-me-update")response = requests.put(signoz.self.host_configs["8080"].get(ME_ENDPOINT),diff --git a/tests/integration/tests/ttl/01_ttl.py b/tests/integration/tests/ttl/01_ttl.pyindex 2128b4190c..ef5c69fc45 100644--- a/tests/integration/tests/ttl/01_ttl.py+++ b/tests/integration/tests/ttl/01_ttl.py@@ -7,8 +7,8 @@ invalid configurations, and retrieval of TTL settings."""import time+from collections.abc import Callablefrom http import HTTPStatus-from typing import Callableimport pytestimport requests@@ -45,34 +45,20 @@ def verify_table_partition_expressions(# This verifies that data was inserted into a partition with the correct TTLretention, retention_cold, count = expected_partition_expressions_map[table]- retention_query = (- f"SELECT COUNT(*) FROM {table} "- f"WHERE _retention_days = {retention} AND _retention_days_cold = {retention_cold}"- )+ retention_query = f"SELECT COUNT(*) FROM {table} WHERE _retention_days = {retention} AND _retention_days_cold = {retention_cold}"retention_result = signoz.telemetrystore.conn.query(retention_query).result_rows- assert retention_result[0][0] == count, (- f"No data found with retention values '{retention}, {retention_cold}' in table {table}. "- f"Expected at least one row with these retention settings."- )+ assert retention_result[0][0] == count, f"No data found with retention values '{retention}, {retention_cold}' in table {table}. Expected at least one row with these retention settings."- partition_query = (- "SELECT rows FROM system.parts "- f"WHERE `table` = '{table.split('.')[-1]}' AND active = 1 AND partition LIKE '%{retention},{retention_cold}%' "- "ORDER BY partition ASC"- )+ partition_query = f"SELECT rows FROM system.parts WHERE `table` = '{table.split('.')[-1]}' AND active = 1 AND partition LIKE '%{retention},{retention_cold}%' ORDER BY partition ASC"partition_result = signoz.telemetrystore.conn.query(partition_query).result_rows- assert (- len(partition_result) >= 1- ), f"No active partitions found for table {table}"+ assert len(partition_result) >= 1, f"No active partitions found for table {table}"assert partition_result[0][0] >= count-def verify_table_retention_expression(- signoz: types.SigNoz, table_expected_retention_expression_map: dict[str, str]-):+def verify_table_retention_expression(signoz: types.SigNoz, table_expected_retention_expression_map: dict[str, str]):"""Verify table partitions exist with data and have correct retention values.@@ -92,10 +78,7 @@ def verify_table_retention_expression(assert all(" SETTINGS" in r[0] for r in result)ttl_part = result[0][0].split("TTL ")[1].split(" SETTINGS")[0]- assert table_expected_retention_expression_map[table] in ttl_part, (- f"Expected retention expression {table_expected_retention_expression_map[table]} "- f"not found in table {table} TTL part {ttl_part}"- )+ assert table_expected_retention_expression_map[table] in ttl_part, f"Expected retention expression {table_expected_retention_expression_map[table]} not found in table {table} TTL part {ttl_part}"@pytest.fixture(name="ttl_test_suite_setup", scope="package", autouse=True)@@ -120,9 +103,7 @@ def test_set_ttl_traces_success("duration": f"{test_duration_hours}h", # Don't choose a round number to avoid matching any residual test data}- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}response = requests.post(signoz.self.host_configs["8080"].get("/api/v1/settings/ttl"),@@ -142,13 +123,13 @@ def test_set_ttl_traces_success(verify_table_retention_expression(signoz,{- "signoz_index_v3": f"toIntervalSecond({test_duration_hours*3600})", # 3601 hours in seconds- "traces_v3_resource": f"toIntervalSecond({test_duration_hours*3600})", # 3601 hours in seconds- "signoz_error_index_v2": f"toIntervalSecond({test_duration_hours*3600})", # 3601 hours in seconds- "usage_explorer": f"toIntervalSecond({test_duration_hours*3600})", # 3601 hours in seconds- "dependency_graph_minutes_v2": f"toIntervalSecond({test_duration_hours*3600})", # 3601 hours in seconds- "trace_summary": f"toIntervalSecond({test_duration_hours*3600})", # 3601 hours in seconds- "span_attributes_keys": f"toIntervalSecond({test_duration_hours*3600})", # 3601 hours in seconds+ "signoz_index_v3": f"toIntervalSecond({test_duration_hours * 3600})", # 3601 hours in seconds+ "traces_v3_resource": f"toIntervalSecond({test_duration_hours * 3600})", # 3601 hours in seconds+ "signoz_error_index_v2": f"toIntervalSecond({test_duration_hours * 3600})", # 3601 hours in seconds+ "usage_explorer": f"toIntervalSecond({test_duration_hours * 3600})", # 3601 hours in seconds+ "dependency_graph_minutes_v2": f"toIntervalSecond({test_duration_hours * 3600})", # 3601 hours in seconds+ "trace_summary": f"toIntervalSecond({test_duration_hours * 3600})", # 3601 hours in seconds+ "span_attributes_keys": f"toIntervalSecond({test_duration_hours * 3600})", # 3601 hours in seconds},)@@ -170,9 +151,7 @@ def test_set_ttl_traces_with_cold_storage("toColdDuration": f"{test_cold_duration_hours}h", # 32 days in hours}- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}response = requests.post(signoz.self.host_configs["8080"].get("/api/v1/settings/ttl"),@@ -191,25 +170,25 @@ def test_set_ttl_traces_with_cold_storage(verify_table_retention_expression(signoz,{- "signoz_index_v3": f"toIntervalSecond({test_duration_hours*3600})", # 91 days in seconds- "traces_v3_resource": f"toIntervalSecond({test_duration_hours*3600})", # 91 days in seconds- "signoz_error_index_v2": f"toIntervalSecond({test_duration_hours*3600})", # 91 days in seconds- "usage_explorer": f"toIntervalSecond({test_duration_hours*3600})", # 91 days in seconds- "dependency_graph_minutes_v2": f"toIntervalSecond({test_duration_hours*3600})", # 91 days in seconds- "trace_summary": f"toIntervalSecond({test_duration_hours*3600})", # 91 days in seconds- "span_attributes_keys": f"toIntervalSecond({test_duration_hours*3600})", # 91 days in seconds+ "signoz_index_v3": f"toIntervalSecond({test_duration_hours * 3600})", # 91 days in seconds+ "traces_v3_resource": f"toIntervalSecond({test_duration_hours * 3600})", # 91 days in seconds+ "signoz_error_index_v2": f"toIntervalSecond({test_duration_hours * 3600})", # 91 days in seconds+ "usage_explorer": f"toIntervalSecond({test_duration_hours * 3600})", # 91 days in seconds+ "dependency_graph_minutes_v2": f"toIntervalSecond({test_duration_hours * 3600})", # 91 days in seconds+ "trace_summary": f"toIntervalSecond({test_duration_hours * 3600})", # 91 days in seconds+ "span_attributes_keys": f"toIntervalSecond({test_duration_hours * 3600})", # 91 days in seconds},)verify_table_retention_expression(signoz,{- "signoz_index_v3": f"toIntervalSecond({test_cold_duration_hours*3600}) TO VOLUME 'cold'",- "traces_v3_resource": f"toIntervalSecond({test_cold_duration_hours*3600}) TO VOLUME 'cold'",- "signoz_error_index_v2": f"toIntervalSecond({test_cold_duration_hours*3600}) TO VOLUME 'cold'",- "usage_explorer": f"toIntervalSecond({test_cold_duration_hours*3600}) TO VOLUME 'cold'",- "dependency_graph_minutes_v2": f"toIntervalSecond({test_cold_duration_hours*3600}) TO VOLUME 'cold'",- "trace_summary": f"toIntervalSecond({test_cold_duration_hours*3600}) TO VOLUME 'cold'",+ "signoz_index_v3": f"toIntervalSecond({test_cold_duration_hours * 3600}) TO VOLUME 'cold'",+ "traces_v3_resource": f"toIntervalSecond({test_cold_duration_hours * 3600}) TO VOLUME 'cold'",+ "signoz_error_index_v2": f"toIntervalSecond({test_cold_duration_hours * 3600}) TO VOLUME 'cold'",+ "usage_explorer": f"toIntervalSecond({test_cold_duration_hours * 3600}) TO VOLUME 'cold'",+ "dependency_graph_minutes_v2": f"toIntervalSecond({test_cold_duration_hours * 3600}) TO VOLUME 'cold'",+ "trace_summary": f"toIntervalSecond({test_cold_duration_hours * 3600}) TO VOLUME 'cold'",# "span_attributes_keys": f"toIntervalSecond({test_cold_duration_hours*3600}) TO VOLUME",# Span attributes keys table does not have cold storage configured},@@ -232,9 +211,7 @@ def test_set_ttl_metrics_success("toColdDuration": 0,}- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}response = requests.post(signoz.self.host_configs["8080"].get("/api/v1/settings/ttl"),@@ -284,9 +261,7 @@ def test_set_ttl_metrics_with_cold_storage("toColdDuration": f"{test_cold_duration_hours}h", # 21 days in hours}- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}response = requests.post(signoz.self.host_configs["8080"].get("/api/v1/settings/ttl"),@@ -338,20 +313,16 @@ def test_set_ttl_metrics_with_cold_storage()-def test_set_ttl_invalid_type(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-):+def test_set_ttl_invalid_type(signoz: types.SigNoz, get_token: Callable[[str, str], str]):"""Test setting TTL with invalid type returns error."""payload = {"type": "invalid_type",- "duration": f"{90*24}h",+ "duration": f"{90 * 24}h","coldStorage": "","toColdDuration": 0,}- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}response = requests.post(signoz.self.host_configs["8080"].get("/api/v1/settings/ttl"),@@ -381,9 +352,7 @@ def test_set_custom_retention_ttl_basic("coldStorageDurationDays": 0,}- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}response = requests.post(signoz.self.host_configs["8080"].get("/api/v2/settings/ttl"),@@ -443,9 +412,7 @@ def test_set_custom_retention_ttl_basic_with_cold_storage("coldStorageDurationDays": test_retention_days_cold,}- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}response = requests.post(signoz.self.host_configs["8080"].get("/api/v2/settings/ttl"),@@ -511,9 +478,7 @@ def test_set_custom_retention_ttl_basic_fallback("coldStorageDurationDays": test_retention_days_cold,}- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}response = requests.post(signoz.self.host_configs["8080"].get("/api/v2/settings/ttl"),@@ -575,9 +540,7 @@ def test_set_custom_retention_ttl_basic_101_times("coldStorageDurationDays": 0,}- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}response = requests.post(signoz.self.host_configs["8080"].get("/api/v2/settings/ttl"),@@ -617,9 +580,7 @@ def test_set_custom_retention_ttl_with_conditions("defaultTTLDays": test_retention_days,"ttlConditions": [{- "conditions": [- {"key": "service_name", "values": ["frontend", "backend"]}- ],+ "conditions": [{"key": "service_name", "values": ["frontend", "backend"]}],"ttlDays": test_retention_days_condition,}],@@ -627,9 +588,7 @@ def test_set_custom_retention_ttl_with_conditions("coldStorageDurationDays": test_retention_days_cold,}- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}response = requests.post(signoz.self.host_configs["8080"].get("/api/v2/settings/ttl"),@@ -738,9 +697,7 @@ def test_set_custom_retention_ttl_with_invalid_cold_storage(]insert_logs(logs)- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}response = requests.post(signoz.self.host_configs["8080"].get("/api/v2/settings/ttl"),@@ -756,9 +713,7 @@ def test_set_custom_retention_ttl_with_invalid_cold_storage(assert "No such volume `logs_cold_storage`" in response_data["error"]["message"]-def test_set_custom_retention_ttl_duplicate_conditions(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-):+def test_set_custom_retention_ttl_duplicate_conditions(signoz: types.SigNoz, get_token: Callable[[str, str], str]):"""Test that duplicate TTL conditions are rejected."""payload = {"type": "logs",@@ -782,9 +737,7 @@ def test_set_custom_retention_ttl_duplicate_conditions("coldStorageDurationDays": 0,}- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}response = requests.post(signoz.self.host_configs["8080"].get("/api/v2/settings/ttl"),@@ -797,9 +750,7 @@ def test_set_custom_retention_ttl_duplicate_conditions(assert response.status_code == HTTPStatus.BAD_REQUEST-def test_set_custom_retention_ttl_invalid_condition(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-):+def test_set_custom_retention_ttl_invalid_condition(signoz: types.SigNoz, get_token: Callable[[str, str], str]):"""Test that conditions with empty values are rejected."""payload = {"type": "logs",@@ -819,9 +770,7 @@ def test_set_custom_retention_ttl_invalid_condition("coldStorageDurationDays": 0,}- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}response = requests.post(signoz.self.host_configs["8080"].get("/api/v2/settings/ttl"),@@ -834,9 +783,7 @@ def test_set_custom_retention_ttl_invalid_condition(assert response.status_code == HTTPStatus.BAD_REQUEST-def test_get_custom_retention_ttl(- signoz: types.SigNoz, get_token: Callable[[str, str], str], insert_logs-):+def test_get_custom_retention_ttl(signoz: types.SigNoz, get_token: Callable[[str, str], str], insert_logs):"""Test getting custom retention TTL configuration."""# First set a custom retention TTLset_payload = {@@ -858,9 +805,7 @@ def test_get_custom_retention_ttl(]insert_logs(logs)- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}set_response = requests.post(signoz.self.host_configs["8080"].get("/api/v2/settings/ttl"),json=set_payload,@@ -873,9 +818,7 @@ def test_get_custom_retention_ttl(time.sleep(2)# Now get the TTL configuration- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}get_response = requests.get(signoz.self.host_configs["8080"].get("/api/v2/settings/ttl"),@@ -892,9 +835,7 @@ def test_get_custom_retention_ttl(assert response_data["cold_storage_ttl_days"] == -1assert response_data["ttl_conditions"][0]["ttlDays"] == 90assert response_data["ttl_conditions"][0]["conditions"][0]["key"] == "service_name"- assert response_data["ttl_conditions"][0]["conditions"][0]["values"] == [- "test-service"- ]+ assert response_data["ttl_conditions"][0]["conditions"][0]["values"] == ["test-service"]def test_set_ttl_logs_success(@@ -911,9 +852,7 @@ def test_set_ttl_logs_success("duration": f"{test_retention_days * 24}h",}- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}response = requests.post(signoz.self.host_configs["8080"].get("/api/v1/settings/ttl"),@@ -941,9 +880,7 @@ def test_set_ttl_logs_success()-def test_get_ttl_traces_success(- signoz: types.SigNoz, get_token: Callable[[str, str], str]-):+def test_get_ttl_traces_success(signoz: types.SigNoz, get_token: Callable[[str, str], str]):"""Test getting TTL for traces."""# First set a TTL configuration for traces@@ -953,9 +890,7 @@ def test_get_ttl_traces_success("duration": f"{test_retention_days * 24}h", # 33 days in hours}- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}set_response = requests.post(signoz.self.host_configs["8080"].get("/api/v1/settings/ttl"),@@ -984,12 +919,8 @@ def test_get_ttl_traces_success(assert response_data["status"] == "success"assert "traces_ttl_duration_hrs" in response_dataassert "traces_move_ttl_duration_hrs" in response_data- assert (- response_data["traces_ttl_duration_hrs"] == test_retention_days * 24- ) # Note: response is in hours as integer- assert (- response_data["traces_move_ttl_duration_hrs"] == -1- ) # -1 indicates no cold storage configured+ assert response_data["traces_ttl_duration_hrs"] == test_retention_days * 24 # Note: response is in hours as integer+ assert response_data["traces_move_ttl_duration_hrs"] == -1 # -1 indicates no cold storage configureddef test_large_ttl_conditions_list(@@ -1009,10 +940,7 @@ def test_large_ttl_conditions_list(})- logs = [- Logs(resources={"service_name": f"service-{i}"}, severity_text="ERROR")- for i in range(10)- ]+ logs = [Logs(resources={"service_name": f"service-{i}"}, severity_text="ERROR") for i in range(10)]insert_logs(logs)payload = {@@ -1023,9 +951,7 @@ def test_large_ttl_conditions_list("coldStorageDurationDays": 0,}- headers = {- "Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"- }+ headers = {"Authorization": f"Bearer {get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)}"}response = requests.post(signoz.self.host_configs["8080"].get("/api/v2/settings/ttl"),diff --git a/tests/pyproject.toml b/tests/pyproject.tomlindex fe79b11742..bd98c6f496 100644--- a/tests/pyproject.toml+++ b/tests/pyproject.toml@@ -23,10 +23,7 @@ dependencies = [[dependency-groups]dev = [- "pylint>=3.3.6",- "isort>=6.0.1",- "autoflake>=2.3.1",- "black>=25.1.0",+ "ruff>=0.8.0",][tool.pytest.ini_options]@@ -43,35 +40,38 @@ log_cli = truelog_format = "%(asctime)s [%(levelname)s] (%(filename)s:%(lineno)s) %(message)s"log_date_format = "%Y-%m-%d %H:%M:%S"-[tool.pylint.main]-ignore = [".venv", "node_modules"]-# `py` (the legacy pytest path lib) uses dynamic attributes that pylint's-# static analyzer can't resolve. Whitelist it so `py.path.local` stops-# firing no-member.-extension-pkg-whitelist = ["py"]-ignored-modules = ["py"]+[tool.ruff]+# ruff caps line-length at 320 (prior pylint setting was 400, but both are+# far above any line that organically shows up in this tree).+line-length = 320+extend-exclude = [".venv", "node_modules"]-[tool.pylint.format]-max-line-length = "400"--[tool.pylint.basic]-# test ordering (example; 01_abc.py)-module-rgx = "(([0-9]+_)?[a-z_][a-z0-9_]*)|(__.*__)$"--# to avoid overly restrictive pylint naming for attributes-attr-rgx = "([A-Z_][A-Z0-9_]*|[a-z_][a-z0-9_]*|(__.*__))$"-class-attribute-rgx = "([A-Z_][A-Z0-9_]*|[a-z_][a-z0-9_]*|(__.*__))$"-class-const-rgx = "[A-Z_][A-Z0-9_]*$"--[tool.pylint."messages control"]-disable = ["missing-module-docstring", "missing-function-docstring", "missing-class-docstring", "duplicate-code", "dangerous-default-value", "too-many-positional-arguments", "too-many-arguments", "too-few-public-methods", "too-many-instance-attributes", "too-many-locals", "too-many-statements", "too-many-lines"]--[tool.isort]-profile = "black"+[tool.ruff.lint]+# E/W = pycodestyle, F = pyflakes, I = isort, UP = pyupgrade, B = bugbear,+# PL = pylint-compat. Mirrors the intent of the prior pylint + isort ++# autoflake stack.+select = ["E", "F", "W", "I", "UP", "B", "PL"]+ignore = [+ # pylint: too-many-* — preserved from prior pylint config+ "PLR0911", # too-many-return-statements+ "PLR0912", # too-many-branches+ "PLR0913", # too-many-arguments+ "PLR0915", # too-many-statements+ # magic-value-comparison — noisy in assertion-heavy test code+ "PLR2004",+ # ruff flags mutable-argument-default (B006) where pylint ignored+ # dangerous-default-value; preserve that behaviour.+ "B006",+ # Rules not previously enforced under pylint. Keep muted so this+ # migration stays a pure tool swap; enable selectively in follow-ups.+ "B011", # assert False+ "B024", # abstract-class-without-abstract-method+ "B905", # zip() without strict=+ "E741", # ambiguous variable name+ "UP047", # non-pep695-generic-function+ "PLC0206", # dict-index-missing-items+ "PLW2901", # for-loop-var-overwritten+]-[tool.autoflake]-recursive = true-remove-all-unused-imports = true-remove-unused-variables = true-exclude = [".venv/**"]-in-place = true+[tool.ruff.format]+# Defaults align with black (double quotes, 4-space indent).diff --git a/tests/seeder/server.py b/tests/seeder/server.pyindex 207ea64921..560647bdb8 100644--- a/tests/seeder/server.py+++ b/tests/seeder/server.py@@ -2,8 +2,9 @@can POST per-test telemetry (tagged `seeder=true`) and DELETE to clear."""import os+from collections.abc import AsyncIteratorfrom contextlib import asynccontextmanager-from typing import Any, AsyncIterator, Dict, List+from typing import Anyimport clickhouse_connectfrom fastapi import FastAPI, HTTPException, Response, status@@ -38,9 +39,7 @@ SEEDER_MARKER = {"seeder": "true"}@asynccontextmanagerasync def lifespan(_: FastAPI) -> AsyncIterator[None]:- conn = clickhouse_connect.get_client(- host=CH_HOST, port=CH_PORT, username=CH_USER, password=CH_PASSWORD- )+ conn = clickhouse_connect.get_client(host=CH_HOST, port=CH_PORT, username=CH_USER, password=CH_PASSWORD)app.state.ch = conntry:yield@@ -56,11 +55,11 @@ app = FastAPI(title="seeder", version="dev", lifespan=lifespan)@app.get("/healthz")-def healthz() -> Dict[str, str]:+def healthz() -> dict[str, str]:return {"status": "ok"}-def _tag(item: Dict[str, Any]) -> Dict[str, Any]:+def _tag(item: dict[str, Any]) -> dict[str, Any]:resources = {**(item.get("resources") or {}), **SEEDER_MARKER}return {**item, "resources": resources}@@ -68,22 +67,20 @@ def _tag(item: Dict[str, Any]) -> Dict[str, Any]:# Metrics payload carries label dicts at the top level, not a `resources`# key — tagging goes on the `resource_attrs` wrapper that Metrics.from_dict# unpacks. Same effect, different key.-def _tag_metrics(item: Dict[str, Any]) -> Dict[str, Any]:+def _tag_metrics(item: dict[str, Any]) -> dict[str, Any]:resource_attrs = {**(item.get("resource_attrs") or {}), **SEEDER_MARKER}return {**item, "resource_attrs": resource_attrs}@app.post("/telemetry/traces", status_code=status.HTTP_201_CREATED)-def post_traces(payload: List[Dict[str, Any]]) -> Dict[str, Any]:+def post_traces(payload: list[dict[str, Any]]) -> dict[str, Any]:try:traces = [Traces.from_dict(_tag(item)) for item in payload]insert_traces_to_clickhouse(get_conn(), traces)logger.info("inserted %d traces", len(traces))return {"inserted": len(traces)}except KeyError as e:- raise HTTPException(- status_code=400, detail=f"missing required field: {e}"- ) from e+ raise HTTPException(status_code=400, detail=f"missing required field: {e}") from eexcept Exception as e:logger.exception("insert failed")raise HTTPException(status_code=500, detail=str(e)) from e@@ -101,16 +98,14 @@ def delete_traces() -> Response:@app.post("/telemetry/logs", status_code=status.HTTP_201_CREATED)-def post_logs(payload: List[Dict[str, Any]]) -> Dict[str, Any]:+def post_logs(payload: list[dict[str, Any]]) -> dict[str, Any]:try:logs = [Logs.from_dict(_tag(item)) for item in payload]insert_logs_to_clickhouse(get_conn(), logs)logger.info("inserted %d logs", len(logs))return {"inserted": len(logs)}except KeyError as e:- raise HTTPException(- status_code=400, detail=f"missing required field: {e}"- ) from e+ raise HTTPException(status_code=400, detail=f"missing required field: {e}") from eexcept Exception as e:logger.exception("insert failed")raise HTTPException(status_code=500, detail=str(e)) from e@@ -128,16 +123,14 @@ def delete_logs() -> Response:@app.post("/telemetry/metrics", status_code=status.HTTP_201_CREATED)-def post_metrics(payload: List[Dict[str, Any]]) -> Dict[str, Any]:+def post_metrics(payload: list[dict[str, Any]]) -> dict[str, Any]:try:metrics = [Metrics.from_dict(_tag_metrics(item)) for item in payload]insert_metrics_to_clickhouse(get_conn(), metrics)logger.info("inserted %d metrics", len(metrics))return {"inserted": len(metrics)}except KeyError as e:- raise HTTPException(- status_code=400, detail=f"missing required field: {e}"- ) from e+ raise HTTPException(status_code=400, detail=f"missing required field: {e}") from eexcept Exception as e:logger.exception("insert failed")raise HTTPException(status_code=500, detail=str(e)) from ediff --git a/tests/uv.lock b/tests/uv.lockindex 588938c54e..7104664390 100644--- a/tests/uv.lock+++ b/tests/uv.lock@@ -45,15 +45,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/38/0e/27be9fdef66e72d64c0cdc3cc2823101b80585f8119b5c112c2e8f5f7dab/anyio-4.12.1-py3-none-any.whl", hash = "sha256:d405828884fc140aa80a3c667b8beed277f1dfedec42ba031bd6ac3db606ab6c", size = 113592, upload-time = "2026-01-06T11:45:19.497Z" },]-[[package]]-name = "astroid"-version = "4.0.3"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/a1/ca/c17d0f83016532a1ad87d1de96837164c99d47a3b6bbba28bd597c25b37a/astroid-4.0.3.tar.gz", hash = "sha256:08d1de40d251cc3dc4a7a12726721d475ac189e4e583d596ece7422bc176bda3", size = 406224, upload-time = "2026-01-03T22:14:26.096Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/ce/66/686ac4fc6ef48f5bacde625adac698f41d5316a9753c2b20bb0931c9d4e2/astroid-4.0.3-py3-none-any.whl", hash = "sha256:864a0a34af1bd70e1049ba1e61cee843a7252c826d97825fcee9b2fcbd9e1b14", size = 276443, upload-time = "2026-01-03T22:14:24.412Z" },-]-[[package]]name = "async-generator"version = "1.10"@@ -81,45 +72,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/3a/2a/7cc015f5b9f5db42b7d48157e23356022889fc354a2813c15934b7cb5c0e/attrs-25.4.0-py3-none-any.whl", hash = "sha256:adcf7e2a1fb3b36ac48d97835bb6d8ade15b8dcce26aba8bf1d14847b57a3373", size = 67615, upload-time = "2025-10-06T13:54:43.17Z" },]-[[package]]-name = "autoflake"-version = "2.3.1"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "pyflakes" },-]-sdist = { url = "https://files.pythonhosted.org/packages/2a/cb/486f912d6171bc5748c311a2984a301f4e2d054833a1da78485866c71522/autoflake-2.3.1.tar.gz", hash = "sha256:c98b75dc5b0a86459c4f01a1d32ac7eb4338ec4317a4469515ff1e687ecd909e", size = 27642, upload-time = "2024-03-13T03:41:28.977Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/a2/ee/3fd29bf416eb4f1c5579cf12bf393ae954099258abd7bde03c4f9716ef6b/autoflake-2.3.1-py3-none-any.whl", hash = "sha256:3ae7495db9084b7b32818b4140e6dc4fc280b712fb414f5b8fe57b0a8e85a840", size = 32483, upload-time = "2024-03-13T03:41:26.969Z" },-]--[[package]]-name = "black"-version = "25.12.0"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "click" },- { name = "mypy-extensions" },- { name = "packaging" },- { name = "pathspec" },- { name = "platformdirs" },- { name = "pytokens" },-]-sdist = { url = "https://files.pythonhosted.org/packages/c4/d9/07b458a3f1c525ac392b5edc6b191ff140b596f9d77092429417a54e249d/black-25.12.0.tar.gz", hash = "sha256:8d3dd9cea14bff7ddc0eb243c811cdb1a011ebb4800a5f0335a01a68654796a7", size = 659264, upload-time = "2025-12-08T01:40:52.501Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/c8/52/c551e36bc95495d2aa1a37d50566267aa47608c81a53f91daa809e03293f/black-25.12.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a05ddeb656534c3e27a05a29196c962877c83fa5503db89e68857d1161ad08a5", size = 1923809, upload-time = "2025-12-08T01:46:55.126Z" },- { url = "https://files.pythonhosted.org/packages/a0/f7/aac9b014140ee56d247e707af8db0aae2e9efc28d4a8aba92d0abd7ae9d1/black-25.12.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:9ec77439ef3e34896995503865a85732c94396edcc739f302c5673a2315e1e7f", size = 1742384, upload-time = "2025-12-08T01:49:37.022Z" },- { url = "https://files.pythonhosted.org/packages/74/98/38aaa018b2ab06a863974c12b14a6266badc192b20603a81b738c47e902e/black-25.12.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0e509c858adf63aa61d908061b52e580c40eae0dfa72415fa47ac01b12e29baf", size = 1798761, upload-time = "2025-12-08T01:46:05.386Z" },- { url = "https://files.pythonhosted.org/packages/16/3a/a8ac542125f61574a3f015b521ca83b47321ed19bb63fe6d7560f348bfe1/black-25.12.0-cp313-cp313-win_amd64.whl", hash = "sha256:252678f07f5bac4ff0d0e9b261fbb029fa530cfa206d0a636a34ab445ef8ca9d", size = 1429180, upload-time = "2025-12-08T01:45:34.903Z" },- { url = "https://files.pythonhosted.org/packages/e6/2d/bdc466a3db9145e946762d52cd55b1385509d9f9004fec1c97bdc8debbfb/black-25.12.0-cp313-cp313-win_arm64.whl", hash = "sha256:bc5b1c09fe3c931ddd20ee548511c64ebf964ada7e6f0763d443947fd1c603ce", size = 1239350, upload-time = "2025-12-08T01:46:09.458Z" },- { url = "https://files.pythonhosted.org/packages/35/46/1d8f2542210c502e2ae1060b2e09e47af6a5e5963cb78e22ec1a11170b28/black-25.12.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:0a0953b134f9335c2434864a643c842c44fba562155c738a2a37a4d61f00cad5", size = 1917015, upload-time = "2025-12-08T01:53:27.987Z" },- { url = "https://files.pythonhosted.org/packages/41/37/68accadf977672beb8e2c64e080f568c74159c1aaa6414b4cd2aef2d7906/black-25.12.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:2355bbb6c3b76062870942d8cc450d4f8ac71f9c93c40122762c8784df49543f", size = 1741830, upload-time = "2025-12-08T01:54:36.861Z" },- { url = "https://files.pythonhosted.org/packages/ac/76/03608a9d8f0faad47a3af3a3c8c53af3367f6c0dd2d23a84710456c7ac56/black-25.12.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9678bd991cc793e81d19aeeae57966ee02909877cb65838ccffef24c3ebac08f", size = 1791450, upload-time = "2025-12-08T01:44:52.581Z" },- { url = "https://files.pythonhosted.org/packages/06/99/b2a4bd7dfaea7964974f947e1c76d6886d65fe5d24f687df2d85406b2609/black-25.12.0-cp314-cp314-win_amd64.whl", hash = "sha256:97596189949a8aad13ad12fcbb4ae89330039b96ad6742e6f6b45e75ad5cfd83", size = 1452042, upload-time = "2025-12-08T01:46:13.188Z" },- { url = "https://files.pythonhosted.org/packages/b2/7c/d9825de75ae5dd7795d007681b752275ea85a1c5d83269b4b9c754c2aaab/black-25.12.0-cp314-cp314-win_arm64.whl", hash = "sha256:778285d9ea197f34704e3791ea9404cd6d07595745907dd2ce3da7a13627b29b", size = 1267446, upload-time = "2025-12-08T01:46:14.497Z" },- { url = "https://files.pythonhosted.org/packages/68/11/21331aed19145a952ad28fca2756a1433ee9308079bd03bd898e903a2e53/black-25.12.0-py3-none-any.whl", hash = "sha256:48ceb36c16dbc84062740049eef990bb2ce07598272e673c17d1a7720c71c828", size = 206191, upload-time = "2025-12-08T01:40:50.963Z" },-]-[[package]]name = "certifi"version = "2026.1.4"@@ -335,15 +287,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/02/c3/253a89ee03fc9b9682f1541728eb66db7db22148cd94f89ab22528cd1e1b/deprecation-2.1.0-py2.py3-none-any.whl", hash = "sha256:a10811591210e1fb0e768a8c25517cabeabcba6f0bf96564f8ff45189f90b14a", size = 11178, upload-time = "2020-04-20T14:23:36.581Z" },]-[[package]]-name = "dill"-version = "0.4.0"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/12/80/630b4b88364e9a8c8c5797f4602d0f76ef820909ee32f0bacb9f90654042/dill-0.4.0.tar.gz", hash = "sha256:0633f1d2df477324f53a895b02c901fb961bdbf65a17122586ea7019292cbcf0", size = 186976, upload-time = "2025-04-16T00:41:48.867Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/50/3d/9373ad9c56321fdab5b41197068e1d8c25883b3fea29dd361f9b55116869/dill-0.4.0-py3-none-any.whl", hash = "sha256:44f54bf6412c2c8464c14e8243eb163690a9800dbe2c367330883b19c7561049", size = 119668, upload-time = "2025-04-16T00:41:47.671Z" },-]-[[package]]name = "docker"version = "7.1.0"@@ -509,15 +452,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/15/aa/0aca39a37d3c7eb941ba736ede56d689e7be91cab5d9ca846bde3999eba6/isodate-0.7.2-py3-none-any.whl", hash = "sha256:28009937d8031054830160fce6d409ed342816b543597cece116d966c6d99e15", size = 22320, upload-time = "2024-10-08T23:04:09.501Z" },]-[[package]]-name = "isort"-version = "7.0.0"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/63/53/4f3c058e3bace40282876f9b553343376ee687f3c35a525dc79dbd450f88/isort-7.0.0.tar.gz", hash = "sha256:5513527951aadb3ac4292a41a16cbc50dd1642432f5e8c20057d414bdafb4187", size = 805049, upload-time = "2025-10-11T13:30:59.107Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/7f/ed/e3705d6d02b4f7aea715a353c8ce193efd0b5db13e204df895d38734c244/isort-7.0.0-py3-none-any.whl", hash = "sha256:1bcabac8bc3c36c7fb7b98a76c8abb18e0f841a3ba81decac7691008592499c1", size = 94672, upload-time = "2025-10-11T13:30:57.665Z" },-]-[[package]]name = "jwcrypto"version = "1.5.6"@@ -563,15 +497,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/ca/28/2635a8141c9a4f4bc23f5135a92bbcf48d928d8ca094088c962df1879d64/lz4-4.4.5-cp314-cp314-win_arm64.whl", hash = "sha256:d994b87abaa7a88ceb7a37c90f547b8284ff9da694e6afcfaa8568d739faf3f7", size = 93812, upload-time = "2025-11-03T13:02:26.133Z" },]-[[package]]-name = "mccabe"-version = "0.7.0"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/e7/ff/0ffefdcac38932a54d2b5eed4e0ba8a408f215002cd178ad1df0f2806ff8/mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325", size = 9658, upload-time = "2022-01-24T01:14:51.113Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/27/1a/1f68f9ba0c207934b35b86a8ca3aad8395a3d6dd7921c0686e23853ff5a9/mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e", size = 7350, upload-time = "2022-01-24T01:14:49.62Z" },-]-[[package]]name = "mypy-extensions"version = "1.1.0"@@ -652,24 +577,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/20/12/38679034af332785aac8774540895e234f4d07f7545804097de4b666afd8/packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484", size = 66469, upload-time = "2025-04-19T11:48:57.875Z" },]-[[package]]-name = "pathspec"-version = "1.0.3"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/4c/b2/bb8e495d5262bfec41ab5cb18f522f1012933347fb5d9e62452d446baca2/pathspec-1.0.3.tar.gz", hash = "sha256:bac5cf97ae2c2876e2d25ebb15078eb04d76e4b98921ee31c6f85ade8b59444d", size = 130841, upload-time = "2026-01-09T15:46:46.009Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/32/2b/121e912bd60eebd623f873fd090de0e84f322972ab25a7f9044c056804ed/pathspec-1.0.3-py3-none-any.whl", hash = "sha256:e80767021c1cc524aa3fb14bedda9c34406591343cc42797b386ce7b9354fb6c", size = 55021, upload-time = "2026-01-09T15:46:44.652Z" },-]--[[package]]-name = "platformdirs"-version = "4.5.1"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/cf/86/0248f086a84f01b37aaec0fa567b397df1a119f73c16f6c7a9aac73ea309/platformdirs-4.5.1.tar.gz", hash = "sha256:61d5cdcc6065745cdd94f0f878977f8de9437be93de97c1c12f853c9c0cdcbda", size = 21715, upload-time = "2025-12-05T13:52:58.638Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/cb/28/3bfe2fa5a7b9c46fe7e13c97bda14c895fb10fa2ebf1d0abb90e0cea7ee1/platformdirs-4.5.1-py3-none-any.whl", hash = "sha256:d03afa3963c806a9bed9d5125c8f4cb2fdaf74a55ab60e5d59b3fde758104d31", size = 18731, upload-time = "2025-12-05T13:52:56.823Z" },-]-[[package]]name = "pluggy"version = "1.6.0"@@ -778,15 +685,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/0b/db/d8182a7f1d9343a032265aae186eb063fe26ca4c40f256b21e8da4498e89/pydantic_core-2.46.3-cp314-cp314t-win_arm64.whl", hash = "sha256:77706aeb41df6a76568434701e0917da10692da28cb69d5fb6919ce5fdb07374", size = 2026310, upload-time = "2026-04-20T14:41:01.778Z" },]-[[package]]-name = "pyflakes"-version = "3.4.0"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/45/dc/fd034dc20b4b264b3d015808458391acbf9df40b1e54750ef175d39180b1/pyflakes-3.4.0.tar.gz", hash = "sha256:b24f96fafb7d2ab0ec5075b7350b3d2d2218eab42003821c06344973d3ea2f58", size = 64669, upload-time = "2025-06-20T18:45:27.834Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/c2/2f/81d580a0fb83baeb066698975cb14a618bdbed7720678566f1b046a95fe8/pyflakes-3.4.0-py2.py3-none-any.whl", hash = "sha256:f742a7dbd0d9cb9ea41e9a24a918996e8170c799fa528688d40dd582c8265f4f", size = 63551, upload-time = "2025-06-20T18:45:26.937Z" },-]-[[package]]name = "pygments"version = "2.19.2"@@ -796,24 +694,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217, upload-time = "2025-06-21T13:39:07.939Z" },]-[[package]]-name = "pylint"-version = "4.0.4"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "astroid" },- { name = "colorama", marker = "sys_platform == 'win32'" },- { name = "dill" },- { name = "isort" },- { name = "mccabe" },- { name = "platformdirs" },- { name = "tomlkit" },-]-sdist = { url = "https://files.pythonhosted.org/packages/5a/d2/b081da1a8930d00e3fc06352a1d449aaf815d4982319fab5d8cdb2e9ab35/pylint-4.0.4.tar.gz", hash = "sha256:d9b71674e19b1c36d79265b5887bf8e55278cbe236c9e95d22dc82cf044fdbd2", size = 1571735, upload-time = "2025-11-30T13:29:04.315Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/a6/92/d40f5d937517cc489ad848fc4414ecccc7592e4686b9071e09e64f5e378e/pylint-4.0.4-py3-none-any.whl", hash = "sha256:63e06a37d5922555ee2c20963eb42559918c20bd2b21244e4ef426e7c43b92e0", size = 536425, upload-time = "2025-11-30T13:29:02.53Z" },-]-[[package]]name = "pysocks"version = "1.7.1"@@ -872,15 +752,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/44/7e/f51774cb30db61f04dc0920f27b3a2c50ac05c8819dc4086436decf95010/python_keycloak-6.0.0-py3-none-any.whl", hash = "sha256:6f6697a0a894d6ded077aa86e12aa41433a0afffa27aa0b9e38395dd69a94009", size = 80167, upload-time = "2025-12-28T17:57:50.869Z" },]-[[package]]-name = "pytokens"-version = "0.3.0"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/4e/8d/a762be14dae1c3bf280202ba3172020b2b0b4c537f94427435f19c413b72/pytokens-0.3.0.tar.gz", hash = "sha256:2f932b14ed08de5fcf0b391ace2642f858f1394c0857202959000b68ed7a458a", size = 17644, upload-time = "2025-11-05T13:36:35.34Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/84/25/d9db8be44e205a124f6c98bc0324b2bb149b7431c53877fc6d1038dddaf5/pytokens-0.3.0-py3-none-any.whl", hash = "sha256:95b2b5eaf832e469d141a378872480ede3f251a5a5041b8ec6e581d3ac71bbf3", size = 12195, upload-time = "2025-11-05T13:36:33.183Z" },-]-[[package]]name = "pytz"version = "2025.2"@@ -966,6 +837,31 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/3f/51/d4db610ef29373b879047326cbf6fa98b6c1969d6f6dc423279de2b1be2c/requests_toolbelt-1.0.0-py2.py3-none-any.whl", hash = "sha256:cccfdd665f0a24fcf4726e690f65639d272bb0637b9b92dfd91a5568ccf6bd06", size = 54481, upload-time = "2023-05-01T04:11:28.427Z" },]+[[package]]+name = "ruff"+version = "0.15.11"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e4/8d/192f3d7103816158dfd5ea50d098ef2aec19194e6cbccd4b3485bdb2eb2d/ruff-0.15.11.tar.gz", hash = "sha256:f092b21708bf0e7437ce9ada249dfe688ff9a0954fc94abab05dcea7dcd29c33", size = 4637264, upload-time = "2026-04-16T18:46:26.58Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/02/1e/6aca3427f751295ab011828e15e9bf452200ac74484f1db4be0197b8170b/ruff-0.15.11-py3-none-linux_armv6l.whl", hash = "sha256:e927cfff503135c558eb581a0c9792264aae9507904eb27809cdcff2f2c847b7", size = 10607943, upload-time = "2026-04-16T18:46:05.967Z" },+ { url = "https://files.pythonhosted.org/packages/e7/26/1341c262e74f36d4e84f3d6f4df0ac68cd53331a66bfc5080daa17c84c0b/ruff-0.15.11-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:7a1b5b2938d8f890b76084d4fa843604d787a912541eae85fd7e233398bbb73e", size = 10988592, upload-time = "2026-04-16T18:46:00.742Z" },+ { url = "https://files.pythonhosted.org/packages/03/71/850b1d6ffa9564fbb6740429bad53df1094082fe515c8c1e74b6d8d05f18/ruff-0.15.11-py3-none-macosx_11_0_arm64.whl", hash = "sha256:d4176f3d194afbdaee6e41b9ccb1a2c287dba8700047df474abfbe773825d1cb", size = 10338501, upload-time = "2026-04-16T18:46:03.723Z" },+ { url = "https://files.pythonhosted.org/packages/f2/11/cc1284d3e298c45a817a6aadb6c3e1d70b45c9b36d8d9cce3387b495a03a/ruff-0.15.11-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3b17c886fb88203ced3afe7f14e8d5ae96e9d2f4ccc0ee66aa19f2c2675a27e4", size = 10670693, upload-time = "2026-04-16T18:46:41.941Z" },+ { url = "https://files.pythonhosted.org/packages/ce/9e/f8288b034ab72b371513c13f9a41d9ba3effac54e24bfb467b007daee2ca/ruff-0.15.11-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:49fafa220220afe7758a487b048de4c8f9f767f37dfefad46b9dd06759d003eb", size = 10416177, upload-time = "2026-04-16T18:46:21.717Z" },+ { url = "https://files.pythonhosted.org/packages/85/71/504d79abfd3d92532ba6bbe3d1c19fada03e494332a59e37c7c2dabae427/ruff-0.15.11-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f2ab8427e74a00d93b8bda1307b1e60970d40f304af38bccb218e056c220120d", size = 11221886, upload-time = "2026-04-16T18:46:15.086Z" },+ { url = "https://files.pythonhosted.org/packages/43/5a/947e6ab7a5ad603d65b474be15a4cbc6d29832db5d762cd142e4e3a74164/ruff-0.15.11-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:195072c0c8e1fc8f940652073df082e37a5d9cb43b4ab1e4d0566ab8977a13b7", size = 12075183, upload-time = "2026-04-16T18:46:07.944Z" },+ { url = "https://files.pythonhosted.org/packages/9f/a1/0b7bb6268775fdd3a0818aee8efd8f5b4e231d24dd4d528ced2534023182/ruff-0.15.11-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a3a0996d486af3920dec930a2e7daed4847dfc12649b537a9335585ada163e9e", size = 11516575, upload-time = "2026-04-16T18:46:31.687Z" },+ { url = "https://files.pythonhosted.org/packages/30/c3/bb5168fc4d233cc06e95f482770d0f3c87945a0cd9f614b90ea8dc2f2833/ruff-0.15.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1bef2cb556d509259f1fe440bb9cd33c756222cf0a7afe90d15edf0866702431", size = 11306537, upload-time = "2026-04-16T18:46:36.988Z" },+ { url = "https://files.pythonhosted.org/packages/e4/92/4cfae6441f3967317946f3b788136eecf093729b94d6561f963ed810c82e/ruff-0.15.11-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:030d921a836d7d4a12cf6e8d984a88b66094ccb0e0f17ddd55067c331191bf19", size = 11296813, upload-time = "2026-04-16T18:46:24.182Z" },+ { url = "https://files.pythonhosted.org/packages/43/26/972784c5dde8313acde8ac71ba8ac65475b85db4a2352a76c9934361f9bc/ruff-0.15.11-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:0e783b599b4577788dbbb66b9addcef87e9a8832f4ce0c19e34bf55543a2f890", size = 10633136, upload-time = "2026-04-16T18:46:39.802Z" },+ { url = "https://files.pythonhosted.org/packages/5b/53/3985a4f185020c2f367f2e08a103032e12564829742a1b417980ce1514a0/ruff-0.15.11-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:ae90592246625ba4a34349d68ec28d4400d75182b71baa196ddb9f82db025ef5", size = 10424701, upload-time = "2026-04-16T18:46:10.381Z" },+ { url = "https://files.pythonhosted.org/packages/d3/57/bf0dfb32241b56c83bb663a826133da4bf17f682ba8c096973065f6e6a68/ruff-0.15.11-py3-none-musllinux_1_2_i686.whl", hash = "sha256:1f111d62e3c983ed20e0ca2e800f8d77433a5b1161947df99a5c2a3fb60514f0", size = 10873887, upload-time = "2026-04-16T18:46:29.157Z" },+ { url = "https://files.pythonhosted.org/packages/02/05/e48076b2a57dc33ee8c7a957296f97c744ca891a8ffb4ffb1aaa3b3f517d/ruff-0.15.11-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:06f483d6646f59eaffba9ae30956370d3a886625f511a3108994000480621d1c", size = 11404316, upload-time = "2026-04-16T18:46:19.462Z" },+ { url = "https://files.pythonhosted.org/packages/88/27/0195d15fe7a897cbcba0904792c4b7c9fdd958456c3a17d2ea6093716a9a/ruff-0.15.11-py3-none-win32.whl", hash = "sha256:476a2aa56b7da0b73a3ee80b6b2f0e19cce544245479adde7baa65466664d5f3", size = 10655535, upload-time = "2026-04-16T18:46:12.47Z" },+ { url = "https://files.pythonhosted.org/packages/3a/5e/c927b325bd4c1d3620211a4b96f47864633199feed60fa936025ab27e090/ruff-0.15.11-py3-none-win_amd64.whl", hash = "sha256:8b6756d88d7e234fb0c98c91511aae3cd519d5e3ed271cae31b20f39cb2a12a3", size = 11779692, upload-time = "2026-04-16T18:46:17.268Z" },+ { url = "https://files.pythonhosted.org/packages/63/b6/aeadee5443e49baa2facd51131159fd6301cc4ccfc1541e4df7b021c37dd/ruff-0.15.11-py3-none-win_arm64.whl", hash = "sha256:063fed18cc1bbe0ee7393957284a6fe8b588c6a406a285af3ee3f46da2391ee4", size = 11032614, upload-time = "2026-04-16T18:46:34.487Z" },+]+[[package]]name = "selenium"version = "4.40.0"@@ -1098,10 +994,7 @@ dependencies = [[package.dev-dependencies]dev = [- { name = "autoflake" },- { name = "black" },- { name = "isort" },- { name = "pylint" },+ { name = "ruff" },][package.metadata]@@ -1123,21 +1016,7 @@ requires-dist = [][package.metadata.requires-dev]-dev = [- { name = "autoflake", specifier = ">=2.3.1" },- { name = "black", specifier = ">=25.1.0" },- { name = "isort", specifier = ">=6.0.1" },- { name = "pylint", specifier = ">=3.3.6" },-]--[[package]]-name = "tomlkit"-version = "0.13.3"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/cc/18/0bbf3884e9eaa38819ebe46a7bd25dcd56b67434402b66a58c4b8e552575/tomlkit-0.13.3.tar.gz", hash = "sha256:430cf247ee57df2b94ee3fbe588e71d362a941ebb545dec29b53961d61add2a1", size = 185207, upload-time = "2025-06-05T07:13:44.947Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/bd/75/8539d011f6be8e29f339c42e633aae3cb73bffa95dd0f9adec09b9c58e85/tomlkit-0.13.3-py3-none-any.whl", hash = "sha256:c89c649d79ee40629a9fda55f8ace8c6a1b42deb912b2a8fd8d942ddadb606b0", size = 38901, upload-time = "2025-06-05T07:13:43.546Z" },-]+dev = [{ name = "ruff", specifier = ">=0.8.0" }][[package]]name = "trio"