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

Log pdflatex output on error #667

Merged
merged 4 commits into from
Apr 5, 2023
Merged

Log pdflatex output on error #667

merged 4 commits into from
Apr 5, 2023

Conversation

praseodym
Copy link
Contributor

@praseodym praseodym commented Apr 5, 2023

Changes

Log stdout and stderr when pdflatex exits with a non-zero return code.

Issue ticket number and link

n/a

Proof

[2023-04-05 09:57:24 +0000] [8] [INFO] [keiko] [keiko.keiko] pdflatex [run=0] [report_id=8d5fb95b] [template=bevindingenrapport] [command=pdflatex -synctex=1 -interaction=nonstopmode 8d5fb95b.keiko.tex]
[2023-04-05 09:57:24 +0000] [8] [ERROR] [keiko] [keiko.keiko] This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
[..]
Exception: ('Error in pdflatex run %d', 0)

Extra instructions for others

This section may be skipped or omitted. Uncomment and answer the below questions if relevant.

Checklist for author(s):

  • All the commits in this PR are properly PGP-signed and verified;
  • This PR comes from a feature or hotfix branch, in line with our git branching strategy;
  • This PR is "bite-sized" and only focuses on a single issue, problem, or feature;
  • I am not reinventing the wheel: there is no high-quality library that already has this feature;
  • I have changed the example .env files if I added, removed, or changed any config options, and I have informed others that they need to modify their .env files if required;
  • I have performed a self-review of my own code;
  • I have commented my code, particularly in hard-to-understand areas;
  • I have made corresponding changes to the documentation, if necessary;
  • I have written unit, integration, and end-to-end tests for the change that I made;

If a non-trivial PR:

  • This PR is part of a milestone and has appropriate labels;
  • This PR is properly linked to the project board (either directly or via an issue);
  • I have added screenshots or some other proof that my code does what it is supposed to do;
## Checklist for functional reviewer(s):
- [ ] If a non-trivial PR: This PR is properly linked to an issue on the project board;
- [ ] I have checked out this branch, and successfully ran `make kat`;
- [ ] I have ran `make test-rf` and all end-to-end Robot Framework tests pass;
- [ ] I confirmed that the PR's advertised `feature` or `hotfix` works as intended;
- [ ] I confirmed that there are no unintended functional regressions in this branch;

### What works:
* _bullet point + screenshot (if useful) per tested functionality_

### What doesn't work:
* _bullet point + screenshot (if useful) per tested functionality_

### Bug or feature?:
* _bullet point + screenshot (if useful) if it is unclear whether something is a bug or an intended feature._
## Checklist for code reviewer(s):
- [ ] The code passes the CI tests and linters;
- [ ] The code does not bypass authentication or security mechanisms;
- [ ] The code does not introduce any dependency on a library that has not been properly vetted;
- [ ] The code does not violate Model-View-Template and our other architectural principles;
- [ ] The code contains docstrings, comments, and documentation where needed;
- [ ] The code prioritizes readability over performance where appropriate;
- [ ] The code conforms to our agreed coding standards.

@praseodym praseodym added keiko Issues related to keiko backport1.7 labels Apr 5, 2023
@praseodym praseodym added this to the OpenKAT v1.9 milestone Apr 5, 2023
@praseodym praseodym requested a review from a team as a code owner April 5, 2023 10:02
Log stdout and stderr when pdflatex exits with a non-zero return code.
Copy link
Contributor

@ammar92 ammar92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Just minimal remarks to improve it even more (subjective)

keiko/keiko/keiko.py Outdated Show resolved Hide resolved
keiko/keiko/keiko.py Show resolved Hide resolved
keiko/keiko/keiko.py Outdated Show resolved Hide resolved
keiko/keiko/keiko.py Outdated Show resolved Hide resolved
@dekkers dekkers merged commit f55bb42 into main Apr 5, 2023
@dekkers dekkers deleted the fix/keiko-pdflatex-logging branch April 5, 2023 11:52
@praseodym
Copy link
Contributor Author

Backport to 1.7 in #669

jpbruinsslot added a commit that referenced this pull request Apr 11, 2023
* main: (41 commits)
  Bump pre-commit from 3.2.1 to 3.2.2 (#693)
  Add new xtdb-http-multinode version to 1.7 release notes (#692)
  Fix pdflatex crash when there are underscores (#690)
  fix crisis room when no description (#686)
  Appropriate min_scan_level for bits (#684)
  Handle errors from Octopoes connector (#647)
  Translate Dutch images in docs to English (#128)
  Don't set KAT_VERSION by default in .env-dist (#629)
  Feature/no bits without clearence (#645)
  Add missing migration and unit test for missing migrations (#677)
  Use `unless-stopped` Docker restart policy (#683)
  Update to xtdb-http-multinode v1.0.4 (#681)
  Remove unused SCHEDULER_DSP_INTERVAL and SCHEDULER_DSP_BROKER_URL env vars (#633)
  the latest version of nuclei updated the json-lines param (#664)
  Add MutedFinding OOI and filter them in report (#670)
  Fix djLint T001, T002, T003, T032 (#672)
  Keiko output context data (#671)
  Log pdflatex output on error (#667)
  Add djLint for Rocky templates (#626)
  Fix Keiko report downloads on uWSGI (#657)
  ...
jpbruinsslot added a commit that referenced this pull request Apr 11, 2023
* main: (54 commits)
  Final djLint fixes (#701)
  Bump pre-commit from 3.2.1 to 3.2.2 (#693)
  Add new xtdb-http-multinode version to 1.7 release notes (#692)
  Fix pdflatex crash when there are underscores (#690)
  fix crisis room when no description (#686)
  Appropriate min_scan_level for bits (#684)
  Handle errors from Octopoes connector (#647)
  Translate Dutch images in docs to English (#128)
  Don't set KAT_VERSION by default in .env-dist (#629)
  Feature/no bits without clearence (#645)
  Add missing migration and unit test for missing migrations (#677)
  Use `unless-stopped` Docker restart policy (#683)
  Update to xtdb-http-multinode v1.0.4 (#681)
  Remove unused SCHEDULER_DSP_INTERVAL and SCHEDULER_DSP_BROKER_URL env vars (#633)
  the latest version of nuclei updated the json-lines param (#664)
  Add MutedFinding OOI and filter them in report (#670)
  Fix djLint T001, T002, T003, T032 (#672)
  Keiko output context data (#671)
  Log pdflatex output on error (#667)
  Add djLint for Rocky templates (#626)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keiko Issues related to keiko
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants