Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Guix Cuirass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Panda
Guix Cuirass
Commits
5c9003b4
Unverified
Commit
5c9003b4
authored
4 years ago
by
Mathieu Othacehe
Browse files
Options
Downloads
Patches
Plain Diff
Fix build products creation.
parent
b24d55e3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cuirass/base.scm
+2
-2
2 additions, 2 deletions
src/cuirass/base.scm
tests/database.scm
+13
-1
13 additions, 1 deletion
tests/database.scm
with
15 additions
and
3 deletions
src/cuirass/base.scm
+
2
−
2
View file @
5c9003b4
...
...
@@ -596,7 +596,7 @@ by BUILD-OUTPUTS."
(
define*
(
find-product
build
build-output
)
(
let*
((
outputs
(
assq-ref
build
#
:outputs
))
(
output
(
build-output-output
build-output
))
(
path
(
build-output-path
build-output
-path
))
(
path
(
build-output-path
build-output
))
(
root
(
and=>
(
assoc-ref
outputs
output
)
(
cut
assq-ref
<>
#
:path
))))
(
and
root
...
...
@@ -615,7 +615,7 @@ by BUILD-OUTPUTS."
(
log-message
"Adding build product ~a"
product
)
(
db-add-build-product
`
((
#
:build
.
,
(
assq-ref
build
#
:id
))
(
#
:type
.
,
(
build-output-type
build-output
-type
))
(
#
:type
.
,
(
build-output-type
build-output
))
(
#
:file-size
.
,
(
file-size
product
))
;; TODO: Implement it.
(
#
:checksum
.
""
)
...
...
This diff is collapsed.
Click to expand it.
tests/database.scm
+
13
−
1
View file @
5c9003b4
...
...
@@ -20,7 +20,8 @@
;;; You should have received a copy of the GNU General Public License
;;; along with Cuirass. If not, see <http://www.gnu.org/licenses/>.
(
use-modules
(
cuirass
database
)
(
use-modules
(
cuirass
base
)
(
cuirass
database
)
(
cuirass
notification
)
(
cuirass
parameters
)
(
cuirass
remote
)
...
...
@@ -585,6 +586,17 @@ timestamp, checkouttime, evaltime) VALUES ('guix', 0, 0, 0, 0);")
(
and
(
email?
notif
)
(
equal?
build
notif-build
))))))
(
test-assert
"set-build-successful!"
(
let*
((
name
"/foo5.drv"
)
(
build
(
make-dummy-build
name
#
:outputs
`
((
"out"
.
,
(
getcwd
)))))
(
drv
(
assq-ref
build
#
:derivation
)))
(
db-add-build
build
)
(
set-build-successful!
drv
)
(
match
(
assq-ref
(
db-get-build
name
)
#
:buildproducts
)
((
product
)
(
equal?
(
assq-ref
product
#
:path
)
(
getcwd
))))))
(
test-assert
"db-close"
(
begin
(
db-close
(
%db
))
...
...
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