summaryrefslogtreecommitdiff
path: root/lib/ci/api
Commit message (Collapse)AuthorAgeFilesLines
* Extract method that checks if ci runner needs updateGrzegorz Bizon2016-10-031-4/+11
|
* Update runner version only when updating contacted_atKamil Trzcinski2016-10-032-14/+10
|
* Merge branch 'master' into per-build-tokenKamil Trzcinski2016-09-191-0/+9
|\
| * Properly create deployment using all possible optionsKamil Trzcinski2016-09-191-0/+9
| |
* | Fix most of specsKamil Trzcinski2016-09-151-2/+2
| |
* | Merge remote-tracking branch 'origin/master' into per-build-tokenKamil Trzcinski2016-09-152-1/+9
|\ \ | |/ | | | | | | # Conflicts: # db/schema.rb
| * Change response for /ci/api/v1/builds/register.json from 404 to 204Tomasz Maczukin2016-09-132-1/+9
| |
* | Use a permissions of user to access all dependent projects from CI jobs ↵Kamil Trzcinski2016-09-131-3/+11
|/ | | | (this also includes a container images, and in future LFS files)
* Merge branch 'gitlab-workhorse-safeties' into 'master' Jacob Vosmaer (GitLab)2016-09-091-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Security and safety improvements for gitlab-workhorse integration Companion to https://gitlab.com/gitlab-org/gitlab-workhorse/merge_requests/60 - Use a custom content type when sending data to gitlab-workhorse - Verify (using JWT and a shared secret on disk) that internal API requests came from gitlab-workhorse This will allow us to build features in gitlab-workhorse that require more trust, and protect us against programming mistakes in the future. This is designed so that no action is required for installations from source. For omnibus-gitlab we need to add code that manages the shared secret. See merge request !5907
| * Verify JWT messages from gitlab-workhorseJacob Vosmaer2016-09-051-1/+3
| |
* | Change update interval of runners when trying to preserve contacted_atchange-update-interval-of-runnersKamil Trzcinski2016-09-072-4/+6
|/
* Add Sentry logging to API callsadd-sentry-logging-to-apiStan Hu2016-08-241-10/+2
| | | | Closes #21043
* Tracking of custom eventscustom-events-trackingYorick Peterse2016-08-171-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GitLab Performance Monitoring is now able to track custom events not directly related to application performance. These events include the number of tags pushed, repositories created, builds registered, etc. The use of these events is to get a better overview of how a GitLab instance is used and how that may affect performance. For example, a large number of Git pushes may have a negative impact on the underlying storage engine. Events are stored in the "events" measurement and are not prefixed with "rails_" or "sidekiq_", this makes it easier to query events with the same name triggered from different parts of the application. All events being stored in the same measurement also makes it easier to downsample data. Currently the following events are tracked: * Creating repositories * Removing repositories * Changing the default branch of a repository * Pushing a new tag * Removing an existing tag * Pushing a commit (along with the branch being pushed to) * Pushing a new branch * Removing an existing branch * Importing a repository (along with the URL we're importing) * Forking a repository (along with the source/target path) * CI builds registered (and when no build could be found) * CI builds being updated * Rails and Sidekiq exceptions Fixes gitlab-org/gitlab-ce#13720
* Use AR callbacks as suggested by:Lin Jen-Shin2016-06-291-1/+0
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12744656
* Prefer Ci::Build#erase_artifacts!Lin Jen-Shin2016-06-281-2/+1
|
* Just save the size in total rather than individual filesLin Jen-Shin2016-06-281-1/+1
| | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12741046
* Introduce ci_builds.artifacts_sizes as JSON:Lin Jen-Shin2016-06-281-0/+1
| | | | | | | | | | | | | | | We store the sizes as a hash from path to bytes like: ``` ruby {'ci_artifacts.txt' => 27, 'other_artifacts_0.1.2/another-subdirectory/banana_sample.gif' => 71759, 'other_artifacts_0.1.2/doc_sample.txt' => 1314, 'rails_sample.jpg' => 35255, 'tests_encoding/utf8 test dir ✓/regular_file_2' => 7} ``` So that it's easier to access than reading gzip file again.
* Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2016-06-172-1/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | feature/runner-lock-on-project * upstream/master: (337 commits) Update CHANGELOG for !4659 Center the header logo for all Devise emails Add previews for all customized Devise emails Customize the Devise `unlock_instructions` email Customize the Devise `reset_password_instructions` email Customize the Devise `password_change` emails Use gitlab-git 10.2.0 Use Git cached counters on project show page Fix indentation scss-lint errors Added title attribute to enties in tree view Closes #18353 Banzai::Filter::ExternalLinkFilter use XPath Reduce queries in IssueReferenceFilter Use gitlab_git 10.1.4 Fixed ordering in Project.find_with_namespace Fix images in emails Banzai::Filter::UploadLinkFilter use XPath Turn Group#owners into a has_many association Make project_id nullable CHANGELOG [ci skip] CHANGELOG [ci skip] ...
| * Improve design based on reviewKamil Trzcinski2016-06-131-2/+2
| |
| * Support expiration date in CI API when uploading artifactsKamil Trzcinski2016-06-132-1/+2
| |
| * Allow to expire build artifactsKamil Trzcinski2016-06-131-0/+2
| |
* | Merge branch 'master' into feature/runner-lock-on-projectLin Jen-Shin2016-06-141-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (147 commits) Update CHANGELOG Remove deprecated issues_tracker and issues_tracker_id from project Schema doesn’t reflect the changes of the last 3 migrations Revert CHANGELOG Also rename "find" in the specs Change to new Notes styleguide Add guide on changing a document's location Change logs.md location in README Move logs/logs.md to administration/logs.md Make "four phase test" Only show branches for revert / cherry-pick Instrument all Banzai::ReferenceParser classes Removed old comment from update_column_in_batches Update columns in batches until no rows are left Remove counters from Pipeline navigation Handle NULL migration errors in migration helpers Fix typo causing related branches to Error 500 Improved SVG sanitizer specs to include smoke tests for clean. Refactored SVG sanitizer Added SVG sanitizer fix to the changelog ...
| * Fix expose of TriggerRequestKamil Trzcinski2016-06-101-1/+1
| |
| * Fix CI TriggerRequest entityrename-ci-commit-phase-4Kamil Trzcinski2016-06-091-1/+1
| |
* | Prefer attributes_for_keys so that it ignores nilsLin Jen-Shin2016-06-091-7/+3
| | | | | | | | Also add a test for setting locked.
* | WIP, try to add views for locked runnersLin Jen-Shin2016-06-091-1/+2
|/
* Add minor corrections related to config of runnerGrzegorz Bizon2016-05-191-1/+1
|
* Improve setting default runner attrs when using APIGrzegorz Bizon2016-05-191-2/+5
|
* Set run untagged option when registering a runnerGrzegorz Bizon2016-05-191-9/+6
|
* Fix a few places where autoloading would failRémy Coutable2016-05-101-6/+4
| | | | | | | | | | | - Fix naming of API::CommitStatuses - Ensure we use require_dependency instead of require - Ensure the namespace is right in lib/api/api.rb, otherwise, we might require Grape::API::Helpers which defines the `#params` method. This is to avoid requiring a file multiple times and getting an "Already initialized constant" error. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix Build#append_trace method usage when trace file doesn't exists yetTomasz Maczukin2016-04-201-2/+3
|
* Fix some typos in documentationTomasz Maczukin2016-04-201-1/+1
| | | | [ci skip]
* Add documentation of incremental trace update APITomasz Maczukin2016-04-201-1/+2
| | | | [ci skip]
* Make sure that appending is done on a valid lengthTomasz Maczukin2016-04-201-1/+11
|
* Add range checkingTomasz Maczukin2016-04-202-4/+18
|
* Add incremental build trace update APITomasz Maczukin2016-04-201-0/+9
|
* Move build eraseable API to proper API contextGrzegorz Bizon2016-02-191-18/+1
|
* Do not allow to modify build if it has been erasedGrzegorz Bizon2016-02-191-0/+3
|
* Use DELETE verb for erasing a build contentGrzegorz Bizon2016-02-191-2/+4
| | | | Also added API specs for that
* And CI API endpoint where user can erase a buildGrzegorz Bizon2016-02-191-0/+16
|
* Merge branch 'fix-ci-runners-version-update' into 'master' Robert Speicher2016-01-273-4/+9
|\ | | | | | | | | | | | | | | | | Fix CI runner version not being properly updated when asked for a build Due to broken implementation of attribute_for_keys the runner information was not updated correctly. This MR adds test to check that such scenario will never happen again. See merge request !2618
| * Fix CI runner version not being properly updated when asking for a buildfix-ci-runners-version-updateKamil Trzcinski2016-01-273-4/+9
| | | | | | | | | | | | Due to broken implementation of attribute_for_keys the runner information was not updated correctly. This MR adds test to check that such scenario will never happen again.
* | Fix hot reloading for CI APIhot-reloadingKamil Trzcinski2016-01-261-1/+1
|/
* Change dependencies.builds to depends_on_buildsKamil Trzcinski2016-01-151-4/+2
|
* Let the CI runner know about builds that this build depends onci/build_dependenciesKamil Trzcinski2016-01-142-6/+17
| | | | This allows us to implement artifacts passing: runner will download artifacts from all prior builds
* Refactor build artifacts upload API endpointGrzegorz Bizon2016-01-141-8/+7
|
* Update build artifacts APIGrzegorz Bizon2016-01-142-10/+8
| | | | | We do not want to allow runners to upload a metadata file. This needs to be generated by Workhorse only.
* Modify artifacts upload API endpoint, add artifacts metadataGrzegorz Bizon2016-01-142-4/+17
|
* Use method that creates runners registration tokenGrzegorz Bizon2015-12-231-1/+1
| | | | `runners_registration_token` now creates a new token if it is blank.
* Merge branch 'master' into ci/persist-registration-tokenGrzegorz Bizon2015-12-147-289/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (66 commits) Fix runners admin view Fix migrations Rename mention of gitlab-git-http-server to gitlab-workhorse Bump Redis requirement to 2.8 for Sidekiq 4 requirements Fix wording on runner setup page add details on how to change saml button label Fix tests Move awards back to gray panel and few improvements to sidebar Few UI improvements to new sidebar implementation Fix tests for new issuable sidebar Update changelog Implement new sidebar for merge request page Make edit link on issuable sidebar works Redesign issue page for new sidebar Move awards css to separate file Implement issuable sidebar partial Update CHANGELOG Clarify cache behavior Run builds from projects with enabled CI Use Gitlab::Git instead of Ci::Git ... Conflicts: db/schema.rb