openSUSE / open-build-service

Compare a543431 ... +71 ... 82b67f0

Coverage Reach
app/models/project.rb app/models/package.rb app/models/event/base.rb app/models/event/request.rb app/models/event/build_fail.rb app/models/event/build.rb app/models/event/comment_event.rb app/models/event/request_create.rb app/models/event/review_wanted.rb app/models/event/commit.rb app/models/event/service_fail.rb app/models/event/request_statechange.rb app/models/event/comment_for_request.rb app/models/event/service_success.rb app/models/event/delete_package.rb app/models/event/create_package.rb app/models/event/create_project.rb app/models/event/review_changed.rb app/models/event/repo_build_finished.rb app/models/event/repo_build_started.rb app/models/event/delete_project.rb app/models/event/repo_published.rb app/models/event/factory.rb app/models/event/comment_for_project.rb app/models/event/comment_for_package.rb app/models/event/undelete_package.rb app/models/event/version_change.rb app/models/event/build_success.rb app/models/event/branch_command.rb app/models/event/request_reviews_done.rb app/models/event/packtrack.rb app/models/event/build_unchanged.rb app/models/event/repo_publish_state.rb app/models/event/upload.rb app/models/event/update_project_config.rb app/models/event/update_project.rb app/models/event/status_check_for_build.rb app/models/event/status_check_for_published.rb app/models/event/undelete_project.rb app/models/event/update_package.rb app/models/event/request_delete.rb app/models/event/status_check.rb app/models/event/request_change.rb app/models/event/status_check_for_request.rb app/models/bs_request.rb app/models/bs_request_action.rb app/models/user.rb app/models/kiwi/image/xml_builder.rb app/models/kiwi/image/xml_parser.rb app/models/kiwi/image.rb app/models/kiwi/repository.rb app/models/kiwi/package_group.rb app/models/kiwi/package.rb app/models/kiwi/preference.rb app/models/kiwi/description.rb app/models/kiwi/profile.rb app/models/bs_request/find_for/base.rb app/models/bs_request/find_for/project.rb app/models/bs_request/find_for/group.rb app/models/bs_request/find_for/user.rb app/models/bs_request/find_for/user_group_mixin.rb app/models/bs_request/find_for/query.rb app/models/bs_request/data_table/params_parser.rb app/models/bs_request/data_table/row.rb app/models/bs_request/data_table/find_for_user_or_group_query.rb app/models/bs_request/data_table/find_for_package_query.rb app/models/bs_request/data_table/find_for_project_query.rb app/models/bs_request/data_table/params_parser_with_state_and_type.rb app/models/bs_request/data_table/table.rb app/models/bs_request/errors.rb app/models/branch_package.rb app/models/staging/staged_requests.rb app/models/staging/workflow.rb app/models/staging/request_excluder.rb app/models/staging/request_exclusion.rb app/models/staging/excluded_request_not_found.rb app/models/concerns/staging_project.rb app/models/concerns/project_maintenance.rb app/models/concerns/project_links.rb app/models/concerns/multibuild_package.rb app/models/concerns/project_distribution.rb app/models/project/update_from_xml_command.rb app/models/project/embargo_handler.rb app/models/project/key_info.rb app/models/project/errors.rb app/models/project/remote_url.rb app/models/owner_search/assignee.rb app/models/owner_search/base.rb app/models/owner_search/missing.rb app/models/owner_search/container.rb app/models/owner_search/owned.rb app/models/user_ldap_strategy.rb app/models/patchinfo.rb app/models/review.rb app/models/bs_request_action/differ/query_builder.rb app/models/bs_request_action/differ/for_source.rb app/models/bs_request_action/differ/query_builder_for_superseded.rb app/models/bs_request_action/differ/source_package_finder.rb app/models/bs_request_action/differ/query_builder_for_accepted.rb app/models/bs_request_action/errors.rb app/models/bs_request_action/differ.rb app/models/bs_request_permission_check.rb app/models/issue_tracker.rb app/models/workflow/step/link_package_step.rb app/models/workflow/step/branch_package_step.rb app/models/workflow/step/configure_repositories.rb app/models/workflow/step.rb app/models/repository.rb app/models/history_element/review.rb app/models/history_element/request.rb app/models/history_element/request_superseded.rb app/models/history_element/request_all_reviews_approved.rb app/models/history_element/request_reopened.rb app/models/history_element/request_revoked.rb app/models/history_element/request_declined.rb app/models/history_element/request_set_incident.rb app/models/history_element/request_priority_change.rb app/models/history_element/request_accepted.rb app/models/history_element/request_deleted.rb app/models/history_element/base.rb app/models/history_element/review_accepted.rb app/models/history_element/review_obsoleted.rb app/models/history_element/review_reopened.rb app/models/history_element/request_review_added.rb app/models/history_element/review_assigned.rb app/models/history_element/review_declined.rb app/models/branch_package/check_for_update.rb app/models/branch_package/set_target_project.rb app/models/branch_package/lookup_incident_package.rb app/models/branch_package/dry_run.rb app/models/branch_package/errors.rb app/models/cloud/backend/upload_job.rb app/models/cloud/upload_job.rb app/models/cloud/azure/configuration.rb app/models/cloud/azure/params.rb app/models/cloud/ec2/params.rb app/models/cloud/ec2/configuration.rb app/models/cloud/user/upload_job.rb app/models/binary_release.rb app/models/event_subscription/for_role_form.rb app/models/event_subscription/find_for_event.rb app/models/event_subscription/form.rb app/models/event_subscription/for_channel_form.rb app/models/event_subscription/for_event_form.rb app/models/channel.rb app/models/product.rb app/models/group.rb app/models/package_build_status.rb app/models/bs_request_action_maintenance_incident.rb app/models/bs_request_action_maintenance_release.rb app/models/project_status/calculator.rb app/models/project_status/pack_info.rb app/models/token/workflow.rb app/models/token/release.rb app/models/token/errors.rb app/models/token/rebuild.rb app/models/token/service.rb app/models/token/rss.rb app/models/relationship.rb app/models/attrib.rb app/models/issue.rb app/models/worker_status.rb app/models/attrib_type.rb app/models/service.rb app/models/bs_request_action_submit.rb app/models/issue_tracker/cve_parser.rb app/models/issue_tracker/issue_summary.rb app/models/issue_tracker/issue_tracker_helper.rb app/models/bs_request_action_release.rb app/models/channel_binary.rb app/models/search_finder.rb app/models/maintenance_incident.rb app/models/configuration.rb app/models/comment.rb app/models/status/report.rb app/models/status/check.rb app/models/status/checkable.rb app/models/statistics/maintenance_statistics_collection.rb app/models/statistics/maintenance_statistic.rb app/models/local_build_statistic/for_package.rb app/models/local_build_statistic/package/time.rb app/models/local_build_statistic/package/disk.rb app/models/local_build_statistic/package/memory.rb app/models/bs_request_action_delete.rb app/models/update_notification_events.rb app/models/full_text_search.rb app/models/local_build_result/for_package.rb app/models/flag/specified_flags.rb app/models/flag/validations.rb app/models/buildresult.rb app/models/status_message.rb app/models/workflow.rb app/models/project_log_entry.rb app/models/event_subscription.rb app/models/role.rb app/models/flag.rb app/models/unregistered_user.rb app/models/relationship/add_role.rb app/models/notification.rb app/models/architecture.rb app/models/package_issue.rb app/models/token.rb app/models/distribution.rb app/models/scm_webhook.rb app/models/bs_request_action_add_role.rb app/models/package/errors.rb app/models/attrib_namespace.rb app/models/bs_request_action_set_bugowner.rb app/models/attrib_value.rb app/models/service/name_validator.rb app/models/download_repository.rb app/models/linked_project.rb app/models/owner.rb app/models/updateinfo_counter.rb app/models/groups_user.rb app/models/commit_activity.rb app/models/group_maintainer.rb app/models/channel_target.rb app/models/bs_request_action_accept_info.rb app/models/user_basic_strategy.rb app/models/backend_package.rb app/models/bs_request_action_change_devel.rb app/models/directory.rb app/models/repository_architecture.rb app/models/channel_binary_list.rb app/models/backend_info.rb app/models/static_permission.rb app/models/project_config_file.rb app/models/bs_request_action_maintenance_release/errors.rb app/models/incident_updateinfo_counter_value.rb app/models/project_meta_file.rb app/models/package_build_reason.rb app/models/notified_project.rb app/models/status_message_acknowledgement.rb app/models/remote_project.rb app/models/path_element.rb app/models/package_service_error_file.rb app/models/package_meta_file.rb app/models/package_file.rb app/models/issue/errors.rb app/models/watched_project.rb app/models/attrib_type_modifiable_by.rb app/models/maintained_project.rb app/models/project_file.rb app/models/status_history.rb app/models/product_medium.rb app/models/message.rb app/models/attrib_issue.rb app/models/product_update_repository.rb app/models/attrib_namespace_modifiable_by.rb app/models/local_job_history.rb app/models/release_target.rb app/models/roles_static_permission.rb app/models/kiwi.rb app/models/attrib_default_value.rb app/models/roles_user.rb app/models/status.rb app/models/distribution_icon.rb app/models/rating.rb app/models/local_statistic.rb app/models/event.rb app/models/local_build_result.rb app/models/application_record.rb app/models/package_kind.rb app/models/bs_request_counter.rb app/models/attrib_allowed_value.rb app/models/current.rb app/controllers/webui/package_controller.rb app/controllers/webui/projects/status_controller.rb app/controllers/webui/projects/rebuild_times_controller.rb app/controllers/webui/projects/maintained_projects_controller.rb app/controllers/webui/projects/maintenance_incident_requests_controller.rb app/controllers/webui/projects/pulse_controller.rb app/controllers/webui/projects/meta_controller.rb app/controllers/webui/projects/maintenance_incidents_controller.rb app/controllers/webui/projects/project_configuration_controller.rb app/controllers/webui/projects/bs_requests_controller.rb app/controllers/webui/projects/ssl_certificate_controller.rb app/controllers/webui/projects/public_key_controller.rb app/controllers/webui/project_controller.rb app/controllers/webui/users/tokens_controller.rb app/controllers/webui/users/notifications_controller.rb app/controllers/webui/users/token_triggers_controller.rb app/controllers/webui/users/subscriptions_controller.rb app/controllers/webui/users/rss_tokens_controller.rb app/controllers/webui/users/bs_requests_controller.rb app/controllers/webui/users/patchinfos_controller.rb app/controllers/webui/users/tasks_controller.rb app/controllers/webui/request_controller.rb app/controllers/webui/staging/workflows_controller.rb app/controllers/webui/staging/projects_controller.rb app/controllers/webui/staging/excluded_requests_controller.rb app/controllers/webui/webui_controller.rb app/controllers/webui/packages/branches_controller.rb app/controllers/webui/packages/files_controller.rb app/controllers/webui/packages/main_controller.rb app/controllers/webui/packages/bs_requests_controller.rb app/controllers/webui/packages/build_reason_controller.rb app/controllers/webui/packages/job_history_controller.rb app/controllers/webui/cloud/upload_jobs_controller.rb app/controllers/webui/cloud/azure/configurations_controller.rb app/controllers/webui/cloud/azure/upload_jobs_controller.rb app/controllers/webui/cloud/ec2/configurations_controller.rb app/controllers/webui/cloud/ec2/upload_jobs_controller.rb app/controllers/webui/cloud/upload_job/logs_controller.rb app/controllers/webui/cloud/configurations_controller.rb app/controllers/webui/repositories_controller.rb app/controllers/webui/users_controller.rb app/controllers/webui/patchinfo_controller.rb app/controllers/webui/search_controller.rb app/controllers/webui/kiwi/images_controller.rb app/controllers/webui/requests/submissions_controller.rb app/controllers/webui/requests/devel_project_changes_controller.rb app/controllers/webui/requests/role_additions_controller.rb app/controllers/webui/requests/deletions_controller.rb app/controllers/webui/attribute_controller.rb app/controllers/webui/monitor_controller.rb app/controllers/webui/groups/users_controller.rb app/controllers/webui/groups/bs_requests_controller.rb app/controllers/webui/comments_controller.rb app/controllers/webui/download_on_demand_controller.rb app/controllers/webui/session_controller.rb app/controllers/webui/feeds_controller.rb app/controllers/webui/status_messages_controller.rb app/controllers/webui/main_controller.rb app/controllers/webui/distributions_controller.rb app/controllers/webui/groups_controller.rb app/controllers/webui/architectures_controller.rb app/controllers/webui/interconnects_controller.rb app/controllers/webui/sitemaps_controller.rb app/controllers/webui/subscriptions_controller.rb app/controllers/webui/apidocs_controller.rb app/controllers/webui/configuration_controller.rb app/controllers/webui/mixins/bs_requests_controller_mixin.rb app/controllers/webui/image_templates_controller.rb app/controllers/source_controller.rb app/controllers/application_controller.rb app/controllers/person_controller.rb app/controllers/staging/staging_projects_controller.rb app/controllers/staging/staged_requests_controller.rb app/controllers/staging/workflows_controller.rb app/controllers/staging/excluded_requests_controller.rb app/controllers/staging/staging_controller.rb app/controllers/staging/errors.rb app/controllers/staging/backlog_controller.rb app/controllers/request_controller.rb app/controllers/search_controller.rb app/controllers/status/required_checks_controller.rb app/controllers/status/checks_controller.rb app/controllers/status/concerns/set_checkable.rb app/controllers/status/reports_controller.rb app/controllers/concerns/webui/rescue_handler.rb app/controllers/concerns/rescue_handler.rb app/controllers/concerns/triggerable.rb app/controllers/concerns/set_current_request_details.rb app/controllers/public_controller.rb app/controllers/statistics_controller.rb app/controllers/build_controller.rb app/controllers/source_project_controller.rb app/controllers/source_project_meta_controller.rb app/controllers/build/file_controller.rb app/controllers/distributions_controller.rb app/controllers/source/errors.rb app/controllers/source/key_info_controller.rb app/controllers/group_controller.rb app/controllers/message_controller.rb app/controllers/issue_trackers_controller.rb app/controllers/source_attribute_controller.rb app/controllers/source_project_package_meta_controller.rb app/controllers/attribute_namespace_controller.rb app/controllers/status_project_controller.rb app/controllers/attribute_controller.rb app/controllers/configurations_controller.rb app/controllers/trigger_controller.rb app/controllers/announcements_controller.rb app/controllers/source_project_config_controller.rb app/controllers/cloud/upload_jobs_controller.rb app/controllers/trigger_workflow_controller.rb app/controllers/status_messages_controller.rb app/controllers/comments_controller.rb app/controllers/architectures_controller.rb app/controllers/person/token_controller.rb app/controllers/worker/command_controller.rb app/controllers/worker/status_controller.rb app/controllers/worker/capability_controller.rb app/controllers/statistics/maintenance_statistics_controller.rb app/controllers/about_controller.rb app/controllers/trigger/errors.rb app/controllers/published_controller.rb app/controllers/mail_handler_controller.rb app/controllers/issues_controller.rb app/controllers/service_controller.rb app/helpers/webui/webui_helper.rb app/helpers/webui/user_helper.rb app/helpers/webui/staging/workflow_helper.rb app/helpers/webui/staging/project_helper.rb app/helpers/webui/staging/excluded_requests_helper.rb app/helpers/webui/request_helper.rb app/helpers/webui/package_helper.rb app/helpers/webui/maintenance_incident_helper.rb app/helpers/webui/projects/status_helper.rb app/helpers/webui/projects/category_helper.rb app/helpers/webui/notification_helper.rb app/helpers/webui/buildresult_helper.rb app/helpers/webui/project_helper.rb app/helpers/webui/user_activity_helper.rb app/helpers/webui/repository_helper.rb app/helpers/webui/patchinfo_helper.rb app/helpers/webui/user_or_groups_roles_helper.rb app/helpers/webui/monitor_helper.rb app/helpers/webui/main_helper.rb app/helpers/webui/packages/job_history_helper.rb app/helpers/webui/markdown_helper.rb app/helpers/webui/group_helper.rb app/helpers/webui/sponsor_helper.rb app/helpers/maintenance_helper.rb app/helpers/flag_helper.rb app/helpers/validation_helper.rb app/helpers/authentication_protocol_helper.rb app/helpers/model_helper.rb app/helpers/status_helper.rb app/helpers/meta_tag_helper.rb app/helpers/status/required_checks_helper.rb app/helpers/public_helper.rb app/helpers/event_mailer_helper.rb app/helpers/application_helper.rb app/lib/backend/api/build_results/binaries.rb app/lib/backend/api/build_results/job_history.rb app/lib/backend/api/build_results/status.rb app/lib/backend/api/build_results/worker.rb app/lib/backend/api/sources/package.rb app/lib/backend/api/sources/project.rb app/lib/backend/api/build/project.rb app/lib/backend/api/build/repository.rb app/lib/backend/api/cloud.rb app/lib/backend/api/search.rb app/lib/backend/api/server.rb app/lib/backend/api/published.rb app/lib/backend/api/request.rb app/lib/backend/api/issue_trackers.rb app/lib/backend/connection.rb app/lib/backend/file.rb app/lib/backend/connection_helper.rb app/lib/backend/test.rb app/lib/backend/logger.rb app/lib/backend/instrumentation.rb app/lib/backend/remember_location.rb app/lib/backend/error.rb app/lib/backend/not_found_error.rb app/lib/authenticator.rb app/lib/suse/validator.rb app/lib/suse/permission.rb app/lib/routes_helper/api_matcher.rb app/lib/routes_helper/webui_matcher.rb app/lib/routes_helper/routes_constraints.rb app/lib/backend.rb app/lib/rails_version.rb app/services/consistency_check_job_service/backend_package_importer.rb app/services/consistency_check_job_service/backend_project_importer.rb app/services/consistency_check_job_service/project_meta_checker.rb app/services/consistency_check_job_service/base_consistency_checker.rb app/services/consistency_check_job_service/package_consistency_checker.rb app/services/consistency_check_job_service/project_consistency_checker.rb app/services/user_service/involved.rb app/services/notification_service/web_channel.rb app/services/notification_service/notifier.rb app/services/notification_service/rss_channel.rb app/services/package_service/file_verifier.rb app/services/package_service/link_verifier.rb app/services/package_service/schema_verifier.rb app/services/staging/staging_project_creator.rb app/services/staging/staging_project_validator.rb app/services/package_controller_service/url_generator.rb app/services/package_controller_service/rebuild_trigger.rb app/services/workflows/filter.rb app/services/workflows/yaml_downloader.rb app/services/workflows/yaml_to_workflows_service.rb app/services/trigger_controller_service/scm_extractor.rb app/services/trigger_controller_service/token_extractor.rb app/services/meta_controller_service/project_updater.rb app/services/meta_controller_service/meta_validator.rb app/services/meta_controller_service/meta_xml_validator.rb app/services/monitor_controller_service/building_information_updater.rb app/services/monitor_controller_service/status_history_fetcher.rb app/services/project_configuration_service/project_configuration_presenter.rb app/services/project_configuration_service/project_configuration_updater.rb app/services/project_status_controller_service/attrib_values_finder.rb app/services/project_status_controller_service/opensuse_upstream_tarball_url_finder.rb app/services/project_status_controller_service/opensuse_upstream_version_finder.rb app/services/project_status_controller_service/project_status_fail_comment_finder.rb app/services/user_daily_contribution.rb app/services/scm_status_reporter.rb app/services/webui_controller_service/user_checker.rb app/services/user_yearly_contribution.rb app/services/architectures_controller_service/architecture_updater.rb app/services/scm_exception_handler.rb app/services/notified_projects.rb app/services/session_controller_service/session_creator.rb app/jobs/old/consistency_check_job.rb app/jobs/consistency_check_job.rb app/jobs/project_create_auto_cleanup_requests_job.rb app/jobs/worker_measurements_job.rb app/jobs/status_history_rescaler_job.rb app/jobs/project_do_project_copy_job.rb app/jobs/fetch_remote_distributions_job.rb app/jobs/measurements_job.rb app/jobs/bs_request_action_webui_infos_job.rb app/jobs/report_to_scm_job.rb app/jobs/update_backend_infos_job.rb app/jobs/send_event_emails_job.rb app/jobs/update_package_meta_job.rb app/jobs/create_job.rb app/jobs/staging_project_accept_job.rb app/jobs/daily_user_activity_measurement_job.rb app/jobs/delete_from_sphinx_job.rb app/jobs/populate_to_sphinx_job.rb app/jobs/update_released_binaries_job.rb app/jobs/staging_project_copy_job.rb app/jobs/update_packages_if_dirty_job.rb app/jobs/issue_tracker_write_to_backend_job.rb app/jobs/application_job.rb app/jobs/bs_request_auto_accept_job.rb app/jobs/issue_tracker_fetch_issues_job.rb app/jobs/package_update_if_dirty_job.rb app/jobs/configuration_write_to_backend_job.rb app/jobs/issue_tracker_update_issues_job.rb app/jobs/cleanup_project_log_entries.rb app/jobs/project_do_project_release_job.rb app/jobs/create_project_log_entry_job.rb app/jobs/published_repositories_cleanup_job.rb app/jobs/cleanup_notifications_job.rb app/jobs/cleanup_events.rb app/jobs/accept_requests_job.rb app/policies/application_policy.rb app/policies/project_policy.rb app/policies/staging/workflow_policy.rb app/policies/staging/request_exclusion_policy.rb app/policies/staging/staged_request_policy.rb app/policies/token_policy.rb app/policies/package_policy.rb app/policies/cloud/azure/configuration_policy.rb app/policies/cloud/user/upload_job_policy.rb app/policies/token/rebuild_policy.rb app/policies/token/release_policy.rb app/policies/token/service_policy.rb app/policies/token/workflow_policy.rb app/policies/token/rss_policy.rb app/policies/webui/status_message_policy.rb app/policies/webui/user_policy.rb app/policies/attrib_type_policy.rb app/policies/status/report_policy.rb app/policies/comment_policy.rb app/policies/status_message_policy.rb app/policies/repository_architecture_policy.rb app/policies/repository_policy.rb app/policies/attrib_policy.rb app/policies/users/task_policy.rb app/policies/users/patchinfos_policy.rb app/policies/event_subscription/form_policy.rb app/policies/attrib_namespace_policy.rb app/policies/group_policy.rb app/policies/download_repository_policy.rb app/policies/notification_policy.rb app/policies/kiwi/image_policy.rb app/policies/bs_request_policy.rb app/policies/user_policy.rb app/policies/flag_policy.rb app/mixins/has_relationships.rb app/mixins/has_attributes.rb app/mixins/webui/manage_relationships.rb app/mixins/parse_package_diff.rb app/mixins/build_log_support.rb app/mixins/has_ratings.rb app/mixins/project_sphinx.rb app/mixins/package_sphinx.rb app/mixins/can_render_model.rb app/mixins/flipper_feature.rb app/queries/packages_finder.rb app/queries/notifications_finder.rb app/queries/outdated_notifications_finder/bs_request.rb app/queries/outdated_notifications_finder/comment.rb app/queries/maintained_packages_by_user_finder.rb app/queries/autocomplete_finder/package.rb app/queries/autocomplete_finder/user.rb app/queries/autocomplete_finder/project.rb app/queries/open_requests_finder.rb app/queries/relationships_finder.rb app/queries/attrib_finder.rb app/queries/open_requests_with_project_as_source_or_target_finder.rb app/queries/project_names_finder.rb app/queries/autocomplete_finder.rb app/queries/reviews_finder.rb app/queries/event_subscriptions_finder.rb app/queries/open_requests_with_by_project_review_finder.rb app/queries/projects_with_very_important_attribute_finder.rb app/queries/projects_with_image_templates_finder.rb app/queries/obs_quality_categories_finder.rb app/datatables/maintained_project_datatable.rb app/datatables/package_datatable.rb app/datatables/project_datatable.rb app/datatables/excluded_request_datatable.rb app/datatables/tasks_maintenance_requests_datatable.rb app/datatables/maintenance_incident_datatable.rb app/datatables/user_configuration_datatable.rb app/datatables/datatable.rb app/validators/scm_webhook_event_validator.rb app/validators/workflow_steps_validator.rb app/validators/workflow_filters_validator.rb app/validators/allowed_user_validator.rb app/presenters/notification_presenter.rb app/presenters/comments_controller_presenters/comment_presenter.rb app/presenters/notifications_filter_presenter.rb app/mailers/event_mailer.rb app/mailers/admin_mailer.rb app/mailers/consistency_mailer.rb app/components/sign_up_component.rb app/components/download_repository_link_component.rb app/components/status_message_component.rb app/components/copy_to_clipboard_input_component.rb app/components/application_component.rb app/decorators/statistics/maintenance_statistic_decorator.rb app/decorators/staging/project_decorator.rb app/decorators/base_decorator.rb lib/xpath_engine.rb lib/api_error.rb lib/pretty_nested_errors/key_and_messages_parser.rb lib/tasks/rollout.rake lib/tasks/user_admin_rights.rb lib/obsapi/markdown_renderer.rb lib/rabbitmq_bus.rb lib/statistics_calculations.rb lib/haml-lint/custom_linters/set_pagetitle_in_view.rb lib/pretty_nested_errors.rb

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 32 of 108 files from the diff.
Other files ignored by Codecov

@@ -1,5 +1,6 @@
Loading
1 1
class WorkflowFiltersValidator < ActiveModel::Validator
2 2
  def validate(record)
3 +
    @workflow = record
3 4
    @workflow_instructions = record.workflow_instructions
4 5
5 6
    valid_filters?
@@ -11,12 +12,15 @@
Loading
11 12
    # Filters aren't mandatory in a workflow
12 13
    return unless @workflow_instructions.key?(:filters)
13 14
14 -
    raise Workflow::Errors::UnsupportedWorkflowFilters, "Unsupported filters: #{unsupported_filters.keys.to_sentence}" if unsupported_filters.present?
15 +
    if unsupported_filters.present?
16 +
      @workflow.errors.add(:base,
17 +
                           "Unsupported filters: #{unsupported_filters.keys.to_sentence}")
18 +
    end
15 19
16 20
    return unless unsupported_filter_types?
17 21
18 -
    raise Workflow::Errors::UnsupportedWorkflowFilterTypes,
19 -
          "Filters #{unsupported_filter_types.to_sentence} have unsupported keys. #{Workflow::SUPPORTED_FILTER_TYPES.to_sentence} are the only supported keys."
22 +
    @workflow.errors.add(:base, "Filters #{unsupported_filter_types.to_sentence} have unsupported keys, " \
23 +
                                "#{Workflow::SUPPORTED_FILTER_TYPES.map { |key| "'#{key}'" }.to_sentence} are the only supported keys")
20 24
  end
21 25
22 26
  def unsupported_filters

@@ -504,9 +504,8 @@
Loading
504 504
  end
505 505
506 506
  def trigger_rebuild
507 -
    rebuild_trigger = PackageControllerService::RebuildTrigger.new(package: @package, project: @project,
508 -
                                                                   repository: params[:repository],
509 -
                                                                   arch: params[:arch])
507 +
    rebuild_trigger = PackageControllerService::RebuildTrigger.new(package_object: @package, package_name_with_multibuild_suffix: params[:package],
508 +
                                                                   project: @project, repository: params[:repository], arch: params[:arch])
510 509
    authorize rebuild_trigger.policy_object, :update?
511 510
512 511
    if rebuild_trigger.rebuild?

@@ -1,10 +1,8 @@
Loading
1 -
class SCMStatusReporter
2 -
  attr_accessor :event_payload, :event_subscription_payload, :scm_token, :state
1 +
class SCMStatusReporter < SCMExceptionHandler
2 +
  attr_accessor :state
3 3
4 4
  def initialize(event_payload, event_subscription_payload, scm_token, event_type = nil)
5 -
    @event_payload = event_payload.deep_symbolize_keys
6 -
    @event_subscription_payload = event_subscription_payload.deep_symbolize_keys
7 -
    @scm_token = scm_token
5 +
    super(event_payload, event_subscription_payload, scm_token)
8 6
9 7
    @state = event_type.nil? ? 'pending' : scm_final_state(event_type)
10 8
  end
@@ -26,6 +24,8 @@
Loading
26 24
                                         @state,
27 25
                                         status_options)
28 26
    end
27 +
  rescue Octokit::Error, Octokit::InvalidRepository, Gitlab::Error::Error => e
28 +
    rescue_with_handler(e) || raise(e)
29 29
  end
30 30
31 31
  private

@@ -0,0 +1,52 @@
Loading
1 +
class Webui::Users::TokenTriggersController < Webui::WebuiController
2 +
  include Pundit
3 +
  include Triggerable
4 +
5 +
  before_action :set_token
6 +
  before_action :set_project, except: [:show]
7 +
  before_action :set_package, except: [:show]
8 +
  before_action :set_object_to_authorize, except: [:show]
9 +
  # set_multibuild_flavor needs to run after the set_object_to_authorize callback
10 +
  append_before_action :set_multibuild_flavor, except: [:show]
11 +
12 +
  rescue_from 'Project::Errors::UnknownObjectError' do |exception|
13 +
    flash[:error] = "#{exception.message}"
14 +
    redirect_to tokens_url
15 +
  end
16 +
17 +
  rescue_from 'Package::Errors::UnknownObjectError' do |exception|
18 +
    flash[:error] = "#{exception.message}"
19 +
    redirect_to tokens_url
20 +
  end
21 +
22 +
  def show
23 +
    authorize @token, :show?
24 +
  end
25 +
26 +
  def update
27 +
    authorize @token, :webui_trigger?
28 +
29 +
    opts = { project: @project, package: @package, repository: params[:repository], arch: params[:arch] }
30 +
    opts[:multibuild_flavor] = @multibuild_container if @multibuild_container.present?
31 +
32 +
    begin
33 +
      @token.call(opts)
34 +
      flash[:success] = "Token with id #{@token.id} successfully triggered!"
35 +
    rescue Token::Errors::NoReleaseTargetFound, Project::Errors::WritePermissionError => e
36 +
      flash[:error] = "Failed to trigger token: #{e.message}"
37 +
    rescue Backend::NotFoundError => e
38 +
      flash[:error] = "Failed to trigger token: #{e.summary}"
39 +
    end
40 +
41 +
    redirect_to tokens_url
42 +
  end
43 +
44 +
  private
45 +
46 +
  def set_token
47 +
    @token = Token.find(params[:id])
48 +
  rescue ActiveRecord::RecordNotFound => e
49 +
    flash[:error] = e.message
50 +
    redirect_to tokens_url
51 +
  end
52 +
end

@@ -1,6 +1,6 @@
Loading
1 1
class ScmWebhookEventValidator < ActiveModel::Validator
2 -
  ALLOWED_GITHUB_EVENTS = ['pull_request'].freeze
3 -
  ALLOWED_GITLAB_EVENTS = ['Merge Request Hook'].freeze
2 +
  ALLOWED_GITHUB_EVENTS = ['pull_request', 'push'].freeze
3 +
  ALLOWED_GITLAB_EVENTS = ['Merge Request Hook', 'Push Hook'].freeze
4 4
5 5
  ALLOWED_PULL_REQUEST_ACTIONS = ['closed', 'opened', 'reopened', 'synchronize'].freeze
6 6
  ALLOWED_MERGE_REQUEST_ACTIONS = ['close', 'merge', 'open', 'reopen', 'update'].freeze
@@ -25,6 +25,8 @@
Loading
25 25
      return true if ALLOWED_PULL_REQUEST_ACTIONS.include?(@record.payload[:action])
26 26
27 27
      @record.errors.add(:base, 'Pull request action not supported.')
28 +
    when 'push'
29 +
      valid_push_event?
28 30
    else
29 31
      true
30 32
    end
@@ -39,8 +41,16 @@
Loading
39 41
      return true if ALLOWED_MERGE_REQUEST_ACTIONS.include?(@record.payload[:action])
40 42
41 43
      @record.errors.add(:base, 'Merge request action not supported.')
44 +
    when 'Push Hook'
45 +
      valid_push_event?
42 46
    else
43 47
      true
44 48
    end
45 49
  end
50 +
51 +
  def valid_push_event?
52 +
    return true if @record.payload.fetch(:ref, '').start_with?('refs/heads/')
53 +
54 +
    @record.errors.add(:base, 'Push event supported only for branches.')
55 +
  end
46 56
end

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Learn more Showing 7 files with coverage changes found.

Changes in src/api/app/policies/token/rebuild_policy.rb
-1
+1
Loading file...
New file src/api/app/services/scm_exception_handler.rb
New
Loading file...
New file src/api/app/controllers/webui/users/token_triggers_controller.rb
New
Loading file...
New file src/api/app/controllers/concerns/triggerable.rb
New
Loading file...
New file src/api/app/components/copy_to_clipboard_input_component.rb
New
Loading file...
New file src/api/app/components/sign_up_component.rb
New
Loading file...
Changes in src/api/app/models/event/build_fail.rb
-2
+2
Loading file...

73 Commits

Hiding 1 contexual commits
+1
-1
-2
-2
+6
-6
+2
+2
Hiding 2 contexual commits
-2
-8
+6
Hiding 2 contexual commits
+8
+7
+1
-12
-6
-6
+1 Files
+10
+10
+5
+11
-6
Hiding 2 contexual commits
-2
-10
+8
Hiding 1 contexual commits
+5
+12
-7
Hiding 3 contexual commits
-5
-5
+2 Files
+58
+37
+21
Hiding 3 contexual commits
-2 Files
-53
-38
-15
-1
+1
+1
-1
Hiding 1 contexual commits
-1
+1
+7
-7
-7
+7
+1
-1
Hiding 1 contexual commits
+26
+20
+6
+1 Files
+14
+9
+5
-26
-21
-5
Hiding 2 contexual commits
+1 Files
+60
+56
+4
Hiding 1 contexual commits
-1 Files
-34
-34
-1
+1
+1 Files
+13
+9
+4
+7
-7
-1
+1
Hiding 3 contexual commits
-10
+10
+5
-5
+2 Files
+38
+34
+4
Hiding 1 contexual commits
+1
+1