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

DRAFT: Fix tests #1053

Closed
wants to merge 3 commits into from
Closed

DRAFT: Fix tests #1053

wants to merge 3 commits into from

Conversation

kwk
Copy link
Collaborator

@kwk kwk commented Jan 29, 2025

With this PR I'm going to try and fix all the errors that show up in our CI so that PRs can finally get back to relying on the status of CI reports.

kwk added 3 commits January 29, 2025 09:08
Fix this test:

```
_____________ [doctest] rebuilder.get_monthly_rebuild_regressions ______________
202     >>> b = {"name" : "b", "builds" : { "latest" : { "id" : 1, "state" : "succeeded", "submitted_on" : 1731457321 } , "latest_succeeded" : None } }
203     >>> c = {"name" : "c", "builds" : { "latest" : { "id" : 1, "state" : "succeeded", "submitted_on" : 1731457321 } , "latest_succeeded" : { "id" : 1 } } }
204     >>> d = {"name" : "d", "builds" : { "latest" : { "id" : 2, "state" : "canceled", "submitted_on" : 1731457321 } , "latest_succeeded" : { "id" : 1 } } }
205     >>> e = {"name" : "e", "builds" : { "latest" : { "id" : 2, "state" : "failed", "submitted_on" : 1 } , "latest_succeeded" : { "id" : 1 } } }
206     >>> f = {"name" : "f", "builds" : { "latest" : { "id" : 2, "state" : "failed", "submitted_on" : 1731457321 } , "latest_succeeded" : { "id" : 1 } } }
207     >>> copr_pkgs= [CoprPkg(p) for p in [ a, b, c, d, e, f ]]
208     >>> project_owner = "@fedora-llvm-team"
209     >>> project_name = "fedora41-clang-20"
210     >>> regressions = get_monthly_rebuild_regressions(project_owner, project_name, datetime.datetime.fromisoformat("2024-11-11"), copr_pkgs)
211     >>> print(regressions)
Expected:
    [{'name': 'f', 'url': 'https://copr.fedorainfracloud.org/coprs/@fedora-llvm-team/fedora41-clang-20/build/2/'}]
Got:
    [{'name': 'f', 'url': 'https://copr.fedorainfracloud.org/coprs/g/fedora-llvm-team/fedora41-clang-20/build/2/'}]
```

Notice the `@` and `g/` in the expected and actual output.
```
:param login_or_token: string deprecated, use auth=github.Auth.Login(...) or auth=github.Auth.Token(...) instead
```
This was referenced Jan 29, 2025
@kwk
Copy link
Collaborator Author

kwk commented Jan 29, 2025

Superseded by #1054

@kwk kwk closed this Jan 29, 2025
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.

1 participant