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

./moosedocs.py build no longer works with several NCRC applications #28633

Closed
milljm opened this issue Sep 16, 2024 · 1 comment · Fixed by #28647
Closed

./moosedocs.py build no longer works with several NCRC applications #28633

milljm opened this issue Sep 16, 2024 · 1 comment · Fixed by #28647
Assignees
Labels
C: Conda C: Framework C: MOOSE Scripts P: normal A defect affecting operation with a low possibility of significantly affects. T: defect An anomaly, which is anything that deviates from expectations.

Comments

@milljm
Copy link
Member

milljm commented Sep 16, 2024

Bug Description

After building an application (like Bison) using either Conda packages or moose-dev-mpich-x86_64:c4cabd5 container, attempting to build documentation results in an error:

$ ./moosedocs.py build
MooseDocs.build (MainProcess): Loading configuration file
Traceback (most recent call last):
  File "/data/milljm/projects/bison/doc/./moosedocs.py", line 48, in <module>
    sys.exit(main.run())
  File "/data/milljm/projects/bison/doc/../moose/python/MooseDocs/main.py", line 57, in run
    errno = build.main(options)
  File "/data/milljm/projects/bison/doc/../moose/python/MooseDocs/commands/build.py", line 205, in main
    translators, contents, configurations = common.load_configs(config_files, **kwargs)
  File "/data/milljm/projects/bison/doc/../moose/python/MooseDocs/common/load_config.py", line 114, in load_configs
    trans, config = load_config(file, **kwargs)
  File "/data/milljm/projects/bison/doc/../moose/python/MooseDocs/common/load_config.py", line 83, in load_config
    extensions = _yaml_load_extensions(config)
  File "/data/milljm/projects/bison/doc/../moose/python/MooseDocs/common/load_config.py", line 229, in _yaml_load_extensions
    return load_extensions(list(ext_configs.keys()), ext_configs)
  File "/data/milljm/projects/bison/doc/../moose/python/MooseDocs/common/load_config.py", line 172, in load_extensions
    obj = mod.make_extension(**ext_configs.get(name, dict()))
  File "/data/milljm/projects/bison/doc/../moose/python/MooseDocs/extensions/versioner.py", line 24, in make_extension
    return VersionerExtension(**kwargs)
  File "/data/milljm/projects/bison/doc/../moose/python/MooseDocs/extensions/versioner.py", line 34, in __init__
    self.version_meta = Versioner().version_meta()
  File "/data/milljm/projects/bison/doc/../moose/scripts/versioner.py", line 272, in version_meta
    packages = self.get_yamlcontents(commit)['packages']
  File "/data/milljm/projects/bison/doc/../moose/scripts/versioner.py", line 94, in get_yamlcontents
    yaml_contents = yaml.safe_load(self.git_file(yaml_file, commit))
  File "/data/milljm/projects/bison/doc/../moose/scripts/versioner.py", line 190, in git_file
    raise Exception(f'Failed to load {file} in {repo_dir} at {commit}')
Exception: Failed to load /data/milljm/projects/bison/moose/scripts/versioner.yaml in /data/milljm/projects/bison/doc/../moose at HEAD

Impact

Unable to produce NCRC Conda applications for the moment due to the inability to produce documentation.

[Optional] Diagnostics

No response

@milljm milljm added C: Framework C: MOOSE Scripts T: defect An anomaly, which is anything that deviates from expectations. P: normal A defect affecting operation with a low possibility of significantly affects. C: Conda labels Sep 16, 2024
@milljm milljm self-assigned this Sep 16, 2024
@GiudGiud
Copy link
Contributor

This could be tied to the FP merge

@milljm milljm changed the title make install no longer works with moose-dev Conda packages ./moosedocs build no longer works with several NCRC applications Sep 17, 2024
@milljm milljm changed the title ./moosedocs build no longer works with several NCRC applications ./moosedocs.py build no longer works with several NCRC applications Sep 17, 2024
milljm added a commit to milljm/moose that referenced this issue Sep 17, 2024
Turns out when operating as a submodule we ended up with strange paths
being interpreted when performing `git show HEAD:../moose/to/file`.
And git does not like leaving root repo area.

Instead, always operate using full absolute (real) paths to files, and
when it comes time to performing `git show`, convert these locations
to relative paths without leaving the root repo.

Closes idaholab#28633
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Conda C: Framework C: MOOSE Scripts P: normal A defect affecting operation with a low possibility of significantly affects. T: defect An anomaly, which is anything that deviates from expectations.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants