Uploaded image for project: 'MicroShift'
  1. MicroShift
  2. USHIFT-3139

Release notes job: fails to get previous tag because new one doesn't exist yet

XMLWordPrintable

    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • uShift Sprint 253

      Found: https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-openshift-microshift-main-publish-release-notes/1787709065497939968

       

      From traceback we can see it's trying to get previous tag by running git describe 4.16.0-rc.0-202405062036.p0~1 but it doesn't work because the tag does not exist yet.

      Traceback (most recent call last):
        File "/go/src/github.com/openshift/microshift/scripts/release-notes/gen_ec_release_notes.py", line 610, in <module>
          main()
        File "/go/src/github.com/openshift/microshift/scripts/release-notes/gen_ec_release_notes.py", line 222, in main
          publish_release(new_release, not args.dry_run)
        File "/go/src/github.com/openshift/microshift/scripts/release-notes/gen_ec_release_notes.py", line 515, in publish_release
          previous_tag = get_previous_tag(release_name)
        File "/go/src/github.com/openshift/microshift/scripts/release-notes/gen_ec_release_notes.py", line 440, in get_previous_tag
          output = subprocess.check_output(["git", "describe", f'{release_name}~1', '--abbrev=0'])
        File "/usr/lib64/python3.9/subprocess.py", line 424, in check_output
          return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
        File "/usr/lib64/python3.9/subprocess.py", line 528, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command '['git', 'describe', '4.16.0-rc.0-202405062036.p0~1', '--abbrev=0']' returned non-zero exit status 128.
      {"component":"entrypoint","error":"wrapped process failed: exit status 1","file":"sigs.k8s.io/prow/pkg/entrypoint/run.go:84","func":"sigs.k8s.io/prow/pkg/entrypoint.Options.internalRun","level":"error","msg":"Error executing test process","severity":"error","time":"2024-05-07T05:06:06Z"}
      error: failed to execute wrapped command: exit status 1 
      

              pmatusza@redhat.com Patryk Matuszak
              pmatusza@redhat.com Patryk Matuszak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: