-
Our stopgap hack of "PR hook -> delay -> start build if push hook not received" seems to be working. It was needed >1.8k times since deployed.
- In that period only ~1k builds didn't require the hack.
diff -u --label /Users/lewang/src/circleci/circle/src/circle/model/plan_template.clj --label \#\<buffer\ plan_template.clj\> /Users/lewang/src/circleci/circle/src/circle/model/plan_template.clj /var/folders/1j/g0fjg7qs4gd4xxhrdnk73n200000gn/T/buffer-content-3619Iwr | |
--- /Users/lewang/src/circleci/circle/src/circle/model/plan_template.clj | |
+++ #<buffer plan_template.clj> | |
@@ -279,7 +279,7 @@ | |
(t/ann find-template [(t/U t/Keyword t/Str) -> (t/Option PlanTemplate)]) | |
(def find-template | |
;; use find-one-by-id b/c find-by-id uses :_id | |
- (memo/ttl find-one-by-id | |
+ (memo/ttl #'find-one-by-id | |
:ttl/threshold |
diff -u --label /Users/lewang/src/circleci/circle/src/circle/model/plan_template.clj --label \#\<buffer\ plan_template.clj\> /Users/lewang/src/circleci/circle/src/circle/model/plan_template.clj /var/folders/1j/g0fjg7qs4gd4xxhrdnk73n200000gn/T/buffer-content-36197ll | |
--- /Users/lewang/src/circleci/circle/src/circle/model/plan_template.clj | |
+++ #<buffer plan_template.clj> | |
@@ -279,7 +279,7 @@ | |
(t/ann find-template [(t/U t/Keyword t/Str) -> (t/Option PlanTemplate)]) | |
(def find-template | |
;; use find-one-by-id b/c find-by-id uses :_id | |
- (memo/ttl find-one-by-id | |
+ (memo/ttl #'find-one-by-id | |
:ttl/threshold |
from aqt.qt import * | |
import aqt | |
import anki | |
# enable only 1, 2 during review, disable "ENTER" to prevent speedup | |
def keyHandler(self, evt, _old): | |
key = unicode(evt.text()) |
Our stopgap hack of "PR hook -> delay -> start build if push hook not received" seems to be working. It was needed >1.8k times since deployed.
{:last-seen-date [18 10 2016], :bad-builds ["57f95019c9e77c0001b97c55" "57f95032c9e77c0001e574a5" "57f950fbc9e77c00012face5" "57f950fbc9e77c000156d4b4" "57f9512dc9e77c00015845b5" "57f95291c9e77c0001e5c13e" "57f952c8c9e77c000103ce34" "57f956c5c9e77c000111bb8f" "57f95b70c9e77c0001e4ff20" "57f95f31c9e77c0001a2ca0a" "57f96004c9e77c00012d271a" "57f96064c9e77c00011d1ebe" "57f961c9c9e77c00011d1ec3" "57f96279c9e77c0001e574c4" "57f966bb51515563706fe13a" "57f9674dc9e77c0001b135a8" "57f969f0c9e77c00012fad08" "57f96e2dc9e77c0001b135b2" "57f96e5ac9e77c0001c2546f" "57f96f50c9e77c0001e574d7" "57f9705bc9e77c0001112915" "57f97132c9e77c00018a2d86" "57f97c70c9e77c0001c3ea03" "57f97d3ac9e77c00019c8a29" "57f97d55c9e77c0001e31d50" "57f985fcc9e77c0001fd925e" "57f986afc9e77c00014e71c0" "57f98827c9e77c000138e26e" "57f9886ec9e77c0001c25497" "57f988abc9e77c0001823e8a" "57f98a72c9e77c0001e31d63" "57f98aaec9e77c000111bbdd" "57f98c26c9e77c00015493e7" "57f98dddc9e77c000160cb56" "57f98e56c9e77c000138e27d" "57f9900fc9e77c00018a2dba" "57f990a |
;;; gh.el --- Github API client libraries | |
;; Copyright (C) 2011 Yann Hodique | |
;; Author: Yann Hodique <[email protected]> | |
;; Keywords: | |
;; This file is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation; either version 2, or (at your option) |
;;; gh.el --- Github API client libraries | |
;; Copyright (C) 2011 Yann Hodique | |
;; Author: Yann Hodique <[email protected]> | |
;; Keywords: | |
;; This file is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation; either version 2, or (at your option) |
diff -u /Users/lewang/.emacs_common/backup/\!Users\!lewang\!src\!circleci\!circle\!src\!circle\!scratchwork.clj.\~3\~ /Users/lewang/.emacs_common/backup/\!Users\!lewang\!src\!circleci\!circle\!src\!circle\!scratchwork.clj.\~2\~ | |
--- /Users/lewang/.emacs_common/backup/!Users!lewang!src!circleci!circle!src!circle!scratchwork.clj.~3~ 2016-10-17 13:55:38.000000000 -0400 | |
+++ /Users/lewang/.emacs_common/backup/!Users!lewang!src!circleci!circle!src!circle!scratchwork.clj.~2~ 2016-10-17 13:20:47.000000000 -0400 | |
@@ -2,8 +2,7 @@ | |
(:require [clj-time.core :as time] | |
[clj-yaml.core :as yaml] | |
[clojure.edn :as edn] | |
- [circle.model.build :as circ.m.build] | |
- [circle.util.mongo :as mongo-util])) | |
+ [circle.model.build :as circ.m.build])) |
(pprint (let [project (circle.model.project/find-one-by-vcs_url "https://bitbucket.org/double16/openshift-s2i-grails2")] | |
(-> project | |
:branches | |
:master))) | |
{:last-non-success | |
{:outcome "no_tests", | |
:status "no_tests", | |
:build_num 2, | |
:vcs_revision "7f21e0906ac79df63805f24894ca733ea7465481", | |
:pushed_at |
diff --git a/src/circle/vcs/user.clj b/src/circle/vcs/user.clj | |
index 32c2863..481f86c 100644 | |
--- a/src/circle/vcs/user.clj | |
+++ b/src/circle/vcs/user.clj | |
@@ -236,10 +236,12 @@ | |
(refresh-stale-user full-user) | |
(catch Exception e | |
(swap! errors inc) | |
- (warnf "error updating %s: %s (not updated in %s day(s))" | |
+ (warnf "error updating %s: %s (Github not updated in %s day(s)) (Bitbucket not updated in %s day(s))" |