Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
Y
ybd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
baserock
ybd
Commits
883478f4
There was a problem fetching the pipeline summary.
Commit
883478f4
authored
8 years ago
by
Devcurmudgeon
Browse files
Options
Downloads
Patches
Plain Diff
WIP add binary input support
parent
5607aaac
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ybd/assembly.py
+2
-0
2 additions, 0 deletions
ybd/assembly.py
ybd/config/defaults.conf
+5
-1
5 additions, 1 deletion
ybd/config/defaults.conf
ybd/repos.py
+17
-0
17 additions, 0 deletions
ybd/repos.py
with
24 additions
and
1 deletion
ybd/assembly.py
+
2
−
0
View file @
883478f4
...
...
@@ -171,6 +171,8 @@ def run_build(dn):
if
dn
.
get
(
'
repo
'
):
repos
.
checkout
(
dn
)
dn
[
'
SOURCE_DATE_EPOCH
'
]
=
repos
.
source_date_epoch
(
dn
[
'
checkout
'
])
else
if
dn
.
get
(
'
url
'
):
repos
.
get_binary
(
dn
)
get_build_commands
(
dn
)
env_vars
=
sandbox
.
env_vars_for_build
(
dn
)
...
...
This diff is collapsed.
Click to expand it.
ybd/config/defaults.conf
+
5
−
1
View file @
883478f4
...
...
@@ -11,6 +11,7 @@ morph-fields: ['arch',
'devices'
,
'kind'
,
'max-jobs'
,
'md5'
,
'morph'
,
'name'
,
'orig_ref'
,
...
...
@@ -20,12 +21,15 @@ morph-fields: ['arch',
'strata'
,
'ref'
,
'repo'
,
'rpm-metadata'
,
'sha'
,
'sha256'
,
'subsystems'
,
'submodules'
,
'systems'
,
'system-integration'
,
'unpetrify-ref'
]
'unpetrify-ref'
,
'url'
]
# Mapping from arch to cpu defaults
cpus
:
...
...
This diff is collapsed.
Click to expand it.
ybd/repos.py
+
17
−
0
View file @
883478f4
...
...
@@ -328,6 +328,23 @@ def checkout_submodules(dn):
app
.
log
(
dn
,
"
Git submodules problem
"
,
exit
=
True
)
def
get_binary
(
dn
):
with
app
.
chdir
(
dn
[
'
checkout
'
]),
open
(
os
.
devnull
,
"
w
"
)
as
fnull
:
requests
.
get
(
dn
[
'
url
'
],
auth
=
(
'
user
'
,
'
pass
'
))
if
call
([
'
wget
'
,
dn
[
'
url
'
]],
stdout
=
fnull
,
stderr
=
fnull
):
app
.
log
(
dn
,
'
ERROR running wget on url:
'
,
dn
[
'
url
'
],
exit
=
True
)
if
dn
.
get
(
'
sha256
'
):
import
hashlib
checksum
=
hashlib
.
sha256
(
factors
).
hexdigest
()
if
checksum
!=
dn
[
'
sha256
'
]:
app
.
log
(
dn
,
'
ERROR sha256 %s mismatch:
'
%
dn
[
'
sha256
'
],
checksum
,
exit
=
True
)
checksum
=
hashlib
.
md5
(
factors
).
hexdigest
()
if
checksum
!=
dn
[
'
md5
'
]:
app
.
log
(
dn
,
'
ERROR md5 %s mismatch:
'
%
dn
[
'
md5
'
],
checksum
,
exit
=
True
)
@contextlib.contextmanager
def
explore
(
ref
):
try
:
...
...
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