Skip to content

All PRs with dependency updates fail in CI #19136

Closed

Description

@rojkov

Title: All PRs with dependency updates fail in CI

Examples:
#19125, #19124, #19122

Logs:

github_release:  GitHubRelease(organization='census-instrumentation', project='opencensus-proto', version='v0.3.0', tagged=True)
Traceback (most recent call last):
  File "/source/tools/dependency/release_dates.py", line 288, in <module>
    verify_and_print_release_dates(
  File "/source/tools/dependency/release_dates.py", line 258, in verify_and_print_release_dates
    release_date = get_tagged_release_date(repo, metadata['version'], github_release)
  File "/source/tools/dependency/release_dates.py", line 215, in get_tagged_release_date
    release = repo.get_release(github_release.version)
  File "/source/build_tools/release_dates/venv/lib/python3.8/site-packages/github/Repository.py", line 3053, in get_release
    headers, data = self._requester.requestJsonAndCheck(
  File "/source/build_tools/release_dates/venv/lib/python3.8/site-packages/github/Requester.py", line 353, in requestJsonAndCheck
    return self.__check(
  File "/source/build_tools/release_dates/venv/lib/python3.8/site-packages/github/Requester.py", line 378, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.UnknownObjectException: 404 {"message": "Not Found", "documentation_url": "https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name"}

Activity

  1. rojkov commented on Nov 30, 2021

    @rojkov
    MemberAuthor
  2. self-assigned this
    on Nov 30, 2021
  3. phlax commented on Nov 30, 2021

    @phlax
    Member
  4. kfaseela commented on Nov 30, 2021

    @kfaseela
    Contributor

    #19111 should fix this. Waiting for review after incorporating comments.

  5. phlax commented on Nov 30, 2021

    @phlax
    Member

    i think it may already be fixed, or was in some way transient

    neither pre or post submit queues trigger this and running the offending script against current HEAD doesnt fail

    i retested one of the above PRs and it passed, ill kick the others now

    it would be nice to know what caused this - not sure if the fact that it always fails on the opencensus dep is relevant. It may be just that a release was temporarily deleted, and our error handling is not great.

    As the script is already a bit flaky, its hard to tell immediately if the change that i made yesterday has caused it, but mho is that its unrelated

    lets keep this open for now - we can close after a day or two if the issue has gone away

  6. rojkov commented on Nov 30, 2021

    @rojkov
    MemberAuthor

    It may well be a transient issue. The failing repo is unusual in that its releases page doesn't list the v0.3.0 release. But the tag is there.

    I've just re-run #19082 a couple of times with no success.

  7. phlax commented on Nov 30, 2021

    @phlax
    Member

    yep - it doesnt appear to have fixed #19097 either

    ill check out one of these branches and try to repro locally...

  8. kfaseela commented on Nov 30, 2021

    @kfaseela
    Contributor

    @phlax could you please check my review mentioned above, I was also hitting this issue intermittently, and hence made sure that get_release call is guarded properly in the PR what I was working on

  9. phlax commented on Nov 30, 2021

    @phlax
    Member

    made sure that get_release call is guarded properly in the PR what I was working on

    ha, k, thanks, will do

    i have managed to repro locally

  10. phlax commented on Nov 30, 2021

    @phlax
    Member

    cool, thanks @kfaseela it works perfectly

  11. added a commit that references this issue on Nov 30, 2021
    bf324a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions