Skip to content

fix(test): check for GitHub token in TestAddonGetCircularDependencies - #8257

Merged
rfay merged 1 commit into
ddev:mainfrom
stasadev:20260328_stasadev_test_github
Mar 30, 2026
Merged

rfay merged 1 commit into
ddev:mainfrom
stasadev:20260328_stasadev_test_github

Conversation

@stasadev

Copy link
Copy Markdown
Member

The Issue

Test fails because of intermittent 403 from GitHub.

https://github.com/ddev/ddev/actions/runs/23680089387/job/68990449068#step:9:16094

=== RUN   TestAddonGetCircularDependencies
    addon-get_test.go:438: 
        	Error Trace:	/home/testuser/workspace/ddev/cmd/ddev/cmd/addon-get_test.go:438
        	Error:      	"\x1b[33mWarning: unable to get releases for test-dummy-self-referencing-addon: GET https://api.github.com/repos/ddev/test-dummy-self-referencing-addon/releases?per_page=100: 403 API rate limit exceeded for 135.232.216.48. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.) [rate reset in 44m01s]\nGitHub API Rate Limit: 0/60 remaining (resets in 44m1s)\nFalling back to cached add-on registry...\x1b[0m\n\x1b[31mUnable to get ddev/test-dummy-self-referencing-addon: add-on 'ddev/test-dummy-self-referencing-addon' not found in cached add-on registry\x1b[0m\n" does not contain "circular dependency detected"
        	Test:       	TestAddonGetCircularDependencies
        	Messages:   	Should mention circular dependency
--- FAIL: TestAddonGetCircularDependencies (1.43s)

How This PR Solves The Issue

Adds a check for GitHub token.

Manual Testing Instructions

Automated Testing Overview

Release/Deployment Notes

@stasadev
stasadev requested a review from a team as a code owner March 28, 2026 09:58
@github-actions

Copy link
Copy Markdown

@rfay rfay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! We've sure seen that one a few times.

@rfay
rfay merged commit 5356201 into ddev:main Mar 30, 2026
38 of 41 checks passed
@rfay
rfay deleted the 20260328_stasadev_test_github branch March 30, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants