Skip to content

Commit

Permalink
log better
Browse files Browse the repository at this point in the history
  • Loading branch information
thegreyd committed Nov 7, 2024
1 parent 817595b commit 6b5b96b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyartcd/pyartcd/pipelines/build_microshift_bootc.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ async def _rebuild_needed():
# Example https://ocp-artifacts.hosts.prod.psi.rdu2.redhat.com/pub/RHOCP/plashets/4.18/microshift/microshift-el9/latest/plashet.yml
plashet_path = f"{major}.{minor}/{self.assembly}/{microshift_plashet_config['slug']}"
url = f"{ocp_artifacts_url}/{plashet_path}/latest/plashet.yml"
self._logger.info(f"Fetching {url} to get last brew event")
self._logger.info(f"Inspecting plashet if it has the right microshift rpm: {url}")
plashet_yaml = None
try:
res = requests.get(url)
Expand All @@ -184,6 +184,7 @@ async def _rebuild_needed():
if actual_nvr != expected_microshift_nvr:
self._logger.info(f"Found nvr {actual_nvr} in plashet.yml is different from expected {expected_microshift_nvr}. Plashet build is needed.")
return True
self._logger.info(f"Plashet has the expected microshift nvr {expected_microshift_nvr}")
return False

rebuild_needed = await _rebuild_needed() or self.force
Expand Down

0 comments on commit 6b5b96b

Please sign in to comment.