forked from irungentoo/toxcore
-
Notifications
You must be signed in to change notification settings - Fork 287
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
chore: Simplify coverage dockerfile. #2679
Draft
iphydf
wants to merge
1
commit into
TokTok:master
Choose a base branch
from
iphydf:coverage-sources
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# ===== common ===== | ||
# Ignore everything ... | ||
**/* | ||
# ... except sources | ||
!**/*.[ch] | ||
!**/*.cc | ||
!**/*.hh | ||
!CHANGELOG.md | ||
!LICENSE | ||
!README.md | ||
!auto_tests/data/* | ||
!other/bootstrap_daemon/bash-completion/** | ||
!other/bootstrap_daemon/tox-bootstrapd.* | ||
!other/proxy/*.mod | ||
!other/proxy/*.sum | ||
!other/proxy/*.go | ||
# ... and CMake build files (used by most builds). | ||
!**/CMakeLists.txt | ||
!.github/scripts/flags*.sh | ||
!cmake/*.cmake | ||
!other/pkgconfig/* | ||
!other/rpm/* | ||
!so.version | ||
# ===== custom ===== | ||
!other/docker/coverage/run_mallocfail | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# ===== custom ===== | ||
!other/docker/coverage/run_mallocfail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
. "$(cd "$(dirname "${BASH_SOURCE[0]}")/../sources" && pwd)/run.sh" | ||
. "$(realpath -- "$(dirname "${BASH_SOURCE[0]}")/../sources/run.sh")" | ||
docker run --name toxcore-doxygen --rm -it -p "28192:80" "toxchat/c-toxcore:$BUILD" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this file committed by a mistake? It's supposedly auto-generated by
../sources/run.sh
when called bycoverage/run
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, it's not a mistake. This file has to be in git because otherwise a default "build this docker file" action (github or render.com) doesn't work the way it should.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh. So, whenever someone changes either the master dockerignore file in
other/docker/sources/
, or a supplemental one inother/docker/$BUILD/
, they would have to run theother/$BUILD/run
script(s) to update the concatenated dockerignore file(s) before committing/making a PR?Maybe we could add a script step to the GitHub CI before the "build this docker file" action that would generate this dockerignore file? For example, move the dockerignore concat section out of
other/docker/sources/ru.sh
into its own bash script, something likeother/docker/source/gen-dockerignore.sh
that takes$BUILD
as an argument (or a path to$BUILD
's directory or something like that) and concats the master dockerignore with the$BUILD
's, putting it in$BUILD
's directory? That script could be used in CI to generate the dockerignore file before calling the docker actions and will also be called fromother/docker/sources/run.sh
.(Also, what is this render.com promotion? How is that relevant to us?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I'll do that, but it'll take some time for me to find motivation for it, so I'll move this PR to the next milestone.