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

[WIP] try switch to Zerolog #670

Merged
merged 23 commits into from
Aug 3, 2024
Merged

[WIP] try switch to Zerolog #670

merged 23 commits into from
Aug 3, 2024

Conversation

Slach
Copy link
Collaborator

@Slach Slach commented Jun 14, 2023

I don't understand how use zerolog for multiple go-routines ;(

look details rs/zerolog#555

fix #624

Slach added 12 commits June 12, 2023 12:08
… ConsoleWriter, increase some clickhouse timeout in test config, cause clickhouse-go/v2 got some timeouts during execution
… try to remove all local loggers with context upload.go
@Slach Slach added this to the 2.4.0 milestone Jun 14, 2023
@Slach Slach modified the milestones: 2.4.0, 2.5.0 Jul 31, 2023
Slach added 5 commits August 12, 2023 18:59
… gone away, need pull and resolve conflicts from master
…erolog

# Conflicts:
#	ReadMe.md
#	cmd/clickhouse-backup/main.go
#	go.mod
#	go.sum
#	pkg/backup/backuper.go
#	pkg/backup/create.go
#	pkg/backup/delete.go
#	pkg/backup/download.go
#	pkg/backup/list.go
#	pkg/backup/restore.go
#	pkg/backup/table_pattern.go
#	pkg/clickhouse/clickhouse.go
#	pkg/filesystemhelper/filesystemhelper.go
#	pkg/resumable/state.go
#	pkg/server/server.go
#	pkg/storage/gcs.go
#	pkg/storage/general.go
#	pkg/storage/s3.go
#	test/integration/config-custom-kopia.yml
#	test/integration/config-custom-restic.yml
#	test/integration/config-custom-rsync.yml
#	test/integration/config-database-mapping.yml
#	test/integration/config-s3-nodelete.yml
#	test/integration/config-s3.yml
#	test/integration/integration_test.go
@Slach Slach modified the milestones: 2.5.0, 2.6.0 Nov 22, 2023
@Slach Slach removed this from the 2.6.0 milestone Aug 3, 2024
@Slach Slach added this to the 2.5.21 milestone Aug 3, 2024
Slach added 2 commits August 3, 2024 19:18
…erolog,

apply suggestion from #670 (comment), test should pass

# Conflicts:
#	.github/workflows/build.yaml
#	.github/workflows/release.yaml
#	Dockerfile
#	Vagrantfile
#	cmd/clickhouse-backup/main.go
#	go.mod
#	go.sum
#	pkg/backup/backup_shard.go
#	pkg/backup/backuper.go
#	pkg/backup/create.go
#	pkg/backup/delete.go
#	pkg/backup/download.go
#	pkg/backup/list.go
#	pkg/backup/restore.go
#	pkg/backup/table_pattern.go
#	pkg/backup/upload.go
#	pkg/backup/watch.go
#	pkg/clickhouse/clickhouse.go
#	pkg/config/config.go
#	pkg/custom/delete_custom.go
#	pkg/custom/download_custom.go
#	pkg/custom/list_custom.go
#	pkg/custom/upload_custom.go
#	pkg/filesystemhelper/filesystemhelper.go
#	pkg/logfmt/logfmt_test.go
#	pkg/metadata/load.go
#	pkg/server/callback_test.go
#	pkg/server/server.go
#	pkg/status/status.go
#	pkg/storage/ftp.go
#	pkg/storage/gcs.go
#	pkg/storage/general.go
#	pkg/storage/object_disk/object_disk.go
#	pkg/storage/s3.go
#	pkg/storage/sftp.go
#	pkg/utils/utils.go
#	test/integration/install_delve.sh
#	test/integration/integration_test.go
@coveralls
Copy link

coveralls commented Aug 3, 2024

Pull Request Test Coverage Report for Build 10229022916

Details

  • 318 of 618 (51.46%) changed or added relevant lines in 36 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on zerolog at 68.055%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/backup/backup_shard.go 0 1 0.0%
pkg/storage/azblob.go 1 2 50.0%
cmd/clickhouse-backup/main.go 11 13 84.62%
pkg/backup/backuper.go 0 2 0.0%
pkg/custom/delete_custom.go 2 4 50.0%
pkg/storage/ftp.go 6 8 75.0%
pkg/storage/utils.go 0 2 0.0%
pkg/utils/utils.go 2 4 50.0%
pkg/backup/table_pattern.go 7 10 70.0%
pkg/custom/download_custom.go 4 7 57.14%
Totals Coverage Status
Change from base Build 10216722778: 68.1%
Covered Lines: 8939
Relevant Lines: 13135

💛 - Coveralls

@Slach Slach modified the milestones: 2.5.21, 2.5.22 Aug 3, 2024
@Slach Slach merged commit 418f8f4 into master Aug 3, 2024
20 checks passed
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.

Migrate from apexlog to zerolog, to avoid race-conditions
3 participants