Skip to content

Remove use of IKnobCollection in Tracing.actor.cpp#7442

Closed
sfc-gh-rjenkins wants to merge 4 commits into
apple:mainfrom
sfc-gh-rjenkins:remove_fdbclient_trace_unit_dep
Closed

Remove use of IKnobCollection in Tracing.actor.cpp#7442
sfc-gh-rjenkins wants to merge 4 commits into
apple:mainfrom
sfc-gh-rjenkins:remove_fdbclient_trace_unit_dep

Conversation

@sfc-gh-rjenkins

@sfc-gh-rjenkins sfc-gh-rjenkins commented Jun 23, 2022

Copy link
Copy Markdown
Collaborator

Add private Span& addAttribute(const StringRef& key, const StringRef&…
… value, bool tracingAttrsEnabled) to Span.

Add AccessAttrsUnitTest class and grant it friend access to private addAttribute Span method. This will allow
overriding of FLOW_KNOBS->TRACING_SPAN_ATTRIBUTES_ENABLED for enabling tracing attributes in unit tests, while preserving the public API and protect against users adding attributes when FLOW_KNOBS->TRACING_SPAN_ATTRIBUTES_ENABLED is set to false. Move test cases which need addAttributes access
into methods on AccessAttrsUnitTest class and utilize the private addAttribute method to verify span attributes
and MessagePack encoding.

Code-Reviewer Section

The general guidelines can be found here.

Please check each of the following things and check all boxes before accepting a PR.

  • The PR has a description, explaining both the problem and the solution.
  • The description mentions which forms of testing were done and the testing seems reasonable.
  • Every function/class/actor that was touched is reasonably well documented.

For Release-Branches

If this PR is made against a release-branch, please also check the following:

  • This change/bugfix is a cherry-pick from the next younger branch (younger release-branch or main if this is the youngest branch)
  • There is a good reason why this PR needs to go into a release branch and this reason is documented (either in the description above or in a linked GitHub issue)

to enable span attributes for unit testing message pack serialization.
@fdb-windows-ci

Copy link
Copy Markdown
Collaborator

Doxense CI Report for Windows 10

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr on Linux CentOS 7

  • Commit ID: fa6dfb1
  • Duration 0:29:50
  • Result: ❌ FAILED
  • Error: Error while executing command: ninja -v -C build_output -j ${NPROC} all packages strip_targets. Reason: exit status 1
  • Build Logs (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-cluster-tests on Linux CentOS 7

  • Commit ID: fa6dfb1
  • Duration 0:30:47
  • Result: ❌ FAILED
  • Error: Error while executing command: ninja -v -C build_output -j ${NPROC} all packages strip_targets. Reason: exit status 1
  • Build Logs (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos on macOS BigSur 11.5.2

  • Commit ID: fa6dfb1
  • Duration 0:41:17
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Logs (available for 30 days)

… value, bool tracingAttrsEnabled)

Add AccessAttrsUnitTest class to grant friend access to private addAttribute class allowing
overriding of FLOW_KNOB for enabled tracing attributes. Move test cases which add attributes
into methods on UnitTest class and utilize private addAttribute method to verify span attributes
and MessagePack encoding.
@fdb-windows-ci

Copy link
Copy Markdown
Collaborator

Doxense CI Report for Windows 10

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-cluster-tests on Linux CentOS 7

  • Commit ID: 3a7ffc7
  • Duration 0:30:19
  • Result: ❌ FAILED
  • Error: Error while executing command: ninja -v -C build_output -j ${NPROC} all packages strip_targets. Reason: exit status 1
  • Build Logs (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr on Linux CentOS 7

  • Commit ID: 3a7ffc7
  • Duration 0:30:56
  • Result: ❌ FAILED
  • Error: Error while executing command: ninja -v -C build_output -j ${NPROC} all packages strip_targets. Reason: exit status 1
  • Build Logs (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-cluster-tests on Linux CentOS 7

  • Commit ID: bad6848
  • Duration 0:29:38
  • Result: ❌ FAILED
  • Error: Error while executing command: ninja -v -C build_output -j ${NPROC} all packages strip_targets. Reason: exit status 1
  • Build Logs (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr on Linux CentOS 7

  • Commit ID: bad6848
  • Duration 0:29:42
  • Result: ❌ FAILED
  • Error: Error while executing command: ninja -v -C build_output -j ${NPROC} all packages strip_targets. Reason: exit status 1
  • Build Logs (available for 30 days)

@fdb-windows-ci

Copy link
Copy Markdown
Collaborator

Doxense CI Report for Windows 10

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr on Linux CentOS 7

  • Commit ID: c0a1db0
  • Duration 0:30:21
  • Result: ❌ FAILED
  • Error: Error while executing command: ninja -v -C build_output -j ${NPROC} all packages strip_targets. Reason: exit status 1
  • Build Logs (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-cluster-tests on Linux CentOS 7

  • Commit ID: c0a1db0
  • Duration 0:31:06
  • Result: ❌ FAILED
  • Error: Error while executing command: ninja -v -C build_output -j ${NPROC} all packages strip_targets. Reason: exit status 1
  • Build Logs (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos on macOS BigSur 11.5.2

  • Commit ID: c0a1db0
  • Duration 0:38:29
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Logs (available for 30 days)

@sfc-gh-rjenkins

Copy link
Copy Markdown
Collaborator Author

Closing in lieu of #7477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants