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

O11Y-2859: Disable code coverage comments on pull requests #108

Merged
merged 5 commits into from
May 3, 2023

Conversation

dustinlessard-wf
Copy link
Contributor

@dustinlessard-wf dustinlessard-wf commented Apr 18, 2023

Which problem is this PR solving?

The CI for this repo depends on the Github token when posting code coverage info to the pull request. When 3rd parties propose changes, the CI fails because the Github token is not available to those 3rd parties.

Fixes # (issue)

Short description of the change

  • Disabled codecoverage commenting on the pr (we can revisit later, once we have identified a permanent solution)

How Has This Been Tested?

The CI on this pr can confirm these changes will not disrupt the CI workflow.

@aviary2-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

@semveraudit-wf
Copy link

semveraudit-wf commented Apr 18, 2023

Public API Changes

No changes to the public API found for commit 3a5f4f5

Showing results for 3a5f4f5

Powered by semver-audit-service. Please report any problems by filing an issue.
Reported by the dart semver audit client 2.2.2
Browse public API.

Last edited UTC May 02 at 20:52:49

@github-actions
Copy link

Coverage after merging O11Y-2859 into master will be

83.46%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
lib/src/api
   open_telemetry.dart74.07%100%100%74.07%16, 18, 20–22, 30, 32
lib/src/api/common
   attribute.dart100%100%100%100%
lib/src/api/context
   context.dart100%100%100%100%
lib/src/api/metrics/noop
   noop_meter_provider.dart100%100%100%100%
   noop_counter.dart100%100%100%100%
   noop_meter.dart100%100%100%100%
lib/src/api/trace
   nonrecording_span.dart25%100%100%25%24, 27, 30, 33, 36, 39, 42, 48, 54, 57–58, 60, 63, 66, 70
   span_id.dart100%100%100%100%
   span_link.dart100%100%100%100%
   trace_id.dart100%100%100%100%
lib/src/sdk
   instrumentation_library.dart100%100%100%100%
lib/src/sdk/common
   attributes.dart100%100%100%100%
   instrumentation_scope.dart77.78%100%100%77.78%27–28
lib/src/sdk/metrics
   counter.dart0%100%100%0%8
   meter_provider.dart78.57%100%100%78.57%34–36
   meter.dart100%100%100%100%
lib/src/sdk/metrics/state
   meter_provider_shared_state.dart100%100%100%100%
   meter_shared_state.dart100%100%100%100%
lib/src/sdk/resource
   resource.dart100%100%100%100%
lib/src/sdk/time_providers
   datetime_time_provider.dart100%100%100%100%
lib/src/sdk/trace
   id_generator.dart100%100%100%100%
   span_context.dart100%100%100%100%
   span_limits.dart41.18%100%100%41.18%24–26, 31–33, 38–40, 45–47, 52–54, 63–65, 74, 80
   span.dart93.18%100%100%93.18%108, 119, 168, 172, 33–34
   trace_state.dart100%100%100%100%
   tracer_provider.dart100%100%100%100%
   tracer.dart100%100%100%100%
lib/src/sdk/trace/exporters
   collector_exporter.dart66.06%100%100%66.06%108, 111, 127, 130, 159–163, 165–170, 172–177, 179–184, 186–191, 193–194, 198, 201
   console_exporter.dart94.74%100%100%94.74%41
lib/src/sdk/trace/propagation
   w3c_trace_context_propagator.dart89.29%100%100%89.29%49, 52, 60
lib/src/sdk/trace/sampling
   always_off_sampler.dart75%100%100%75%11
   always_on_sampler.dart75%100%100%75%11
   parent_based_sampler.dart88.89%100%100%88.89%29–30
   sampling_result.dart100%100%100%100%
lib/src/sdk/trace/span_processors
   batch_processor.dart82.93%100%100%82.93%55, 69–70, 85–88
   simple_processor.dart90.91%100%100%90.91%29

@@ -8,6 +8,9 @@ on:
pull_request:
branches:
- '*'
concurrency:
group: opentelemetry-coverage-${{ github.ref }}-1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This ensures that when pushing commits during a short period, only the last commit pushed receives a full CI run. Prior CI runs will be cancelled.

@dustinlessard-wf dustinlessard-wf marked this pull request as ready for review May 2, 2023 20:55
@dustinlessard-wf dustinlessard-wf changed the title O11 y 2859 O11Y-2859: Disable code coverage comments on pull requests May 2, 2023
Comment on lines -19 to -25
strategy:
matrix:
# Don't run on newer SDKs until we're able to get on analyzer 1.x,
# since our current analyzer version range results in build failures
# when analysis hits the `<<<` operator.
# sdk: [ 2.13.4, stable, dev ]
sdk: [ 2.13.4 ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Note to selves, we should get back to the point where we can run CI on 2.18 as well as the latest 2.x and eventually 3.0

@dustinlessard-wf
Copy link
Contributor Author

QA +1
@Workiva/release-management-p

Copy link

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

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

+1 from RM

@rmconsole2-wf rmconsole2-wf merged commit 71af8c9 into master May 3, 2023
@rmconsole2-wf rmconsole2-wf deleted the O11Y-2859 branch May 3, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants