Z.J. van de Weg
1096040024
Update effected tests
2016-12-04 17:32:33 +01:00
Yorick Peterse
6b4d33566f
Pass commit data to ProcessCommitWorker
...
By passing commit data to this worker we remove the need for querying
the Git repository for every job. This in turn reduces the time spent
processing each job.
The migration included migrates jobs from the old format to the new
format. For this to work properly it requires downtime as otherwise
workers may start producing errors until they're using a newer version
of the worker code.
2016-12-01 13:36:06 +01:00
Rémy Coutable
46859cb984
Fix a transient spec failure
...
Sorting by created_at can lead to uncertainties if two records are
created at the same time.
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-29 16:27:57 +01:00
James Lopez
cbd7d00039
added custom date helper and spec and fixed some unrelated spec failures
2016-11-17 08:22:59 +01:00
James Lopez
cf2dcf043c
Refactor all query config stuff into separate classes and added specs
2016-11-17 08:22:59 +01:00
James Lopez
cbc9f0cd1a
fix issue with commits and also updated routes
2016-11-17 08:22:59 +01:00
James Lopez
633ddc9ed9
fix authorization of builds and added relevant spec
2016-11-17 08:22:59 +01:00
James Lopez
3d00503368
fixed and added missing scenario to events integration spec
2016-11-17 08:22:58 +01:00
James Lopez
192918cde9
refactored duplicated code in controller, updated JSON array naming and fixed specs
2016-11-17 08:22:57 +01:00
James Lopez
449a9fb1f1
fixed integration spec after big refactoring of fields per stage
2016-11-17 08:22:57 +01:00
James Lopez
8f7266cd4b
added missing fields to issue. Also, added a light url builder to add URLs easily from arel. Updated specs.
2016-11-17 08:22:56 +01:00
James Lopez
8bb4750eb3
added pipelines to integration spec
2016-11-17 08:22:56 +01:00
James Lopez
9ead268cfa
some more integration scenarios testing order. Also, fixed bug in the staging and test stages.
2016-11-17 08:22:56 +01:00
James Lopez
3267923263
added the rest of the stages to the controller and relevant specs
2016-11-17 08:22:55 +01:00
James Lopez
d472611265
added cycle analytics events controller and started integration spec
2016-11-17 08:22:55 +01:00
Lin Jen-Shin
e65bc0f175
Path could also have slashes! Feedback:
...
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142#note_14347729
2016-08-24 16:02:56 +08:00
Lin Jen-Shin
bc3493f947
Use only one before block, feedback:
...
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142/diffs#note_14347758
2016-08-24 14:40:18 +08:00
Lin Jen-Shin
75df5f6c73
Fixed a missing rename
2016-08-17 13:42:06 +08:00
Lin Jen-Shin
abf1cffff8
Fix tests, explicitly set the status
2016-08-16 00:46:51 +08:00
Lin Jen-Shin
cc3dbf83f4
Empty lines around blocks
2016-08-10 18:57:51 +08:00
Lin Jen-Shin
fa02d8fcc5
Merge shared context into controller test and update accordingly
2016-07-21 19:09:46 +08:00
Lin Jen-Shin
85409a5a10
Use ci_commits.ref (Pipeline#ref) to find builds
2016-07-18 20:10:50 +08:00
Lin Jen-Shin
2e90abf254
It could be redirecting or downloading in Rails or API
2016-07-15 01:45:04 +08:00
Lin Jen-Shin
d7bbee7593
Update routes based on feedback from:
...
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142#note_13058785
And note that job/build_name could contain `/`
2016-07-14 16:45:46 +08:00
Lin Jen-Shin
5b227f351f
rubocop likes this better
2016-07-13 23:39:03 +08:00
Lin Jen-Shin
b043729d49
Share more stuffs
2016-07-13 23:23:05 +08:00
Lin Jen-Shin
8735d95af1
Implement API for downloading artifacts from ref and build name:
...
Basically:
GET /api/projects/:id/artifacts/:ref_name/:build_name
Also added tests for it.
2016-07-13 23:07:37 +08:00
Lin Jen-Shin
6c80b597f5
Introduce path_from_ref and save some typing
2016-07-13 21:44:27 +08:00
Lin Jen-Shin
3336828152
No need for a separate line now
2016-07-13 17:49:42 +08:00
Lin Jen-Shin
e383254070
Add all the tests and fix stuffs along the way:
...
It turns out they are different:
builds.success.latest.first
and
builds.latest.success.first
If we put success first, that latest would also filter via success,
and which is what we want here.
2016-07-12 23:15:08 +08:00