Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
briar-reproducer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
briar
briar-reproducer
Commits
bd71b8e3
Verified
Commit
bd71b8e3
authored
May 16, 2019
by
Torsten Grote
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deterministic filesystem and make it non-deterministic instead
parent
50cb03c0
Pipeline
#3341
passed with stages
in 10 minutes and 1 second
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
README.md
README.md
+9
-3
reproduce.py
reproduce.py
+2
-2
No files found.
.gitlab-ci.yml
View file @
bd71b8e3
...
...
@@ -30,7 +30,7 @@ test_success:
script
:
# Consider adding the cap and the device directly to the CI config
# https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runners-docker-section
-
docker run --cap-add SYS_ADMIN --device /dev/fuse ${TEST_IMAGE} ./reproduce.py release-1.
0.12
-
docker run --cap-add SYS_ADMIN --device /dev/fuse ${TEST_IMAGE} ./reproduce.py release-1.
1.7
except
:
-
triggers
...
...
README.md
View file @
bd71b8e3
...
...
@@ -88,6 +88,12 @@ You can find a list of tags in Briar's
[
source code repository
](
https://code.briarproject.org/akwizgran/briar/tags
)
.
The
`SYS_ADMIN`
capability and the
`fuse`
device are required,
so the container can build the app inside a
`disorderfs`
.
We hope to be able to drop this requirement
once this
[
upstream issue
](
https://issuetracker.google.com/issues/110237303
)
is fixed.
\ No newline at end of file
so the container can build the app inside a
`disorderfs`
which shuffles the filesystem.
## Historical Changes
*
Before version
`1.1.7`
, Briar needed a deterministic files system
to work around an
[
Android build system bug
](
https://issuetracker.google.com/issues/110237303
)
which broke reproducibility.
An
[
old version of briar-reproducer
](
https://code.briarproject.org/briar/briar-reproducer/tags/pre-1.1.7
)
can be used to verify these releases.
reproduce.py
View file @
bd71b8e3
...
...
@@ -27,10 +27,10 @@ def main():
reference_apk
=
"briar-
%
s.apk"
%
version
check_call
([
'wget'
,
'--no-verbose'
,
url
,
'-O'
,
reference_apk
])
# use
deterministic file system for building the app
# use
non-deterministic file system for building the app to detect issues
if
not
os
.
path
.
exists
(
BUILD_DIR
):
os
.
makedirs
(
BUILD_DIR
)
check_call
([
'disorderfs'
,
'--s
ort-dirents=yes'
,
'--reverse-dirents=no
'
,
REPO_DIR
,
BUILD_DIR
])
check_call
([
'disorderfs'
,
'--s
huffle-dirents=yes
'
,
REPO_DIR
,
BUILD_DIR
])
# build the app
check_call
([
"./gradlew"
,
"--no-daemon"
,
GRADLE_TASK
],
cwd
=
BUILD_DIR
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment