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

Enhance logging in EventWatcher #5443

Merged
merged 2 commits into from
Dec 23, 2024
Merged

Enhance logging in EventWatcher #5443

merged 2 commits into from
Dec 23, 2024

Conversation

t-kikuc
Copy link
Member

@t-kikuc t-kikuc commented Dec 23, 2024

What this PR does:

  1. Add logger.Error() before returning (cedc8f2)
  2. Add some git info in logger.Error(). (7dd40c7)

IMO, we should add a logger to git.Repo too.

Why we need it:

  • To make debugging EventWatcher easier
  • To follow the new logging convention

Which issue(s) this PR fixes:

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
…sh and commit failures

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Copy link
Contributor

@Warashi Warashi left a comment

Choose a reason for hiding this comment

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

👍🏻

Copy link

codecov bot commented Dec 23, 2024

Codecov Report

Attention: Patch coverage is 0% with 48 lines in your changes missing coverage. Please review.

Project coverage is 26.24%. Comparing base (bcdba1f) to head (7dd40c7).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
pkg/app/piped/eventwatcher/eventwatcher.go 0.00% 48 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5443      +/-   ##
==========================================
- Coverage   26.25%   26.24%   -0.01%     
==========================================
  Files         452      452              
  Lines       48860    48886      +26     
==========================================
+ Hits        12827    12831       +4     
- Misses      35008    35031      +23     
+ Partials     1025     1024       -1     

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

Copy link
Member

@ffjlabo ffjlabo left a comment

Choose a reason for hiding this comment

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

👍

@t-kikuc t-kikuc merged commit e00b429 into master Dec 23, 2024
16 of 18 checks passed
@t-kikuc t-kikuc deleted the log-eventwatcher-enhance branch December 23, 2024 07:46
@github-actions github-actions bot mentioned this pull request Jan 21, 2025
github-actions bot pushed a commit that referenced this pull request Jan 21, 2025
* Add logger.Error() before returning for detailed logs

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Enhance error logging in event watcher with additional context for push and commit failures

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

---------

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>
Warashi added a commit that referenced this pull request Jan 21, 2025
* [ECS] Support 5 missing fields in TaskDefinition (#5424)

* Add missing fields in RegisterTaskDef

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* remove two restrictions

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

---------

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

* [ECS] Enabled to configure/update `PropagateTags` and `EnableECSManagedTags` (#5425)

* Enable updating PropagateTags and specifying other than SERVICE

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Enable updating EnableECSManagedTags

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Remove default PropagateTags: unnecessary

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* support propagateTags other than SERVICE

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

---------

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

* Enhance logging in EventWatcher (#5443)

* Add logger.Error() before returning for detailed logs

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Enhance error logging in event watcher with additional context for push and commit failures

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

---------

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

* fixed to certainly store the startTime (#5461)

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

* Add default envs in ScriptRunStage: SR_TRIGGERED_COMMANDER, SR_IS_ROLLBACK (#5464)

* Add TriggeredCommandar

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* add isRollback

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* update docs

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix name->id

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix env name

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix: specify isRollback since deployment.Status is always Planned

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* fix typo

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

* Add case of `pipectl sync`

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>

---------

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

* Release v0.50.1 (#5498)

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

---------

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Co-authored-by: Tetsuya KIKUCHI <97105818+t-kikuc@users.noreply.github.com>
Co-authored-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants