aboutsummaryrefslogtreecommitdiff
path: root/THANKS
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-11-27 13:21:58 +0100
committerMarius Bakke <marius@gnu.org>2022-11-27 21:19:50 +0100
commit4289394e688d8b2a844abea803ba941192e958a8 (patch)
treec746bf4c781f3e55f971a7f86a47f0205038f841 /THANKS
parentae64c4ac89c18a44f0240f403b4c290e31a62461 (diff)
downloadguix-4289394e688d8b2a844abea803ba941192e958a8.tar.gz
guix-4289394e688d8b2a844abea803ba941192e958a8.zip
gnu: audacity: Remove input labels.
* gnu/packages/audio.scm (audacity)[native-inputs]: Remove labels.
Diffstat (limited to 'THANKS')
0 files changed, 0 insertions, 0 deletions
in (lookup-origin "http://example.org/whatever"))) (match (origin-visits origin) ((visit) (list (visit-origin visit) (date->string (visit-date visit) "~4") (visit-snapshot-url visit)))))))) (test-equal "lookup-directory" '(("one" 123) ("two" 456)) (with-json-result %directory-entries (map (lambda (entry) (list (directory-entry-name entry) (directory-entry-length entry))) (lookup-directory "123")))) (test-equal "lookup-origin-revision" '("cd86c72084993d9ef26fc9e24b73cea612b8c97b" "d173c707ee88e3c89401ad77fafa65fcd9e9f5be") (let () ;; Make sure that 'lookup-origin-revision' does the job, and in particular ;; that it doesn't stop until it has found an actual revision: ;; 'git-checkout visits point to directories instead of revisions. ;; See <https://issues.guix.gnu.org/69070>. (define visits ;; Two visits of differing types: the first visit (type 'git-checkout') ;; points to a directory, the second one (type 'git') points to a ;; revision. "[ { \"origin\": \"https://example.org/repo.git\", \"visit\": 1, \"type\": \"git-checkout\", \"date\": \"2020-05-17T21:43:45.422977+00:00\", \"status\": \"full\", \"metadata\": {}, \"type\": \"git-checkout\", \"origin_visit_url\": \"/visit/42\", \"snapshot_url\": \"/snapshot/1\" }, { \"origin\": \"https://example.org/repo.git\", \"visit\": 2, \"type\": \"git\", \"date\": \"2020-05-17T21:43:49.422977+00:00\", \"status\": \"full\", \"metadata\": {}, \"type\": \"git\", \"origin_visit_url\": \"/visit/41\", \"snapshot_url\": \"/snapshot/2\" } ]") (define snapshot-for-git-checkout "{ \"id\": 42, \"branches\": { \"1.3.2\": { \"target\": \"e4a4be18fae8d9c6528abff3bc9088feb19a76c7\", \"target_type\": \"directory\", \"target_url\": \"/directory/e4a4be18fae8d9c6528abff3bc9088feb19a76c7\" }} }") (define snapshot-for-git "{ \"id\": 42, \"branches\": { \"1.3.2\": { \"target\": \"e4a4be18fae8d9c6528abff3bc9088feb19a76c7\", \"target_type\": \"revision\", \"target_url\": \"/revision/e4a4be18fae8d9c6528abff3bc9088feb19a76c7\" }} }") (define revision "{ \"author\": {}, \"committer\": {}, \"committer_date\": \"2018-05-17T21:43:49.422977+00:00\", \"date\": \"2018-05-17T21:43:49.422977+00:00\", \"directory\": \"d173c707ee88e3c89401ad77fafa65fcd9e9f5be\", \"directory_url\": \"/directory/d173c707ee88e3c89401ad77fafa65fcd9e9f5be\", \"id\": \"cd86c72084993d9ef26fc9e24b73cea612b8c97b\", \"merge\": false, \"message\": \"Fix.\", \"parents\": [], \"type\": \"what type?\" }") (with-http-server `((200 ,%origin) (200 ,visits) (200 ,snapshot-for-git-checkout) (200 ,snapshot-for-git) (200 ,revision)) (parameterize ((%swh-base-url (%local-url))) (let ((revision (lookup-origin-revision "https://example.org/repo.git" "1.3.2"))) (list (revision-id revision) (revision-directory revision))))))) (test-equal "lookup-directory-by-nar-hash" "swh:1:dir:84a8b34591712c0a90bab0af604188bcd1fe3153" (with-json-result %external-id (lookup-directory-by-nar-hash (nix-base32-string->bytevector "0qqygvlpz63phdi2p5p8ncp80dci230qfa3pwds8yfxqqaablmhb") 'sha256))) (test-equal "rate limit reached" 3000000000 (let ((too-many (build-response #:code 429 #:reason-phrase "Too many requests" ;; Pretend we've reached the limit and it'll be reset in ;; June 2065. #:headers '((x-ratelimit-remaining . "0") (x-ratelimit-reset . "3000000000"))))) (with-http-server `((,too-many "Too bad.")) (parameterize ((%swh-base-url (%local-url))) (catch 'swh-error (lambda () (lookup-origin "http://example.org/guix.git")) (lambda (key url method response) ;; Ensure the reset time was recorded. (@@ (guix swh) %general-rate-limit-reset-time))))))) (test-assert "%allow-request? and request-rate-limit-reached?" ;; Here we test two things: that the rate limit set above is in effect and ;; that %ALLOW-REQUEST? is called, and that 'request-rate-limit-reached?' ;; returns true. (let* ((key (gensym "skip-request")) (skip-if-limit-reached (lambda (url method) (or (not (request-rate-limit-reached? url method)) (throw key #t))))) (parameterize ((%allow-request? skip-if-limit-reached)) (catch key (lambda () (lookup-origin "http://example.org/guix.git") #f) (const #t))))) (test-end "swh") ;; Local Variables: ;; eval: (put 'with-json-result 'scheme-indent-function 1) ;; eval: (put 'with-http-server 'scheme-indent-function 1) ;; End: