Skip to content

Conversation

@erezrokah
Copy link
Member

Summary

We were closing the metrics file before the last print was done, so the last values where not printed.
This fixes it. Follow up to #18498

@erezrokah erezrokah requested review from a team and marianogappa and removed request for a team July 8, 2024 18:04
@cq-bot cq-bot added the area/cli label Jul 8, 2024
clientId := metric.Attributes["sync.client.id"].(string)

tableLock.Lock()
defer tableLock.Unlock()
Copy link
Member Author

Choose a reason for hiding this comment

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

This ensures renderTable is handled only after we finished dealing with the latest batch

@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Jul 9, 2024
@kodiakhq kodiakhq bot merged commit efb8119 into cloudquery:main Jul 9, 2024
kodiakhq bot pushed a commit that referenced this pull request Jul 9, 2024
🤖 I have created a release *beep* *boop*
---


## [5.25.0](cli-v5.24.0...cli-v5.25.0) (2024-07-09)


### Features

* Add support for plugin UI uploads ([#18447](#18447)) ([54b829e](54b829e))
* Unhide `--tables-metrics-location` flag, add duration to table ([#18498](#18498)) ([83948b5](83948b5))


### Bug Fixes

* Attempt mitigation of race in tests. ([#18446](#18446)) ([f9774c1](f9774c1))
* **deps:** Update golang.org/x/exp digest to 7f521ea ([#18428](#18428)) ([5d18290](5d18290))
* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.12.0 ([#18448](#18448)) ([a5850e1](a5850e1))
* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.12.1 ([#18478](#18478)) ([f58c2b7](f58c2b7))
* **deps:** Update module github.com/cloudquery/codegen to v0.3.17 ([#18491](#18491)) ([b43fd16](b43fd16))
* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.20.3 ([#18495](#18495)) ([86fac37](86fac37))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.49.1 ([#18497](#18497)) ([3416eb7](3416eb7))
* **deps:** Update module github.com/docker/docker to v26.1.4+incompatible ([#18435](#18435)) ([4bbaece](4bbaece))
* **deps:** Update module github.com/getsentry/sentry-go to v0.28.1 ([#18436](#18436)) ([bb88a05](bb88a05))
* **deps:** Update module github.com/rs/cors to v1.11.0 [SECURITY] ([#18482](#18482)) ([2ab40a3](2ab40a3))
* **deps:** Update module github.com/schollz/progressbar/v3 to v3.14.4 ([#18437](#18437)) ([9c089f5](9c089f5))
* **deps:** Update module google.golang.org/grpc to v1.65.0 ([#18488](#18488)) ([4d6343d](4d6343d))
* Don't close metrics file before last print ([#18499](#18499)) ([efb8119](efb8119))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants