Skip to content

[Bug]: error in configuration file for buildtest tutorials #1508

@shahzebsiddiqui

Description

@shahzebsiddiqui

Bug Description

The buildtest configuration file is not valid it is missing the report and buildspec property in https://github.com/buildtesters/buildtest/blob/devel/buildtest/settings/spack_container.yml. We need to update the file accordingly. See https://github.com/buildtesters/buildtest/blob/devel/buildtest/settings/config.yml file on the property in particular see

buildspecs:
# whether to rebuild cache file automatically when running `buildtest buildspec find`
rebuild: False
# limit number of records to display when running `buildtest buildspec find`
count: 15
# format fields to display when running `buildtest buildspec find`, By default we will show name,description
format: "name,description"
# enable terse mode
terse: False
# specify list of directories to search for buildspecs when building cache
#root: [ $BUILDTEST_ROOT/examples, /tmp/buildspecs ]
report:
count: 25
#enable terse mode for report
terse: False
format: "name,id,state,runtime,returncode"
# show the latest for every test
latest: True
# show the oldest for every test
oldest: False

We should just use the same configuration options.

Once you have made the change let's validate the configuration file buildtest cg validate and push the changes.

Steps to reproduce the error

Get inside container as follows

docker run -it -v  $BUILDTEST_ROOT:/home/spack/buildtest ghcr.io/buildtesters/buildtest_spack:latest

Run these commands inside container

cd buildtest/
source scripts/spack_container/setup.sh
buildtest tutorial-examples

Version and HEAD commit

(buildtest) spack@7436ce0cb9a8:~/buildtest$ buildtest --version
buildtest version 1.4

Relevant log output

No response

Post question in Slack

  • I agree that I posted my question in slack before creating this issue

Is there an existing issue

  • I confirm there is no existing issue for this issue

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions