Skip to content

Continuous docker #4884

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

Closed
wants to merge 3 commits into from
Closed

Conversation

nmanthey
Copy link
Contributor

@nmanthey nmanthey commented Jul 8, 2019

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md. (added none)
  • The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/ (only change to tooling)
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message). (no tests included)
  • My PR is restricted to a single feature or bugfix.
  • White-space or formatting changes outside the feature-related changed lines are in commits of their own.

nmanthey added 3 commits July 8, 2019 20:34
This script allows to run commands inside a Docker container easily.
The current directory, as well as the home directory are mounted inside
the container, and the user id of the calling user is used, or, in case
sudo is specified, the root user will be chosen.

This way, file write operations inside the container can be visible to
the outside, which allows to debug more easily, e.g. build failures.
The existing solution to build Xen did not allow to easily retrieve
the build artifacts after the build, not files that allow to work
on bug fixes in the tool chain. The new approach builds Xen inside
the CBMC tree, so that all files are available afterwards.

Note, CBMC is also build within the container, so that the relevant
tools can be used inside the container as well.
We are interested in being able to compile the Linux kernel with
goto-gcc. To not be required to have all tools available on a local
machine, this change provides a docker setup that allows to build
the Linux kernel natively, as well as with goto-gcc via the
wrapper one-line-scan.

Similarly to the Xen tooling, the build files, as well as logs and
files for debugging are accessible after the run is complete.
@nmanthey
Copy link
Contributor Author

nmanthey commented Jul 8, 2019

The presented commits allow to compile Xen and the Linux kernel with goto-gcc, which, once fixed, could be useful to make sure changes to goto-gcc to not break these builds.

Given these commits, adding more projects should be straight-forward.

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

⚠️
This PR failed Diffblue compatibility checks (cbmc commit: a15047b).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/118337550
Status will be re-evaluated on next push.
Common spurious failures include: the cbmc commit has disappeared in the mean time (e.g. in a force-push); the author is not in the list of contributors (e.g. first-time contributors); compatibility was already broken by an earlier merge.

@codecov-io
Copy link

Codecov Report

Merging #4884 into develop will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #4884      +/-   ##
===========================================
- Coverage    69.09%   69.09%   -0.01%     
===========================================
  Files         1298     1298              
  Lines       106944   106947       +3     
===========================================
+ Hits         73895    73896       +1     
- Misses       33049    33051       +2
Impacted Files Coverage Δ
src/util/std_code.cpp 31.48% <0%> (-22.27%) ⬇️
src/util/std_code.h 91.09% <0%> (-0.09%) ⬇️
src/goto-programs/builtin_functions.cpp 45.48% <0%> (+0.03%) ⬆️
src/util/allocate_objects.cpp 90.74% <0%> (+0.54%) ⬆️
src/ansi-c/ansi_c_entry_point.cpp 88.15% <0%> (+0.74%) ⬆️
jbmc/src/java_bytecode/java_entry_point.cpp 88.63% <0%> (+0.95%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 836042f...a15047b. Read the comment docs.

@tautschnig
Copy link
Collaborator

I believe this has been superseded by #5508, thus closing. @nmanthey Please feel free to re-open I you think otherwise.

@tautschnig tautschnig closed this Feb 8, 2021
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.

5 participants