#36 Missing start/duration on bodhi.update.status
Merged 3 years ago by asaleh. Opened 3 years ago by asaleh.
fedora-ci/ asaleh/monitor-gating fix_and_improve  into  production

file modified
+1
@@ -6,6 +6,7 @@ 

  RUN dnf -y install python3-requests bodhi-client fedpkg fedpkg-stage \

      python3-toml git python3-koji python3-fedora-messaging cracklib-dicts \

      python3-psycopg2 \

+     postgresql \

      && dnf clean all && mkdir /.ssh && mkdir /.fedora

  

  COPY . /opt/code

@@ -104,6 +104,7 @@ 

              nevrs, _ = utils.bump(

                  folder, nevrs, conf, conf["name_multi_2"], version=version, target=side_tag_name

              )

+         start_dg = datetime.datetime.utcnow()

  

          # Chain-build the packages

          utils.chain_build_packages(
@@ -146,10 +147,10 @@ 

              topic=f"org.fedoraproject.{conf['_env']}.bodhi.update.status."

              "testing.koji-build-group.build.complete",

              bodhi_id=updateid,

+             duration=180,

+             start=start_dg,

          )

  

-         start_dg = datetime.datetime.utcnow()

- 

          nevr_names = []

          for name in nevrs:

              nevr = nevrs[name]

@@ -192,6 +192,8 @@ 

          else:

              nevr = args.nevr

  

+         start_dg = datetime.datetime.utcnow()

+ 

          # Retrieve or create the update

          updateid = utils.get_update_id(nevr, conf["bodhi"])

          if not args.update and not args.auto_update:
@@ -236,19 +238,17 @@ 

              name="CI (running)",

              topic=f"org.centos.{conf['_ci_env']}.ci.koji-build.test.running",

              nevr=nevr,

-             duration=120,

+             duration=180,

              start=start_dg,

          )

  

-         start_dg = datetime.datetime.utcnow()

- 

          # Check at the CI pipeline has completed

          utils.lookup_results_datagrepper(

              base_url=conf["datagrepper"],

              name="CI (complete)",

              topic=f"org.centos.{conf['_ci_env']}.ci.koji-build.test.error",

              nevr=nevr,

-             duration=60,

+             duration=180,

              start=start_dg,

          )

  
@@ -270,7 +270,7 @@ 

              name="resultsdb",

              topic=f"org.fedoraproject.{conf['_env']}.resultsdb.result.new",

              nevr=nevr,

-             duration=120,

+             duration=180,

              start=start_dg,

          )

  
@@ -280,7 +280,7 @@ 

              name="greenwave",

              topic=f"org.fedoraproject.{conf['_env']}.greenwave.decision.update",

              nevr=nevr,

-             duration=150,

+             duration=180,

              start=start_dg,

          )

  

The wait for 'bodhi.update.status' message wasn't initialized with proper start/duration.
Unifying everything on 180m wait.

Pull-Request has been merged by asaleh

3 years ago