Commit graph

143 commits

Author SHA1 Message Date
Mark Fletcher 3f9c610eb6 Setup and test stage jobs detect and run failures from previous pipeline
- This change aims to reduce the feedback time when resolving failed
  tests for a Merge Request
- The setup jobs will detect the previous test files associated with
  failed jobs in the test stage of the previous pipeline
- The test stage jobs will execute a rerun based on those detected
  test files
2021-10-25 12:18:54 +01:00
Albert Salim a7775f10a6 Revert "Merge branch 'jobs-to-rerun-failed-tests-from-results' into 'master'"
This reverts merge request !69053
2021-10-25 09:47:13 +00:00
Mark Fletcher c7742bdc85 Setup and test stage jobs detect and run failures from previous pipeline
- This change aims to reduce the feedback time when resolving failed
  tests for a Merge Request
- The setup jobs will detect the previous test files associated with
  failed jobs in the test stage of the previous pipeline
- The test stage jobs will execute a rerun based on those detected
  test files
2021-10-22 09:04:41 +01:00
Sean McGivern b3c5c99600
Simplify adding new Redis instance
The main sticking point was `config/README.md`, which went into a lot of
detail about each instance. It was quite easy to make a copy and paste
error, as some instances had default URLs and others didn't, some had
fallback instances and others didn't, etc.

This changes a number of things:

1. `config/README.md` now has a table for the Redis instances with a
   single list of instructions that apply to all instances.
2. There are now specs to ensure that each Redis instance has a default
   URL set when no Redis config at all is present.
3. Instances that use a fallback instance for config will automatically
   use the default URL of their fallback instance. They should not
   define their own default URL.
4. The `.gitignore` file does not need to be updated for each new Redis
   instance.
5. The example config files are now gone as `request.yml.example` should
   be sufficient.
2021-09-30 10:01:58 +00:00
Sean McGivern 2f89dcdb69
Add Gitlab::Redis::RateLimiting Redis instance
This instance is not used yet, but will soon be used for rate limiting
via Rack::Attack and Gitlab::ApplicationRateLimiter. Having this
configuration option in place will allow us to build on that, and also
create merge requests to support this option in Omnibus and our Helm
charts.
2021-09-28 11:05:21 +00:00
Vitaly Slobodin bd710a55b6 Remove Karma and anything related 2021-09-03 14:50:29 +00:00
Mike Russo 53db3c331b A first draft for emacs configuration instructions 2021-08-25 13:07:53 +00:00
Heinrich Lee Yu b6522f806e
Remove unused ActionCable standalone files
We decided not to support running ActionCable on a separate Puma process
so we no longer need these files
2021-07-08 21:00:58 +08:00
Jacob Vosmaer 33d2c0b653 Add Gitlab::Redis::TraceChunks instance
This is not used yet but merging this allows us to start writing
config management code in Omnibus etc. already.
2021-06-08 12:42:12 +00:00
Jacob Vosmaer 357fb56c54 Revert "Merge branch 'jv-redis-trace-chunks-store' into 'master'"
This reverts merge request !62767
2021-06-07 09:12:44 +00:00
Jacob Vosmaer 9afe7ae6c2 Add Gitlab::Redis::TraceChunks instance
This is not used yet but merging this allows us to start writing
config management code in Omnibus etc. already.
2021-06-04 12:03:53 +00:00
Andrejs Cunskis 6442cf54ad
Add .solargraph_example.yml configuration file 2021-04-14 17:12:18 +03:00
Vitaly Slobodin 0aef363cb3 Add stylelint cache file to .gitignore 2021-03-11 13:03:13 +03:00
Thong Kuah 0d846f03e5 Record deprecation warnings using deprecation_toolkit
This uses a standard-ish file format to save us re-inventing the wheel
2020-11-23 20:34:04 +13:00
Alex Kalderimis d25fd5842d Add specs for simple lazy promise
This promise abstracts over a few different kinds of laziness we have,
without coupling super tightly to the GitlabSchema.
2020-10-30 12:22:42 +00:00
Rémy Coutable 5acb0662af
Add a default Lefthook configuration
- This adds a configuration file for Lefthook which is more flexible
  and powerful than Overcommit.
- The only downside is that if gather the diff between `origin/master`
  and `HEAD` so if you didn't fetch `origin/master` for a long time,
  the checks might be done on more files than the one that you updated.
- Also, that means you need a origin remote.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2020-10-29 13:27:27 +01:00
Gabriel Mazetto cf65b8a103 Merge branch '270051-fj-generate-sitmap-dot-com' into 'master'
POC sitemap for gitlab-org subgroup including public projects

See merge request gitlab-org/gitlab!45645
2020-10-28 18:40:51 +00:00
Albert Salim 471541ec91 Add Crystalball into rspec
- Configure rspec with Crystalball using custom CoverageLinesStrategy
for compatibility with SimpleCov on Ruby >= 2.5
- Running rspec with `CRYSTALBALL=true` generates crystalball data
in `crystalball/*.yml` containing files covered by each rspec example
2020-10-28 14:10:05 +00:00
fjsanpedro ea07db725d Add sitemap generator for .com and gitlab-org group
In this commit we add a small functionality to generate the sitemap
for the `gitlab-org` group just in the .com environment.

The idea behind this is to analyze whether a broader sitemap
would improve the search crawling results.
2020-10-27 09:10:31 +00:00
Eulyeon Ko e6c93d67ad Ignore sitespeed-result dir
Ignore the directory "sitespeed-result" created by "gdk measure".
2020-09-23 10:41:18 +09:00
Albert Salim 824cfe3822 Detect matching EE and FOSS tests based on MR changes 2020-09-01 10:24:39 +00:00
pbair 585fcd3048 Remove git ignored schema_migration files
Remove db/schema_migration files from .gitignore for old migrations that
exist on legacy installations but no longer have a corresponding
migration in the codebase. Due to changes in how the schema_migration
files are created, these files no longer need to be ignored.
2020-08-24 12:34:56 -04:00
Thong Kuah bf5b5cf96b Add JWT signing for internal cluster agent API
This ensures only gitlab-kas can make requests to the internal API,
which is necessary as sensitive info is returned in response.

Update instances where we explicitly want to use the top-level
::Clusters module
2020-08-21 11:12:15 +00:00
Thong Kuah ca9ece1901 Remove exact repetition in .gitignore 2020-08-18 23:19:58 +00:00
Thong Kuah 8a4d52bc40 Ignore migrations that were previously reverted
*   1 6f26472d90
*   1 b7e3a1e040
*   1 b04ce84f07
*   1 4c4f72f625
*   1 5ca1325f2a
*   1 10aa097ad6
*   1 18492d86d99"
*   1 333c4f611f
*   1 0a97ae318d
*   1 fc8ea4727f
*   2 75245d6bff
*   1 aca93b8f11
*   2 8d4d97054a
*   4 bff25ae0be
*   1 8d4d97054a
*   3 2cdd4d845e
*   1 43e8d050d9
*   1 d85303e8f2
2020-07-30 13:54:53 +12:00
Thong Kuah c174db360a Ignore migrations resulting from cleanup commits
- cfae6ec264
- ef1efa0f65
- 28ac2d3049
- b87dcc238a
2020-07-30 13:49:59 +12:00
Thong Kuah 361e8bda69 Ignore files resulting from migrations 2017 and older
Such migrations are likely from the following commits:

* bac4d96d
* 381b7065
* cfae6ec2
* 763f9ee5
* e3f4377c
2020-07-30 13:25:15 +12:00
Thong Kuah e21f52a352 Ignore previously deleted migrations
Rather than asking each contributor to sort out un-tracked files, we
ignore the db/schema_migrations for previously deleted migrations
2020-07-30 11:25:21 +12:00
Robert May 7b7f26deb1 Ignore asdf .tool-versions file
asdf-vm uses a different file to other managers, this adds
.tool-versions to the ignore list, which is a file needed to manage the
Ruby version locally to this project.
2020-06-29 11:18:53 +01:00
Yorick Peterse ee2035d375
Ignore the unreleased-ee changelogs directory 2020-06-08 16:24:29 +02:00
Albert Salim cdaa892dcf Run rspec foss-impact in canonical MR pipelines 2020-06-02 15:10:30 +08:00
Albert Salim 7f775275b0 Add job to check for ee ruby code in foss
This job runs in gitlab MR pipelines when
the pipeline is a pipeline for merged result.

It runs as if foss, without ee/ directory.
It detects ruby foss files changed and runs matching
rspec test files to detect any EE dependency
that might exist in FOSS.
2020-06-02 15:10:20 +08:00
Albert Salim f257ebd63c Remove rack_attack initializer from gitignore 2020-05-27 03:36:13 +00:00
NataliaTepluhina 17215db1dd Add VSCode apollo config to gitignore 2020-05-26 09:21:40 +03:00
Michał Zając 10a255f1f7 Ignore config/Gitlab.gitlab-license file
`ee/lib/tasks/gitlab/license.rake` tries to load
`Settings.source.dirname + 'Gitlab.gitlab-license'` which expands to
`config/Gitlab.gitlab-license` for a default GDK installation.

This file should be ignored so developers can put their license files
and not worry about commiting the file.
2020-03-20 17:05:52 +00:00
Heinrich Lee Yu 6c9c7fbfed
Enable ActionCable as a standalone server
Adds scripts to start Puma for ActionCable and example config
for GDK
2020-03-18 00:50:17 +08:00
Grzegorz Bizon 2f8e1f17bc Ignore node_modules even if it is a symlink 2020-03-10 15:46:42 +01:00
Heinrich Lee Yu ed82bad7eb
Ignore ActionCable config file 2020-02-25 00:26:05 +08:00
Michael Kozono f0d346045b Ignore solargraph config file 2020-01-30 09:13:46 +00:00
Rémy Coutable eb1b96f7be
Introduce a Gemfile dedicated to Overcommit to avoid conflicts
Running Overcommit outside of the context of a Gemfile can lead to
conflicts when requiring gems. Using a dedicated Gemfile instead of the
default one avoids loading all the app's gems before running Overcommit.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2020-01-23 18:43:10 +01:00
Alex Kalderimis 0085a5be13 Respond to reviewer feedback
* Add documentation for public methods
* Remove pointless duplicated method call
* Be more specific about ignored file
* Improvements to equality tests

Requested by reviewer
2020-01-07 12:13:45 +00:00
Sean McGivern ded5cdcbe8 Merge branch '13495-b-graphql-additions' into 'master'
13495-b: Add graphql additions needed by #13495

See merge request gitlab-org/gitlab!21264
2019-12-23 09:20:34 +00:00
Inactive Account e9dd76234e Enable caching for ESLint 2019-12-20 19:46:27 +00:00
Alex Kalderimis 28ca2f91cb Ignore neovim override configuration 2019-12-20 17:34:05 +01:00
Tristan Read 61e24884b6 Include date, commit sha in output
Make fields easier to grep.
2019-12-04 14:35:12 +00:00
Krasimir Angelov 70cfc82d74 Rename .gitlab_pages_shared_secret to .gitlab_pages_secret
to match the file generated by Omnibus.

See https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/3705
2019-11-21 17:32:04 +13:00
Rémy Coutable afed50a0fb Merge branch 'rs-only-failures' into 'master'
Enable RSpec example_status_persistence_file_path setting

See merge request gitlab-org/gitlab!19655
2019-11-18 10:59:14 +00:00
Sanad Liaquat 0d175df3a3 Add specs for group managed accounts
Also adds necessary page objects and element selectors
and stablizes existing group_saml specs
Also adds /qa/.rakeTasks generated for Ruby mine to gitignore
2019-11-15 12:34:21 +05:00
Robert Speicher 8282559697
Enable RSpec example_status_persistence_file_path setting
Only enabled outside of CI environments.
2019-11-05 13:53:20 -06:00
Matija Čupić bc2cc12731 Add projections file 2019-09-25 15:27:31 +00:00