Commit graph

197 commits

Author SHA1 Message Date
quux
703481d997
Fix typo in mysql migration file for org secrets 2019-04-17 17:23:51 -04:00
Brad Rydzewski
be5b2fa2df
Merge pull request #2663 from ferhatelmas/drop-err [CI SKIP]
batch: drop unpossible error check
2019-04-16 16:17:53 -07:00
徐扬
49bbaf4a11 fix some typos 2019-04-16 11:05:46 +08:00
Brad Rydzewski
96132e3d0a support for per-organization secrets 2019-04-14 17:06:16 -07:00
Brad Rydzewski
727177da13 ability to delete repository 2019-04-14 14:01:47 -07:00
Brad Rydzewski
9b5d07f843 sqlite username column case insensitive 2019-04-14 10:47:23 -07:00
Brad Rydzewski
e855881324 limit pipelines by cron name, #2628 2019-04-13 12:40:50 -07:00
ferhat elmas
f4f6d13df9 batch: drop unpossible error check
in favor of annotated error message.
There is also unrelated diff due to gofmt.
2019-04-13 17:40:54 +02:00
Brad Rydzewski
fabd2670f5 force SIGINT when terminating the agent 2019-03-19 14:44:02 -07:00
Brad Rydzewski
38b1847914 adjust repo feed query for postgres 2019-03-19 10:23:15 -07:00
Brad Rydzewski
cd439d261c comment out suboptimal pg query 2019-03-18 23:59:11 -07:00
Brad Rydzewski
a9d63cea69 fix incomplete build query 2019-03-18 23:39:33 -07:00
Brad Rydzewski
4e4932512c fix issue #2553 2019-03-14 10:16:19 -07:00
Brad Rydzewski
fe2ab2c3a4 Merge remote-tracking branch 'origin/master' 2019-03-13 14:48:02 -07:00
Brad Rydzewski
ff8f29df53 audit headers 2019-03-13 14:47:47 -07:00
KhanhIceTea
38cba9aa29 change build_author_name charset to utf8mb4 2019-03-08 14:44:19 +07:00
Brad Rydzewski
dd2cc872c2 remove deprecated scheduler 2019-03-05 23:47:55 -08:00
Brad Rydzewski
e52329b111 adde encrypt endpoint 2019-02-28 12:49:04 -08:00
Brad Rydzewski
d240eadb65 merge remote-tracking branch 'origin/master' 2019-02-27 23:07:30 -08:00
Brad Rydzewski
d04647e75f add build tags 2019-02-27 23:07:13 -08:00
Thomas Boerger
876645a1b0
Provide pathstyle for S3 log storage 2019-02-26 22:09:56 +01:00
Brad Rydzewski
02df116424
Merge pull request #2600 from JordanSussman/master
feat(s3): allow user to specify s3 endpoint for non aws usage
2019-02-21 12:24:46 -08:00
Brad Rydzewski
616433b709 optionally disable pr and fork at database level 2019-02-21 11:06:33 -08:00
JordanSussman
2b539ed123 feat(s3): allow user to specify s3 endpoint for non aws usage 2019-02-20 22:17:50 -06:00
Brad Rydzewski
db7f0cdffb enable deploy events 2019-02-20 15:15:29 -08:00
Brad Rydzewski
5b6a3d8ff4 squash and merge local branch 2019-02-19 15:56:41 -08:00
Niall Sheridan
4949047575 Don't return extra columns in result set
Since commit 360708e93d the feed-latest-build query has returned extra columns in the results, causing log messages like the following:

```
meddler.Targets: column [build_repo_id] not found in struct
meddler.Targets: column [build_id] not found in struct
meddler.WriteTargets: column [build_repo_id] not found in struct
meddler.WriteTargets: column [build_id] not found in struct
```

This is a result of the optimised Postgres query including the `build_repo_id` and `build_id` terms, where previously they were not inclued.
This PR rewrites the query slightly to produce the expected result set (i.e. without the `build_repo_id` and `build_id` columns). As a side-effect it also looks similar to the original query.

Signed-off-by: Niall Sheridan <nsheridan@squarespace.com>
2018-11-14 11:22:28 +00:00
Brad Rydzewski
360708e93d optimize postgres query 2018-11-08 22:42:32 -08:00
Brad Rydzewski
4063d29b44 fix failing build count test 2018-05-02 09:59:05 -07:00
Brad Rydzewski
9ffd5ad9e8 alternate build count strategy for postgres 2018-05-02 09:45:05 -07:00
Brad Rydzewski
8a65cf91a9
Merge pull request #2313 from Valeran86/bugix/postgres-semicolon-in-scripts [ci skip]
fix missing semicolon in Postgres script's files
2018-04-01 11:38:00 -07:00
Thomas Boerger
7f49e69607
Just fixed format with go fmt ./... 2018-03-21 14:02:17 +01:00
Brad Rydzewski
580fe9abb7 add apache license header to files 2018-02-19 14:24:10 -08:00
Jordan Brockopp
af76d46b53 add page param for getting build list with offset 2018-02-02 13:03:40 -06:00
Александр Ангин
b892f566e5 fix missing semicolon in Postgres script's files 2018-01-22 10:40:11 +03:00
Brad Rydzewski
bb8c569249 add healthz endpoint to server 2017-10-05 14:17:27 -07:00
Brad Rydzewski
60cd607450 capture file metadata 2017-08-02 16:04:00 -04:00
Brad Rydzewski
bcdd5c9d06 implement file endpoints 2017-07-27 13:06:24 -04:00
Brad Rydzewski
c22dc6e5fa use boolean to filter active flag, postres change 2017-07-25 15:42:11 -04:00
Brad Rydzewski
005a28a638 fix postgres repo count 2017-07-25 15:37:58 -04:00
Brad Rydzewski
02a8a2a31f bump version; fix repo count metrics 2017-07-25 15:32:22 -04:00
Brad Rydzewski
15d92c5fa3 read user and log sql queries from file 2017-07-20 16:34:52 -04:00
Brad Rydzewski
d5200ad8b3 improve flush capability during sync 2017-07-16 13:37:16 -04:00
Brad Rydzewski
587b07c69b sync working with postgres and mysql 2017-07-15 12:51:02 -04:00
Brad Rydzewski
35e0ee2e5f implement sync logic 2017-07-14 15:58:38 -04:00
Brad Rydzewski
37eb406092 update default visibility migration 2017-07-12 15:25:42 -04:00
Brad Rydzewski
6806883a0d fix mysql migration value 2017-07-12 15:22:49 -04:00
Brad Rydzewski
911e5f41a3 doh. fix migration for sqlite 2017-06-01 14:47:06 +02:00
Brad Rydzewski
860c611a37 update migration 2017-06-01 14:30:49 +02:00
Brad Rydzewski
ee54698c62 add migration function to remove null repo counters 2017-05-25 12:25:16 +02:00
Brad Rydzewski
08b320e365 update unit tests 2017-05-23 17:53:40 +02:00
Brad Rydzewski
3f45889ead fix merge conflicts 2017-05-23 14:43:50 +02:00
Brad Rydzewski
110c036e4e re-format counter update for postgres 2017-05-23 14:34:24 +02:00
Brad Rydzewski
f16dfaa9f0 increment build from counter 2017-05-23 12:43:58 +02:00
Brad Rydzewski
9ed9f8f1c9 change repo_visibility to text 2017-05-22 23:16:42 +02:00
Brad Rydzewski
c64a244c27 add visibility database field 2017-05-22 23:11:29 +02:00
Joachim Hill-Grannec
52ee6fa5be update varchar to 255 for the unique value to work for the migrations table. 2017-05-20 15:46:49 -04:00
Brad Rydzewski
298d78e370 bump column size for registry secret [ci skip] 2017-05-19 18:15:57 +02:00
Brad Rydzewski
28edaccf30 update generated sql code 2017-05-19 17:55:32 +02:00
Brad Rydzewski
3e45431aa8 sort by proc_id asc 2017-05-19 17:54:13 +02:00
Brad Rydzewski
a05cdafd92 add mysql and postgres impls 2017-05-19 17:51:28 +02:00
Brad Rydzewski
3d2753fd59 migrate seq number 2017-05-18 02:18:41 +02:00
Brad Rydzewski
07a8a545bb fix insert ignore syntax for mysql 2017-05-14 19:08:42 +02:00
Brad Rydzewski
b8c09865b7 migration improvements 2017-05-13 16:38:26 +02:00
Brad Rydzewski
c0354572c3 remove generated migration code from gitignore 2017-05-13 10:08:39 +02:00
Brad Rydzewski
cea842bed5 use generated migration 2017-05-13 09:56:23 +02:00
Brad Rydzewski
ccb28d0d74 commit embedded templates 2017-05-12 16:06:01 +02:00
Mikkel Oscar Lyderik Larsen
97946dad38
Order procs by proc_pid 2017-05-09 21:20:33 +02:00
Brad Rydzewski
3a64aa4cf2 simplify gating logic 2017-05-05 20:05:42 +02:00
Brad Rydzewski
4aac0bc4d6 re-use gated logic 2017-05-05 19:13:40 +02:00
Brad Rydzewski
4569b60f09 persist and compare yaml for gating 2017-05-05 18:59:37 +02:00
Brad Rydzewski
222bdd6854 setup queue service in main package 2017-05-04 02:02:08 +02:00
Brad Rydzewski
2f579e4b7d setup store in main() 2017-05-03 23:25:33 +02:00
Brad Rydzewski
e172de592f restore queue on restart 2017-04-14 13:32:36 +02:00
Brad Rydzewski
8348c858ba wip enable pluggable secret and registry backends 2017-04-11 19:06:45 +02:00
Brad Rydzewski
55d4ccd64e add registry management 2017-04-06 21:51:01 +09:00
Brad Rydzewski
76006d28ac restart build by clearing prior procs and logs 2017-04-04 19:50:15 +09:00
Brad Rydzewski
16a07e660a enable granular step data for matrix 2017-04-04 18:30:06 +09:00
Brad Rydzewski
0daee76aa8 use separate log table 2017-04-03 18:34:37 +09:00
Brad Rydzewski
ec88661d9e refactor job to proc 2017-04-02 23:13:26 +09:00
Brad Rydzewski
f090a2d34f fixed mysql ddl 2017-04-02 00:51:40 +09:00
Brad Rydzewski
6c11444de0 agent update build steps 2017-04-01 20:17:04 +09:00
Brad Rydzewski
aa3fc5123f enable postgres 2017-03-28 18:13:13 +09:00
Brad Rydzewski
c153db8c47 add pg and mysql database migrations 2017-03-28 17:57:57 +09:00
Brad Rydzewski
3118c07329 add proc and file structs 2017-03-28 17:53:06 +09:00
Brad Rydzewski
6246b32569 ability to customize yaml path 2017-03-19 16:44:57 +08:00
Brad Rydzewski
e319aaff15 add reviewer fields, endpoints 2017-03-18 16:49:27 +08:00
Brad Rydzewski
39bb69a27d fix mysql ddl build_error column 2017-03-13 23:30:41 +08:00
Brad Rydzewski
b4c4e92b5b handle compiler or lint error 2017-03-10 02:58:25 -08:00
Joachim Hill-Grannec
488ce878b3 Doesn’t need to check for SQLite again the the Progres list 2017-02-11 12:12:34 -08:00
Joachim Hill-Grannec
0699138c47 Merge branch 'master' into remove_size_limit 2017-02-04 19:58:51 -08:00
Joachim Hill-Grannec
e436db0862 temp fix to increase size on non SQLite db 2017-02-04 18:45:25 -08:00
Don
e77936f5c8 Implement backend for concealing secrets 2016-11-16 11:28:36 -08:00
Don
d58fcc9372 Fix ordering of secrets within merge 2016-10-24 15:08:16 -07:00
Brad Rydzewski
58f84ced84 Merge pull request #1825 from donny-dont/feature/global_secrets
Implementing global secrets
2016-10-25 00:03:20 +02:00
Brad Rydzewski
8a463d8f0c Merge pull request #1807 from joshq00/fix-mariadb-max-key-length
Fix: key exceeds max on MariaDB (MySQL) [ci skip]
2016-10-24 23:59:04 +02:00
Don
0852424cfe Implementing global secrets 2016-10-20 11:23:12 -07:00
Brad Rydzewski
01945b1ae5 Merge pull request #1824 from donny-dont/feature/secret_skip_verify_model
Adding SkipVerify to Secrets
2016-10-20 01:53:24 +02:00
Don
dfcaa78e85 Adding SkipVerify to Secrets 2016-10-19 13:04:08 -07:00
Vaidas Jablonskis
284fca370e Add a reference to parent build on forks / deploys 2016-10-19 13:28:18 +01:00