Skip to content

Fix PostHog client provider param - #1329

Merged
Igor Rodionov (goruha) merged 1 commit into
DEV-2965/implement-atmos-telemetryfrom
codex/refactor-to-pass-config-by-pointer
Jun 23, 2025
Merged

Igor Rodionov (goruha) merged 1 commit into
DEV-2965/implement-atmos-telemetryfrom
codex/refactor-to-pass-config-by-pointer

Conversation

@osterman

Copy link
Copy Markdown
Member

Summary

  • pass posthog.Config by pointer in telemetry provider
  • update telemetry provider mocks and tests

Testing

  • make lint (fails: can't load config)
  • make testacc-cover (interrupted)
  • go test ./pkg/telemetry -run TestTelemetryConstructor (interrupted)

https://chatgpt.com/codex/tasks/task_b_685981d571308332a34661bcb824bb2f

@codecov

codecov Bot commented Jun 23, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 51.07%. Comparing base (86f788d) to head (c2be95a).
Report is 3 commits behind head on DEV-2965/implement-atmos-telemetry.

Files with missing lines Patch % Lines
pkg/telemetry/telemetry.go 33.33% 2 Missing ⚠️
Additional details and impacted files
@@                         Coverage Diff                         @@
##           DEV-2965/implement-atmos-telemetry    #1329   +/-   ##
===================================================================
  Coverage                               51.07%   51.07%           
===================================================================
  Files                                     243      243           
  Lines                                   26118    26118           
===================================================================
  Hits                                    13341    13341           
  Misses                                  11129    11129           
  Partials                                 1648     1648           
Flag Coverage Δ
unittests 51.07% <50.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@goruha
Igor Rodionov (goruha) merged commit e4afec5 into DEV-2965/implement-atmos-telemetry Jun 23, 2025
@goruha
Igor Rodionov (goruha) deleted the codex/refactor-to-pass-config-by-pointer branch June 23, 2025 17:07
Igor Rodionov (goruha) added a commit that referenced this pull request Jul 4, 2025
* Added initial implementation of telemetry

* [autofix.ci] apply automated fixes

* Fix lint

* Fix lint

* Fix lint

* Fix lint

* Fix lint

* Fix lint

* Fix test

* Fix acceptance tests

* Reduce tests verbosity

* Reduce tests verbosity

* Fix tests

* [autofix.ci] apply automated fixes

* Addded tests

* Added tests for utils

* [autofix.ci] apply automated fixes

* Address comments

* [autofix.ci] apply automated fixes

* Fix tests

* [autofix.ci] apply automated fixes

* DRY

* Split full PR to small PRs

* Split full PR to small PRs

* Split full PR to small PRs

* Fix tests

* Added support CI, docker and Atmos pro

* Reduce public package methods

* [autofix.ci] apply automated fixes

* Added interface to be generated by mock

* [autofix.ci] apply automated fixes

* Address coderabbit comments

* Address coderabbit comments

* [autofix.ci] apply automated fixes

* Fix tests

* Remove telemetry timeout schema

* Remove telemetry timeout schema

* Fix tests

* Fix cache dependent tests

* [autofix.ci] apply automated fixes

* Fix cache dependent tests

* Fix read-only dir testcase

* Fix read-only dir testcase

* Fix tests

* Fix tests

* Fix tests bypassing cache on error

* Fix tests bypassing cache on error

* Fix tests bypassing cache on error

* Added comment

* Added comment

* Added comment

* Address comments

* Address comments

* Address comments

* refactor telemetry provider to use pointer config (#1329)

* Added comments

* Revert disclouser message

* Added disclosure messages

* Added disclosure messages

* Fix accptance tests

* Delete test.log

* Move disclosure message to separate PR

* Move disclosure message to separate PR

* Move disclosure message to separate PR

* Move disclosure message to separate PR

* Regenerate README

* Renew token

* [autofix.ci] apply automated fixes

* Address comments

* Add telemetry to commands (#1360)

* Consolidate cmd telemetry

* [autofix.ci] apply automated fixes

* Update root.go

* Capture commands

* Telemetry - `atmos describe` cmd (#1342)

* Added telemetry to describe commands

* Update TestCLICommands_atmos_describe_config_imports.stderr.golden

* Update TestCLICommands_atmos_describe_configuration.stderr.golden

* Fix tests

* Update describe_component.go

* Update describe_config.go

* Update describe_stacks.go

* Update describe_workflows.go

* Fix tests

* Fix tests

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* Atmos site Telemetry page (#1335)

* Added telemetry site page

* Update website/docs/cli/telemetry.mdx

Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>

* Update website/docs/cli/telemetry.mdx

Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>

* Update website/docs/cli/telemetry.mdx

Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>

* Update website/docs/cli/telemetry.mdx

Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>

* Apply suggestions from code review

Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>

---------

Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>

* Added  telemetry disclosure messages (#1332)

* Added disclosure messages

* Added disclosure messages

* Cherry pick disclosure message

* Fix tests

* Fix tests

* Fix tests

* Improve disclosure messages

* Fix tests

* Fix tests

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stacked Stacked

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants