Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test batch semver processing #81463

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

test batch semver processing #81463

wants to merge 1 commit into from

Conversation

narsaynorath
Copy link
Member

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 29, 2024
Copy link

codecov bot commented Nov 29, 2024

❌ 32 Tests Failed:

Tests completed Failed Passed Skipped
23216 32 23184 213
View the top 3 failed tests by shortest run time
tests.sentry.snuba.test_entity_subscriptions.EntitySubscriptionTestCase::test_get_entity_subscription_for_events_dataset
Stack Traces | 1.78s run time
#x1B[1m#x1B[31m.venv/lib/python3.12.../models/sql/query.py#x1B[0m:2195: in add_fields
    join_info = self.setup_joins(
#x1B[1m#x1B[31m.venv/lib/python3.12.../models/sql/query.py#x1B[0m:1863: in setup_joins
    path, final_field, targets, rest = self.names_to_path(
#x1B[1m#x1B[31m.venv/lib/python3.12.../models/sql/query.py#x1B[0m:1768: in names_to_path
    raise FieldError(
#x1B[1m#x1B[31mE   django.core.exceptions.FieldError: Cannot resolve keyword 'is_semver_release' into field. Choices are: authors, build_code, build_number, commit_count, data, date_added, date_released, date_started, deploy, distribution, group, groupenvironment, grouphistory, groupresolution, id, last_commit_id, last_deploy_id, major, minor, new_groups, organization, organization_id, owner_id, package, patch, prerelease, projects, ref, releaseactivity, releasecommit, releaseenvironment, releaseheadcommit, releaseproject, releaseprojectenvironment, revision, status, total_deploys, url, user_agent, version#x1B[0m

#x1B[33mDuring handling of the above exception, another exception occurred:#x1B[0m
#x1B[1m#x1B[.../sentry/snuba/test_entity_subscriptions.py#x1B[0m:556: in test_get_entity_subscription_for_events_dataset
    snql_query = entity_subscription.build_query_builder(
#x1B[1m#x1B[.../sentry/snuba/entity_subscription.py#x1B[0m:205: in build_query_builder
    return query_builder_cls(
#x1B[1m#x1B[.../events/builder/errors.py#x1B[0m:37: in __init__
    super().__init__(*args, **kwargs)
#x1B[1m#x1B[.../events/builder/base.py#x1B[0m:284: in __init__
    self.resolve_query(
#x1B[1m#x1B[.../events/builder/errors.py#x1B[0m:81: in resolve_query
    super().resolve_query(query, selected_columns, groupby_columns, equations, orderby)
#x1B[1m#x1B[.../events/builder/base.py#x1B[0m:334: in resolve_query
    self.where, self.having = self.resolve_conditions(query)
#x1B[1m#x1B[.../events/builder/base.py#x1B[0m:433: in resolve_conditions
    where, having = self.resolve_boolean_conditions(parsed_terms)
#x1B[1m#x1B[.../events/builder/base.py#x1B[0m:495: in resolve_boolean_conditions
    rhs_where, rhs_having = self.resolve_boolean_conditions(rhs)
#x1B[1m#x1B[.../events/builder/base.py#x1B[0m:447: in resolve_boolean_conditions
    return self.resolve_boolean_condition(terms[0])
#x1B[1m#x1B[.../events/builder/base.py#x1B[0m:532: in resolve_boolean_condition
    return self.resolve_boolean_conditions(term.children)
#x1B[1m#x1B[.../events/builder/base.py#x1B[0m:447: in resolve_boolean_conditions
    return self.resolve_boolean_condition(terms[0])
#x1B[1m#x1B[.../events/builder/base.py#x1B[0m:538: in resolve_boolean_condition
    where = self.resolve_where([cast(event_search.SearchFilter, term)])
#x1B[1m#x1B[.../events/builder/base.py#x1B[0m:388: in resolve_where
    condition = self.format_search_filter(cast(event_search.SearchFilter, term))
#x1B[1m#x1B[.../events/builder/discover.py#x1B[0m:109: in format_search_filter
    converted_filter = self.convert_search_filter_to_condition(
#x1B[1m#x1B[.../events/builder/base.py#x1B[0m:1221: in convert_search_filter_to_condition
    return converter(search_filter)
#x1B[1m#x1B[.../events/datasets/discover.py#x1B[0m:1848: in _release_filter_converter
    return filter_aliases.release_filter_converter(self.builder, search_filter)
#x1B[1m#x1B[.../events/datasets/filter_aliases.py#x1B[0m:60: in release_filter_converter
    parse_release(
#x1B[1m#x1B[.../sentry/search/utils.py#x1B[0m:514: in parse_release
    return get_latest_release(projects, environments, organization_id)
#x1B[1m#x1B[.../sentry/search/utils.py#x1B[0m:373: in get_latest_release
    semver_status = batch_check_semver_versioning_scheme(organization_id, project_ids)
#x1B[1m#x1B[.../sentry/models/release.py#x1B[0m:852: in batch_check_semver_versioning_scheme
    .values("projects__id", "version", "is_semver_release")[: len(projects_to_check) * 10]
#x1B[1m#x1B[31m.venv/lib/python3.12.../db/models/query.py#x1B[0m:1360: in values
    clone = self._values(*fields, **expressions)
#x1B[1m#x1B[31m.venv/lib/python3.12.../db/models/query.py#x1B[0m:1355: in _values
    clone.query.set_values(fields)
#x1B[1m#x1B[31m.venv/lib/python3.12.../models/sql/query.py#x1B[0m:2500: in set_values
    self.add_fields(field_names, True)
#x1B[1m#x1B[31m.venv/lib/python3.12.../models/sql/query.py#x1B[0m:2223: in add_fields
    raise FieldError(
#x1B[1m#x1B[31mE   django.core.exceptions.FieldError: Cannot resolve keyword 'is_semver_release' into field. Choices are: authors, build_code, build_number, commit_count, data, date_added, date_released, date_started, deploy, distribution, group, groupenvironment, grouphistory, groupresolution, id, last_commit_id, last_deploy_id, major, minor, new_groups, organization, organization_id, owner_id, package, patch, prerelease, projects, ref, releaseactivity, releasecommit, releaseenvironment, releaseheadcommit, releaseproject, releaseprojectenvironment, revision, status, total_deploys, url, user_agent, version#x1B[0m
tests.sentry.api.test_issue_search.ConvertReleaseValueTest::test_latest
Stack Traces | 1.84s run time
#x1B[1m#x1B[31m.venv/lib/python3.12.../models/sql/query.py#x1B[0m:2195: in add_fields
    join_info = self.setup_joins(
#x1B[1m#x1B[31m.venv/lib/python3.12.../models/sql/query.py#x1B[0m:1863: in setup_joins
    path, final_field, targets, rest = self.names_to_path(
#x1B[1m#x1B[31m.venv/lib/python3.12.../models/sql/query.py#x1B[0m:1768: in names_to_path
    raise FieldError(
#x1B[1m#x1B[31mE   django.core.exceptions.FieldError: Cannot resolve keyword 'is_semver_release' into field. Choices are: authors, build_code, build_number, commit_count, data, date_added, date_released, date_started, deploy, distribution, group, groupenvironment, grouphistory, groupresolution, id, last_commit_id, last_deploy_id, major, minor, new_groups, organization, organization_id, owner_id, package, patch, prerelease, projects, ref, releaseactivity, releasecommit, releaseenvironment, releaseheadcommit, releaseproject, releaseprojectenvironment, revision, status, total_deploys, url, user_agent, version#x1B[0m

#x1B[33mDuring handling of the above exception, another exception occurred:#x1B[0m
#x1B[1m#x1B[.../sentry/api/test_issue_search.py#x1B[0m:376: in test_latest
    assert convert_release_value(["latest"], [self.project], self.user, None) == release.version
#x1B[1m#x1B[.../sentry/api/issue_search.py#x1B[0m:128: in convert_release_value
    releases.update(parse_release(version, projects, environments))
#x1B[1m#x1B[.../sentry/search/utils.py#x1B[0m:514: in parse_release
    return get_latest_release(projects, environments, organization_id)
#x1B[1m#x1B[.../sentry/search/utils.py#x1B[0m:373: in get_latest_release
    semver_status = batch_check_semver_versioning_scheme(organization_id, project_ids)
#x1B[1m#x1B[.../sentry/models/release.py#x1B[0m:852: in batch_check_semver_versioning_scheme
    .values("projects__id", "version", "is_semver_release")[: len(projects_to_check) * 10]
#x1B[1m#x1B[31m.venv/lib/python3.12.../db/models/query.py#x1B[0m:1360: in values
    clone = self._values(*fields, **expressions)
#x1B[1m#x1B[31m.venv/lib/python3.12.../db/models/query.py#x1B[0m:1355: in _values
    clone.query.set_values(fields)
#x1B[1m#x1B[31m.venv/lib/python3.12.../models/sql/query.py#x1B[0m:2500: in set_values
    self.add_fields(field_names, True)
#x1B[1m#x1B[31m.venv/lib/python3.12.../models/sql/query.py#x1B[0m:2223: in add_fields
    raise FieldError(
#x1B[1m#x1B[31mE   django.core.exceptions.FieldError: Cannot resolve keyword 'is_semver_release' into field. Choices are: authors, build_code, build_number, commit_count, data, date_added, date_released, date_started, deploy, distribution, group, groupenvironment, grouphistory, groupresolution, id, last_commit_id, last_deploy_id, major, minor, new_groups, organization, organization_id, owner_id, package, patch, prerelease, projects, ref, releaseactivity, releasecommit, releaseenvironment, releaseheadcommit, releaseproject, releaseprojectenvironment, revision, status, total_deploys, url, user_agent, version#x1B[0m
tests.sentry.search.test_utils.GetLatestReleaseTest::test
Stack Traces | 1.87s run time
#x1B[1m#x1B[31m.venv/lib/python3.12.../models/sql/query.py#x1B[0m:2195: in add_fields
    join_info = self.setup_joins(
#x1B[1m#x1B[31m.venv/lib/python3.12.../models/sql/query.py#x1B[0m:1863: in setup_joins
    path, final_field, targets, rest = self.names_to_path(
#x1B[1m#x1B[31m.venv/lib/python3.12.../models/sql/query.py#x1B[0m:1768: in names_to_path
    raise FieldError(
#x1B[1m#x1B[31mE   django.core.exceptions.FieldError: Cannot resolve keyword 'is_semver_release' into field. Choices are: authors, build_code, build_number, commit_count, data, date_added, date_released, date_started, deploy, distribution, group, groupenvironment, grouphistory, groupresolution, id, last_commit_id, last_deploy_id, major, minor, new_groups, organization, organization_id, owner_id, package, patch, prerelease, projects, ref, releaseactivity, releasecommit, releaseenvironment, releaseheadcommit, releaseproject, releaseprojectenvironment, revision, status, total_deploys, url, user_agent, version#x1B[0m

#x1B[33mDuring handling of the above exception, another exception occurred:#x1B[0m
#x1B[1m#x1B[.../sentry/search/test_utils.py#x1B[0m:707: in test
    get_latest_release([self.project], environment)
#x1B[1m#x1B[.../sentry/search/utils.py#x1B[0m:373: in get_latest_release
    semver_status = batch_check_semver_versioning_scheme(organization_id, project_ids)
#x1B[1m#x1B[.../sentry/models/release.py#x1B[0m:852: in batch_check_semver_versioning_scheme
    .values("projects__id", "version", "is_semver_release")[: len(projects_to_check) * 10]
#x1B[1m#x1B[31m.venv/lib/python3.12.../db/models/query.py#x1B[0m:1360: in values
    clone = self._values(*fields, **expressions)
#x1B[1m#x1B[31m.venv/lib/python3.12.../db/models/query.py#x1B[0m:1355: in _values
    clone.query.set_values(fields)
#x1B[1m#x1B[31m.venv/lib/python3.12.../models/sql/query.py#x1B[0m:2500: in set_values
    self.add_fields(field_names, True)
#x1B[1m#x1B[31m.venv/lib/python3.12.../models/sql/query.py#x1B[0m:2223: in add_fields
    raise FieldError(
#x1B[1m#x1B[31mE   django.core.exceptions.FieldError: Cannot resolve keyword 'is_semver_release' into field. Choices are: authors, build_code, build_number, commit_count, data, date_added, date_released, date_started, deploy, distribution, group, groupenvironment, grouphistory, groupresolution, id, last_commit_id, last_deploy_id, major, minor, new_groups, organization, organization_id, owner_id, package, patch, prerelease, projects, ref, releaseactivity, releasecommit, releaseenvironment, releaseheadcommit, releaseproject, releaseprojectenvironment, revision, status, total_deploys, url, user_agent, version#x1B[0m

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant