Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a dump of build info #186

Merged
merged 5 commits into from
Mar 26, 2021
Merged

add a dump of build info #186

merged 5 commits into from
Mar 26, 2021

Conversation

aerorahul
Copy link
Contributor

@aerorahul aerorahul commented Mar 5, 2021

Partially closes #185
Adds a report of what is being built and what version and from where was the package obtained from.
The PR generates a list like this during build:

==========================
build_info()
build: esmf | version: 8_1_0_beta_snapshot_21
build: eckit | version: release-stable
build: ecbuild | version: release-stable
build: pio | version: 2.5.2
build: ncio | version: develop
build: json | version: 3.9.1
build: crtm | version: v2.3.0
build: atlas | version: release-stable
build: landsfcutil | version: v2.4.1
build: hdf5 | version: 1.10.6
build: w3emc | version: v2.7.3
build: grib_util | version: v1.2.2
build: cdo | version: 1.9.8
build: pybind11 | version: 2.5.0
build: wrf_io | version: v1.1.1-cmake-v5
build: nemsio | version: v2.5.2
build: bacio | version: v2.4.1
build: fckit | version: release-stable
build: nemsiogfs | version: v2.5.3
build: nccmp | version: 1.8.7.0
build: json_schema_validator | version: 2.1.0
build: netcdf | version:
build: jasper | version: 2.0.25
build: zlib | version: 1.2.11
build: ip2 | version: v1.1.2
build: eigen | version: 3.3.7
build: bufr | version: bufr_v11.4.0
build: upp | version: upp_v10.0.0
build: w3nco | version: v2.4.1
build: gfsio | version: v1.4.1
build: gsl_lite | version: 0.37.0
build: jpeg | version: 9.1.0
build: mpi | version: 3.3.1
build: boost | version: 1.68.0
build: szip | version: 2.1.1
build: wgrib2 | version: v2.0.8-cmake-v6
build: sigio | version: v2.3.2
build: prod_util | version: v1.2.2
build: g2c | version: v1.6.2
build: sp | version: v2.3.3
build: g2tmpl | version: v1.9.1
build: g2 | version: v3.4.1
build: ip | version: v3.3.3
build: png | version: 1.6.35
build: sfcio | version: v1.4.1
==========================

At the end of the build (or while in progress), the user can inspect a file in ${HPC_STACK_ROOT}/hpc-stack-contents.log
The contents of the file will show:

name_of_the_package version_of_the_package URL_from_where_the_package_was_obtained

e.g.

bufr bufr_v11.4.0 https://github.com/noaa-emc/nceplibs-bufr

@edwardhartnett
Copy link
Contributor

We need the source in this output as well. In fact, that is one of the most important things. Apparently not just packages are approved, but also sources. We have to get approved packages from approved sources, so we need to see all the packages and all the sources, so the list can be checked...

@aerorahul
Copy link
Contributor Author

Checked each time? Why?

@edwardhartnett
Copy link
Contributor

The list can be checked and then new packages will be checked as they are added, but we should still be able to print out a list of this information whenever someone asks for it.

It is a reasonable question to ask: what does hpc-stack install, exactly, and where does it come from? Let's make it easy to answer that question...

@aerorahul
Copy link
Contributor Author

Fair enough. I can add an echo statement during the build.

@aerorahul
Copy link
Contributor Author

The list can be checked and then new packages will be checked as they are added, but we should still be able to print out a list of this information whenever someone asks for it.

It is a reasonable question to ask: what does hpc-stack install, exactly, and where does it come from? Let's make it easy to answer that question...

fixed in b80db9f

@aerorahul aerorahul requested a review from kgerheiser March 5, 2021 18:45
@aerorahul aerorahul merged commit 3459bcc into develop Mar 26, 2021
@aerorahul aerorahul deleted the feature/build-info branch May 5, 2021 13:58
@aerorahul aerorahul restored the feature/build-info branch May 5, 2021 13:58
@aerorahul aerorahul deleted the feature/build-info branch October 29, 2021 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generate a text report on what hpc-stack installs, and where it comes from
3 participants