)]}'
{
  "commit": "7fe998109bda8cdd5cb5ba4a0e02c6c83cb0566d",
  "tree": "1e066fc906575b70edb00dd5bd323343ef58dda7",
  "parents": [
    "71c3c40c269a50303247855319d1d3a5d30f6773"
  ],
  "author": {
    "name": "Ghanshyam Mann",
    "email": "gmann@ghanshyammann.com",
    "time": "Thu Jan 26 22:28:07 2023 -0600"
  },
  "committer": {
    "name": "Ghanshyam",
    "email": "gmann@ghanshyammann.com",
    "time": "Fri Jan 27 04:37:07 2023 +0000"
  },
  "message": "Fix setting the tempest virtual env constraints env var\n\nDevstack set the env var TOX_CONSTRAINTS_FILE/UPPER_CONSTRAINTS_FILE\nwhich are used to use the constraints during Tempest virtual env installation.\nThose env var are set to non-master constraint when we need to use non-master\nconstraints but when we need to use the master constraints we do not set/reset\nthem point to master constraints. This create the issue when running the grenade\njob where we run Tempest on the old devstack as well as in the new devstack.\nWhen tempest is installed on old devstack then old tempest is used and it sets\nthese env var to stable/\u003cbranch\u003e constraints (this is the case when old devstack\n(the stable branch is in EM phase) uses the old tempest not the master tempest),\nall good till now. But the problem comes when in the same grenade script run\nupgrade-tempest install the master tempest (when new devstack branches are in\nthe \u0027supported\u0027 phase and use the master tempest means) and are supposed to use\nthe master constraints. But the TOX_CONSTRAINTS_FILE/UPPER_CONSTRAINTS_FILE env\nvar set by old tempest is used by the tempest and due to a mismatch in constraints\nit fails.\n\nThis happened when we tried to pin the stable/wallaby with Tempest 29.0.0\n- https://review.opendev.org/c/openstack/devstack/+/871782\n\nand table/xena grenade job failed (stable/xena use master tempest and supposed\nto use master constraints)\n- https://zuul.opendev.org/t/openstack/build/fb7b2a8b562c42bab4c741819f5e9732/log/controller/logs/grenade.sh_log.txt#16641\n\nWe should set/reset those constraint env var to master constraints if configuration\ntell devstack to use the master constraints.\n\n[1] https://github.com/openstack/devstack/blob/71c3c40c269a50303247855319d1d3a5d30f6773/lib/tempest#L124\n\nCloses-Bug: #2003993\nChange-Id: I5e938139b47f443a4c358415d0d4dcf6549cd085\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "44a9b6f29fdb8226d27aac9df16dd741d2d89ccd",
      "old_mode": 33188,
      "old_path": "lib/tempest",
      "new_id": "c3d3e9ac30d0fd800b504167e62774664f2edd84",
      "new_mode": 33188,
      "new_path": "lib/tempest"
    }
  ]
}
