Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
schleuder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michał "rysiek" Woźniak
schleuder
Commits
ea1525a2
Verified
Commit
ea1525a2
authored
7 years ago
by
georg
Browse files
Options
Downloads
Patches
Plain Diff
CI: Introduce entropy script
parent
00cbacdd
Branches
ci-make-builds-faster
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-1
2 additions, 1 deletion
.gitlab-ci.yml
utils/ci/entropy.sh
+17
-0
17 additions, 0 deletions
utils/ci/entropy.sh
with
19 additions
and
1 deletion
.gitlab-ci.yml
+
2
−
1
View file @
ea1525a2
...
...
@@ -34,9 +34,10 @@ cache:
script
:
-
eatmydata gem install bundler --no-ri --no-rdoc
-
eatmydata bundle install --jobs $(nproc) --path vendor
-
rm /dev/random && ln -s /dev/urandom /dev/random
-
utils/ci/entropy.sh &
-
SCHLEUDER_ENV=test SCHLEUDER_CONFIG=spec/schleuder.yml eatmydata bundle exec rake db:init
-
eatmydata bundle exec rspec
-
pkill -f entropy.sh
codespell
:
image
:
debian:unstable
...
...
This diff is collapsed.
Click to expand it.
utils/ci/entropy.sh
0 → 100755
+
17
−
0
View file @
ea1525a2
#!/usr/bin/env python
# For testing purposes only
# DO NOT USE THIS, THIS DOES NOT PROVIDE ENTROPY TO /dev/random, JUST BYTES
import fcntl
import
time
import struct
RNDADDENTROPY
=
0x40085203
while
True:
random
=
"3420348024823049823-984230942049832423l4j2l42j"
t
=
struct.pack
(
"ii32s"
, 8, 32, random
)
with open
(
"/dev/random"
,
mode
=
'wb'
)
as fp:
# as fp has a method fileno(), you can pass it to ioctl
res
=
fcntl.ioctl
(
fp, RNDADDENTROPY, t
)
time.sleep
(
0.001
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment