• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Recached

apolloconfig / agollo
76%

Build:
DEFAULT BRANCH: master
Repo Added 08 Jul 2021 04:14PM UTC
Token bFhUr6djbKOTSk9UPnLVGpeD2nA3tIKL5 regen
Build 111 Last
Files 33
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • add-close-method-to-stop-polling
  • bugfix/nonretry
  • chore/comment_cn
  • chore/format
  • chore/gotool
  • chore/license
  • chore/readme_cn
  • copilot/fix-343
  • dependabot/go_modules/develop/github.com/agiledragon/gomonkey/v2-2.12.0
  • dependabot/go_modules/develop/github.com/agiledragon/gomonkey/v2-2.13.0
  • dependabot/go_modules/develop/github.com/spf13/viper-1.8.1
  • develop
  • f-client-label
  • failfast-http-err-status
  • feat/log
  • feature-not-modified-log
  • feature/changeOrg
  • feature/fixGetSlice
  • feature/moveOrg
  • fix-internalip
  • fix-typo
  • fix/async_notify
  • fix/close_bug
  • fix/error-log
  • fix/fix_sync
  • fix/getconfig
  • fix/sync_supplement
  • hotfix/fixDoc
  • hotfix/fixGetBoolValue
  • log
  • master
  • must_connect
  • refactor/code-optimisation
  • refs/pull/284/merge
  • update/duration
  • versionUpdate
  • wh/repository_getYaml

02 Oct 2025 03:19AM UTC coverage: 75.654% (+0.04%) from 75.613%
18182348507

push

github

web-flow
Fix infinite loop when consecutive releases return 304 Not Modified responses (#344)

* Initial plan

* Initial analysis and plan for fixing agollo infinite loop issue

Co-authored-by: nobodyiam <837658+nobodyiam@users.noreply.github.com>

* Fix infinite loop issue when consecutive releases return 304 responses

Co-authored-by: nobodyiam <837658+nobodyiam@users.noreply.github.com>

* Refactor syncWithNamespaceAndDetectNotModified to properly wrap SyncWithNamespace

Co-authored-by: nobodyiam <837658+nobodyiam@users.noreply.github.com>

* Reduce scope of modifications by using simpler flag-based approach for 304 detection

Co-authored-by: nobodyiam <837658+nobodyiam@users.noreply.github.com>

* Implement cleaner error-based approach for async config only, maintaining backward compatibility

Co-authored-by: nobodyiam <837658+nobodyiam@users.noreply.github.com>

* Implement cleaner error-based approach suggested by @nobodyiam

- Changed SyncWithNamespace signature to return (*config.ApolloConfig, error)
- Updated all call sites to handle the new signature
- Removed lastCallWasNotModified flag approach in favor of standard Go error handling
- In async.go, use `apolloConfig != nil || err == nil` to detect successful responses including 304
- All tests pass, including the critical TestApolloConfig_SyncWith304NotModified test

This is a much cleaner approach that eliminates the flag-based mechanism while maintaining backward compatibility and achieving the same result.

Co-authored-by: nobodyiam <837658+nobodyiam@users.noreply.github.com>

* Address code review feedback: fix return value and remove unused JSON files

Co-authored-by: nobodyiam <837658+nobodyiam@users.noreply.github.com>

* Simplify notification ID update logic and remove unused JSON test files

Co-authored-by: nobodyiam <837658+nobodyiam@users.noreply.github.com>

* Remove accidentally committed JSON test files

Co-authored-by: nobodyiam <837658+nobodyiam@users.noreply.github.com>

* Remove JS... (continued)

11 of 11 new or added lines in 4 files covered. (100.0%)

1330 of 1758 relevant lines covered (75.65%)

3.62 hits per line

Relevant lines Covered
Build:
Build:
1758 RELEVANT LINES 1330 COVERED LINES
3.62 HITS PER LINE
Source Files on master
  • Tree
  • List 33
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
18182348507 master Fix infinite loop when consecutive releases return 304 Not Modified responses (#344) * Initial plan * Initial analysis and plan for fixing agollo infinite loop issue Co-authored-by: nobodyiam <837658+nobodyiam@users.noreply.github.com> * Fix i... push 02 Oct 2025 03:22AM UTC web-flow github
75.65
17515436925 copilot/fix-343 Merge e94b49a9f into 7b9b2c34d Pull #344 06 Sep 2025 02:08PM UTC web-flow github
75.65
17515436933 copilot/fix-343 Merge e94b49a9f into 7b9b2c34d Pull #344 06 Sep 2025 02:08PM UTC web-flow github
75.65
14386146182 chore/comment_cn Merge 81369c0ec into 7b9b2c34d Pull #338 10 Apr 2025 05:05PM UTC web-flow github
75.53
14385553527 chore/gotool Merge 4b38ef347 into cada562a0 Pull #337 10 Apr 2025 04:29PM UTC web-flow github
75.61
14312814009 chore/gotool Merge a5fbe998a into 7b9b2c34d Pull #337 07 Apr 2025 03:11PM UTC web-flow github
75.61
14280364520 master chore: add readme english version Signed-off-by: Young Xu <xuthus5@gmail.com> push 05 Apr 2025 09:02AM UTC nobodyiam github
75.61
14269483244 chore/readme_cn Merge 4ceec2841 into 41e433acb Pull #336 04 Apr 2025 04:09PM UTC web-flow github
75.61
14262227996 master chore: change source code license header Signed-off-by: Young Xu <xuthus5@gmail.com> push 04 Apr 2025 09:26AM UTC nobodyiam github
75.61
14246489621 chore/license Merge a370800ad into 27985a093 Pull #334 03 Apr 2025 03:14PM UTC web-flow github
75.61
See All Builds (76)
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc