Skip to content

Commit 3042e90

Browse files
committed
Add debug message for expected build tag
1 parent 431f479 commit 3042e90

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

e2e/test_bootstrap_constraints.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fi
3838
$pass
3939

4040
EXPECTED_LINES="
41-
pbr==6.1.0
41+
pbr==6.1.1
4242
# ERROR
4343
stevedore==4.0.0
4444
stevedore==5.2.0
@@ -51,4 +51,4 @@ for pattern in $EXPECTED_LINES; do
5151
fi
5252
done
5353

54-
$pass
54+
$pass

src/fromager/bootstrapper.py

+6
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,12 @@ def _download_wheel_from_cache(
323323
wheelfile_name = pathlib.Path(urlparse(wheel_url).path)
324324
pbi = self.ctx.package_build_info(req)
325325
expected_build_tag = pbi.build_tag(resolved_version)
326+
# Log the expected build tag for debugging
327+
logger.info(f"{req.name}: has expected build tag {expected_build_tag}")
328+
# Get changelogs for debug info
329+
changelogs = pbi.get_changelog(resolved_version)
330+
logger.debug(f"{req.name} has change logs {changelogs}")
331+
326332
dist_name, dist_version, build_tag, _ = wheels.extract_info_from_wheel_file(
327333
req, wheelfile_name
328334
)

src/fromager/packagesettings.py

+4
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,10 @@ def build_tag(self, version: Version) -> BuildTag:
638638
suffix = ""
639639
return release, suffix
640640

641+
def get_changelog(self, version: Version) -> list[str]:
642+
pv = typing.cast(PackageVersion, version)
643+
return self._ps.changelog.get(pv, [])
644+
641645
def get_extra_environ(
642646
self,
643647
*,

0 commit comments

Comments
 (0)