New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 724334 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 1
Type: Bug

Blocked on:
issue 724533



Sign in to add a comment

Intermittent compile failures on win_chromium_rel_ng with jinja2.exceptions.TemplateNotFound: module.h.tmpl

Project Member Reported by kbr@chromium.org, May 19 2017

Issue description

Only a couple of examples (I was hit by this, which is why I started looking):

https://luci-milo.appspot.com/buildbot/tryserver.chromium.win/win_chromium_rel_ng/449137
https://luci-milo.appspot.com/buildbot/tryserver.chromium.win/win_chromium_rel_ng/449121

Log excerpt:

[287/16603] ACTION //mojo/public/interfaces/bindings:bindings__generator(//build/toolchain/nacl:irt_x64)
FAILED: irt_x64/gen/mojo/public/interfaces/bindings/pipe_control_messages.mojom.cc irt_x64/gen/mojo/public/interfaces/bindings/pipe_control_messages.mojom.h irt_x64/gen/mojo/public/interfaces/bindings/pipe_control_messages.mojom.srcjar irt_x64/gen/mojo/public/interfaces/bindings/pipe_control_messages.mojom.js 
E:/b/depot_tools/python276_bin/python.exe ../../mojo/public/tools/bindings/mojom_bindings_generator.py --use_bundled_pylibs generate ../../mojo/public/interfaces/bindings/pipe_control_messages.mojom -d ../../ -I ../../ -o E:/b/c/b/win/src/out/Release/irt_x64/gen --bytecode_path E:/b/c/b/win/src/out/Release/irt_x64/gen/mojo/public/tools/bindings -g c++,javascript,java --depfile irt_x64/gen/mojo/public/interfaces/bindings/bindings__generator_pipe_control_messages.d --depfile_target irt_x64/gen/mojo/public/interfaces/bindings/pipe_control_messages.mojom.cc --typemap irt_x64/gen/mojo/public/interfaces/bindings/bindings__type_mappings --export_attribute MOJO_CPP_BINDINGS_EXPORT --export_header mojo/public/cpp/bindings/bindings_export.h --use_once_callback
Traceback (most recent call last):
  File "../../mojo/public/tools/bindings/mojom_bindings_generator.py", line 376, in <module>
    sys.exit(main())
  File "../../mojo/public/tools/bindings/mojom_bindings_generator.py", line 372, in main
    return args.func(args, remaining_args)
  File "../../mojo/public/tools/bindings/mojom_bindings_generator.py", line 276, in _Generate
    processor.ProcessFile(args, remaining_args, generator_modules, filename)
  File "../../mojo/public/tools/bindings/mojom_bindings_generator.py", line 169, in ProcessFile
    RelativePath(filename, args.depth))
  File "../../mojo/public/tools/bindings/mojom_bindings_generator.py", line 216, in _GenerateModule
    generator.GenerateFiles(filtered_args)
  File "E:\b\c\b\win\src\mojo\public\tools\bindings\generators\mojom_cpp_generator.py", line 395, in GenerateFiles
    self.Write(self._GenerateModuleHeader(),
  File "E:\b\c\b\win\src\mojo\public\tools\bindings\pylib\mojom\generate\template_expander.py", line 50, in GeneratorInternal
    return ApplyTemplate(args[0], path_to_template, parameters, **kwargs)
  File "E:\b\c\b\win\src\mojo\public\tools\bindings\pylib\mojom\generate\template_expander.py", line 42, in ApplyTemplate
    template = jinja_env.get_template(path_to_template)
  File "E:\b\c\b\win\src\third_party\jinja2\environment.py", line 812, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "E:\b\c\b\win\src\third_party\jinja2\environment.py", line 786, in _load_template
    template = self.loader.load(self, name, globals)
  File "E:\b\c\b\win\src\third_party\jinja2\loaders.py", line 474, in load
    raise TemplateNotFound(name)
jinja2.exceptions.TemplateNotFound: module.h.tmpl


I don't know whether this was already found and fixed. My CL https://codereview.chromium.org/2894683003/ ran into this. I couldn't find any other recently bugs filed about this.

It looks like some of the Win builders might be running out of disk space. Some of the other failures of "compile (without patch)" on this tryserver look like corrupt .pdb files or similar. Not sure whether this could be caused by the same issue.

Marking P1 so this is at least looked at promptly, even if it's closed as WontFix.

 

Comment 1 by roc...@chromium.org, May 19 2017

Thanks for the report. This does seem like it's probably an infra issue given that the file in question is part of the repository, not a generated file or anything like that.

Comment 2 by yzshen@chromium.org, May 19 2017

I took a quick look and didn't find anything, either.

That being said, I did change the bindings generator recently. I will keep an eye on this issue.

Thanks!

Comment 3 by kbr@chromium.org, May 19 2017

Owner: yzshen@chromium.org
Status: Assigned (was: Untriaged)
Thanks. yzshen@, let me assign this to you. Please keep an eye on https://luci-milo.appspot.com/buildbot/tryserver.chromium.win/win_chromium_rel_ng/?limit=200 today and see what the frequency of this sort of failure is.

I'm filing a new bug about the corrupt .PDB file issue on this tryserver.

Comment 4 by kbr@chromium.org, May 19 2017

Blockedon: 724533

Comment 6 by yzshen@chromium.org, Jun 15 2017

Status: WontFix (was: Assigned)
The issue doesn't show up anymore

Sign in to add a comment