1046 Commits

Author SHA1 Message Date
Alice Kober-Sotzek
c729d75a76 Correct submodule reference to plugins/replication
Idc0c29374 reverted the submodule reference to plugins/replication
for no apparent reason. Because of this, the submodule is always
reported as dirty by Git.

Change-Id: Ic511f3c165cec5cb41dcebb899f9c27a2eeb4dd0
2019-12-04 09:35:52 +01:00
David Pursehouse
42ebc67bb7 Update git submodules
* Update plugins/delete-project from branch 'master'
  to 39dd25c822be14a69282d38e5205f0ca4f2902c1
  - Merge branch 'stable-3.1'
    
    * stable-3.1:
      Fix so that GWTUI js file is not executed under PolyGerrit
      DeleteProjectIT: Check that project gets unwatched after deletion
      DeleteProjectIT: Assert that after forced delete reindexing happened
      DeleteProjectIT: Add ssh delete watched project test similar to http
      Fix reindex after project deletion
      Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API
      Upgrade bazlets to latest stable-2.16
      Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API
      Upgrade bazlets to latest stable-2.15
      Upgrade bazlets to latest stable-2.14
      Bazel: Migrate workspace status script to python
      Upgrade bazlets to latest stable-2.16
      Upgrade bazlets to latest stable-2.15
      Upgrade bazlets to latest stable-2.14
      Bump Bazel version to 1.1.0
      build.md: Correct in-tree test command
      Replace bazel-genfiles with bazel-bin in documentation
    
    Change-Id: I68db79e2797b254c7fd79d8587b51e066f81b7f4
    
  - Merge branch 'stable-3.0' into stable-3.1
    
    * stable-3.0:
      Fix so that GWTUI js file is not executed under PolyGerrit
      DeleteProjectIT: Check that project gets unwatched after deletion
      DeleteProjectIT: Assert that after forced delete reindexing happened
      DeleteProjectIT: Add ssh delete watched project test similar to http
      Fix reindex after project deletion
      Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API
      Upgrade bazlets to latest stable-2.16
      Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API
      Upgrade bazlets to latest stable-2.15
      Upgrade bazlets to latest stable-2.14
      Bazel: Migrate workspace status script to python
      Upgrade bazlets to latest stable-2.16
      Upgrade bazlets to latest stable-2.15
      Upgrade bazlets to latest stable-2.14
      Bump Bazel version to 1.1.0
      build.md: Correct in-tree test command
      Replace bazel-genfiles with bazel-bin in documentation
    
    Adjust DeleteProjectIT and DatabaseDeleteHandler to API changes.
    
    Change-Id: I7dd082b728fa7a98b225c10ef6d2ecf11e7daa09
    
  - Merge branch 'stable-2.16' into stable-3.0
    
    * stable-2.16:
      Fix so that GWTUI js file is not executed under PolyGerrit
    
    Change-Id: I9b5e59bb31cc7de07cf863af7baebe556e8f494f
    
  - Merge "Fix so that GWTUI js file is not executed under PolyGerrit" into stable-2.16
  - Merge branch 'stable-2.16' into stable-3.0
    
    * stable-2.16:
      DeleteProjectIT: Check that project gets unwatched after deletion
      DeleteProjectIT: Assert that after forced delete reindexing happened
      DeleteProjectIT: Add ssh delete watched project test similar to http
      Fix reindex after project deletion
      Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API
      Upgrade bazlets to latest stable-2.16
      Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API
      Upgrade bazlets to latest stable-2.15
      Upgrade bazlets to latest stable-2.14
      Bazel: Migrate workspace status script to python
      Upgrade bazlets to latest stable-2.16
      Upgrade bazlets to latest stable-2.15
      Upgrade bazlets to latest stable-2.14
      Bump Bazel version to 1.1.0
      build.md: Correct in-tree test command
      Replace bazel-genfiles with bazel-bin in documentation
    
    Change-Id: Ic060483ccb190c7f31c3bb13eeb15d230c3378b1
    
  - Merge branch 'stable-2.15' into stable-2.16
    
    * stable-2.15:
      DeleteProjectIT: Check that project gets unwatched after deletion
      DeleteProjectIT: Assert that after forced delete reindexing happened
      DeleteProjectIT: Add ssh delete watched project test similar to http
      Fix reindex after project deletion
    
    Change-Id: I29fca09892a5a6878547c5d0bbd2966310d986a3
    
  - Merge changes Iaf1826ab,I02632cb6,I5ca2ec2b,I6578e664 into stable-2.15
    
    * changes:
      DeleteProjectIT: Check that project gets unwatched after deletion
      DeleteProjectIT: Assert that after forced delete reindexing happened
      DeleteProjectIT: Add ssh delete watched project test similar to http
      Fix reindex after project deletion
    
  - Fix so that GWTUI js file is not executed under PolyGerrit
    
    When using PolyGerrit, it appears that it loads GWTUI specific
    delete-project js files. It dosen't appear to inject "window.Polymer"
    into it thus will always equal undefined or false.
    
    To fix this we look for the GERRIT_UI cookie which if the user is using
    GWTUI, will have this set.
    
    Change-Id: I2512fe18108799f3a73b00ada8a756eb6e397879
    
  - DeleteProjectIT: Check that project gets unwatched after deletion
    
    Change-Id: Iaf1826ab98280aa042304b30d873575c71bdac60
    
  - DeleteProjectIT: Assert that after forced delete reindexing happened
    
    Unit tests didn't check whether reindexing happened after deletion or
    not. In NoteDb case even after git repo got deleted changes were still
    present in the index, so querying on a deleted project name returned
    change information.
    
    Bug: Issue 11650
    Change-Id: I02632cb6195e262478850e5ec589d01aab4a9ef3
    
  - DeleteProjectIT: Add ssh delete watched project test similar to http
    
    Change-Id: I5ca2ec2b7df92a8fc24135c4d94efe00ab4d761e
    
  - Fix reindex after project deletion
    
    Make plugin to properly support NoteDb.
    
    DatabaseDeleteHandler:
    - Check if ReviewDb is enabled from inside DatabaseHandler.
    - Add functionality for deleteChanges to check whether ReviewDb is
      enabled, since NoteDb behaves differently compared to ReviewDb.
    
    Bug: Issue 11650
    Change-Id: I6578e6649e9fe0d8c139243cdade8c86e1b6c0ed
    
  - Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API
    
    Change-Id: Ib378315a93969b1de605e2d9cc8b2758f37920e4
    
  - Upgrade bazlets to latest stable-2.16
    
    download_file.py: Fix root workspace directory detection
    
    Change-Id: I26017fc180b761feba2b5f01d4eb7a0e7c7b690c
    
  - Merge branch 'stable-2.15' into stable-2.16
    
    * stable-2.15:
      Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API
      Upgrade bazlets to latest stable-2.15
      Upgrade bazlets to latest stable-2.14
      Bazel: Migrate workspace status script to python
    
    Change-Id: Ib8b9c5efc04f2b2f983c091bf96c4eafeca510ec
    
  - Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API
    
    Change-Id: Icf85a0b3340f2bfe58b3b21ec57a2640cf8a1ba4
    
  - Merge branch 'stable-2.14' into stable-2.15
    
    * stable-2.14:
      Upgrade bazlets to latest stable-2.14
      Bazel: Migrate workspace status script to python
    
    Change-Id: I9ff2983f304b3cfa04ef88401f09d33c5746595f
    
  - Upgrade bazlets to latest stable-2.15
    
    download_file.py: Fix root workspace directory detection
    
    Change-Id: I1c5eb23dfe5978270c10ef6d2baaed7ecd0a04fc
    
  - Upgrade bazlets to latest stable-2.14
    
    download_file.py: Fix root workspace directory detection
    
    Change-Id: Id2da57a98ab0344dc9942d9ff0338309494b0f48
    
  - Bazel: Migrate workspace status script to python
    
    Migrate tools/workspace-status.sh script to Python to ensure better
    compatibility with other operating systems, as suggested in: [1].
    
    [1] https://github.com/bazelbuild/bazel/issues/5958
    
    Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
    
  - Upgrade bazlets to latest stable-2.16
    
    Fix genrule2 to clean up temporary folder content
    
    Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2
    
  - Merge branch 'stable-2.15' into stable-2.16
    
    * stable-2.15:
      Upgrade bazlets to latest stable-2.15
      Upgrade bazlets to latest stable-2.14
      Bump Bazel version to 1.1.0
    
    Change-Id: Ie6b12736c2b07752cf91908764bf828a83694c6c
    
  - Upgrade bazlets to latest stable-2.15
    
    Fix genrule2 to clean up temporary folder content
    
    Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2
    
  - Merge branch 'stable-2.14' into stable-2.15
    
    * stable-2.14:
      Upgrade bazlets to latest stable-2.14
    
    Change-Id: I53bd20467b8c6268a102acc75badcaf7290ce720
    
  - Upgrade bazlets to latest stable-2.14
    
    Fix genrule2 to clean up temporary folder content
    
    Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2
    
  - Merge branch 'stable-2.14' into stable-2.15
    
    * stable-2.14:
      Bump Bazel version to 1.1.0
    
    Change-Id: Ia7d244ec3ec3ae0078cb8b766bef95b3c9be922a
    
  - Bump Bazel version to 1.1.0
    
    Change-Id: I4e4c2a3c6f1b73e913fd6eda7e53f30fd8a20985
    
  - Merge branch 'stable-2.15' into stable-2.16
    
    * stable-2.15:
      build.md: Correct in-tree test command
    
    Change-Id: Iea24800c7100e6c0ab405158a3573eceb0f3957e
    
  - build.md: Correct in-tree test command
    
    Change-Id: Iff17be4a87b058eeabc30faf774c04e26f9d51ea
    
  - Merge branch 'stable-2.15' into stable-2.16
    
    * stable-2.15:
      Replace bazel-genfiles with bazel-bin in documentation
    
    Change-Id: I1496826af979861ef9391d113430379535a152e4
    
  - Merge branch 'stable-2.14' into stable-2.15
    
    * stable-2.14:
      Replace bazel-genfiles with bazel-bin in documentation
    
    Change-Id: I70ea61357ec662fa2e18325a437185d27bcd4f3d
    
  - Replace bazel-genfiles with bazel-bin in documentation
    
    Bug: Issue 11757
    Change-Id: I0c901f84e0c4c07a4ae913eab4f71e1f6167dab5
2019-12-04 07:40:00 +00:00
David Pursehouse
7605582044 Update git submodules
* Update plugins/hooks from branch 'master'
  to 6316be2828808dafc546ecd11c055396d0b4951b
  - Merge branch 'stable-3.1'
    
    * stable-3.1:
      Fix and clarify documentation of ref-update and commit-received hooks
      Correct documentation of ref-update hook regarding output
    
    Change-Id: I0926e8a9ab58be09ba7c30b3834ddf86b483480f
    
  - Merge branch 'stable-3.0' into stable-3.1
    
    * stable-3.0:
      Fix and clarify documentation of ref-update and commit-received hooks
      Correct documentation of ref-update hook regarding output
    
    Change-Id: Ifa4fefac518fc170f3248ebfcbe5e1a338e46c0f
    
  - Merge branch 'stable-2.16' into stable-3.0
    
    * stable-2.16:
      Fix and clarify documentation of ref-update and commit-received hooks
      Correct documentation of ref-update hook regarding output
    
    Change-Id: Ia446c95e1f6ca12e1cbd198d3a7e4f6a16b09fc6
    
  - Fix and clarify documentation of ref-update and commit-received hooks
    
    - Clarify behavior of ref-update when multiple commits are pushed, i.e.
      that it is only called once for the entire ref update.
    
    - Fix the documentation of commit-received which states that it is called
      for changes pushed for review. In fact it is also called for direct
      pushes, but unlike ref-update it is called once for each commit.
    
    Change-Id: Ie3e2dcab37eeb5d0ed06e05322e72d3fc73925fd
    
  - Correct documentation of ref-update hook regarding output
    
    The output of the hook is only returned when the update is rejected,
    not regardless of the return code as stated in the doc.
    
    Change-Id: I93483f44e31e7055c302c0758084de868d1c4f93
2019-12-02 10:23:39 +00:00
Dhruv Srivastava
ec4b56677f Add a different color for robot comments
* If comment thread ends with robot comment change color

Change-Id: Idc0c29374fc5a2d500b865920c67a7f883a2094e
2019-11-28 14:27:10 +01:00
David Pursehouse
d7d693c891 Update replication plugin to get fixes for IT flakiness
4689b41 ReplicationIT: Increase timeout for tests
69bce43 ReplicationIT: Retry/timeout on assertion of replication tasks count

Bug: Issue 11843
Change-Id: I1e35f2c981ef88000ed6094fa887998cff599560
2019-11-27 19:01:00 +09:00
Ben Rohlfs
e3efebce6e Update git submodules
* Update plugins/codemirror-editor from branch 'master'
  to 9508693bd0a85560674143256314beac08f2d8ca
  - Replace 'Menlo' with 'SF Mono'
    
    'Menlo' was replaced by 'SF Mono' from Mac OS 10.11,
    And Menlo is not rendering symbols and characters correctly.
    
    See also https://gerrit-review.googlesource.com/c/gerrit/+/246513
    
    Change-Id: Iff8c94d5d77d7388f32bb62d67438e5e97f2ab80
2019-11-22 18:41:57 +00:00
David Pursehouse
c9cdc7a791 Merge "Move acceptance.GerritConfig into its own package" 2019-11-15 02:33:11 +00:00
Patrick Hiesel
b3d67168a6 Move acceptance.GerritConfig into its own package
This makes the annotation usable even in cases where we don't want
to link the entire acceptance framework. For example: Query tests.

Change-Id: I5050091e2792472b0312f50ae4572ca6e6c0abf9
2019-11-14 17:18:23 -08:00
David Pursehouse
598435e31a Merge branch 'stable-3.1'
* stable-3.1:
  Revert "MergeValidationListener: Include the change Id in onPreMerge"

Change-Id: I376a8d85fa934d9b7437ea52788f241e827cdfec
2019-11-13 00:56:41 -08:00
David Pursehouse
e144607151 Merge branch 'stable-3.0' into stable-3.1
* stable-3.0:
  Revert "MergeValidationListener: Include the change Id in onPreMerge"

Change-Id: I75d6103e25ac9254ee3a99878a2775c63d55c355
2019-11-13 00:53:06 -08:00
David Pursehouse
1dd5f388bc Merge branch 'stable-2.16' into stable-3.0
* stable-2.16:
  Revert "MergeValidationListener: Include the change Id in onPreMerge"

Change-Id: Icd9cb70df3e4411a41c7db99c277eaf1706f574e
2019-11-13 00:46:48 -08:00
David Pursehouse
85324e5db6 Revert "MergeValidationListener: Include the change Id in onPreMerge"
Rather than passing in the change Id, which is a breaking API change,
let the implementation get the change Id from the patch set Id.

This reverts commit 593a5007052c340920d5715e62b4eeec617a6f54.

Bug: Issue 11905
Change-Id: Ieba95cadcf7a4f60664120c59916ebce4a1caca4
2019-11-13 00:36:40 -08:00
David Pursehouse
900833599c Merge branch 'stable-3.1'
* stable-3.1:
  Fix JSDoc comments for behaviors
  Use attribute binding for data-... attributes
  Fix missing HTML links
  Avoid browser caching for diff on edit patch
  MergeValidationListener: Include the change Id in onPreMerge
  Upgrade jackson-core to 2.10.1
  Add border between robot comment and action buttons

Change-Id: Ifdded7a4f552ea3222e178d15adc2f4febcde177
2019-11-12 14:59:53 -08:00
David Pursehouse
b226a69ba3 Merge branch 'stable-3.0' into stable-3.1
* stable-3.0:
  Avoid browser caching for diff on edit patch
  MergeValidationListener: Include the change Id in onPreMerge
  Upgrade jackson-core to 2.10.1

Change-Id: Ie35736b6dcfd4f85c96f87d705e1257ea801a355
2019-11-12 14:13:04 -08:00
David Pursehouse
4504f514a0 Merge branch 'stable-2.16' into stable-3.0
* stable-2.16:
  Avoid browser caching for diff on edit patch
  MergeValidationListener: Include the change Id in onPreMerge
  Upgrade jackson-core to 2.10.1

Change-Id: I1eb449cda2fa0d95029271f29a7b5c0e161edb97
2019-11-12 13:36:34 -08:00
David Pursehouse
593a500705 MergeValidationListener: Include the change Id in onPreMerge
Bug: Issue 11905
Change-Id: Ib0a65d12991b768f169cfe7fd562dcf8defc4d74
2019-11-12 09:40:48 -08:00
David Pursehouse
c87019a0ef Update git submodules
* Update plugins/replication from branch 'stable-3.1'
  to 5e3cbc8e7e45172790e777ec0576b08b65934b09
  - Remove unused private methods
    
    Change-Id: Ibad18b68f471bfb2e6fadaf1455993aa2d382d9d
2019-11-10 18:10:27 +00:00
Martin Fick
1497539124 Update git submodules
* Update plugins/replication from branch 'stable-3.1'
  to 51750cae8ba3c68bcefedbe8b05faabf9ea5ada4
  - Create persistent task files safely
    
    Use a temporary directory to create the files in first to avoid
    partially written files being exposed in the waiting directory.
    
    Change-Id: I82222e16b52926ced304cb24eadd1c8d56cf9a7a
    
  - Fix potential loss of persisted replication task
    
    There was a race window between the check to see if any new updates were
    available for the completed update and the deletion of the persistent
    update. If an update occurred in that window it could leave the event
    missing from the persisted task store. If the server went down before
    this update completed, the update would be missed entirely.
    
    Eliminate the race by separating the running tasks from the waiting
    tasks in the persistent store by placing each into their own
    subdirectories. Place new waiting tasks in a "waiting" directory and
    move them to the "running" directory once they are running. This allows
    new updates to be persisted to the "waiting" directory while a similar
    update is running without the waiting task getting deleted when the
    persisted running task is deleted. On startup, reset all running tasks
    by moving them back to the waiting directory to ensure that they are
    retried.
    
    Reset "running" tasks (return them to the "waiting" directory) when a
    retry is rescheduled, this allows the retry to be consolidated with the
    new run, and helps ensure that the persistence store reflects what is
    actually happening better.
    
    Bug: Issue 11672
    Change-Id: Ia31329e8d939f8e5cb1e7455de69744431f34d66
2019-11-10 17:16:27 +00:00
David Pursehouse
8506c6fdfb Update git submodules
* Update plugins/replication from branch 'master'
  to d7c09fbb4c18b1743d6060d361171c2a5237f22b
  - Merge branch 'stable-3.0'
    
    * stable-3.0:
      Clarify that starred-changes ref is not needed on slaves
    
    Change-Id: I4248889146c31d8f956dd0b3ff7a3c4881b97773
    
  - Merge branch 'stable-2.16' into stable-3.0
    
    * stable-2.16:
      Clarify that starred-changes ref is not needed on slaves
    
    Change-Id: Id58a2c1038df9a576312a732ffe2429b7382a5d5
    
  - Clarify that starred-changes ref is not needed on slaves
    
    When using the replication plugin to push to a Gerrit slave
    or to a standard Git repository, refs/starred-changes/* is not
    needed in the replication.config.
    
    Change-Id: Ia77da5a0a8b0247470507bf28680117801c441d3
2019-11-10 16:43:41 +00:00
David Pursehouse
0d3ad3f352 Merge branch 'stable-2.16' into stable-3.0
* stable-2.16:
  Set version to 2.16.14-SNAPSHOT
  Set version to 2.16.13
  Update git submodules
  Init: handle multiple httpd.listenUrl entries

Change-Id: I635edd2cfeb18f51e404ff5a6c716a55724493bf
2019-11-09 18:33:15 +09:00
Luca Milanesio
3b88cf12b2 Update git submodules
* Update plugins/plugin-manager from branch 'master'
  to d486f1edac54c63c46f92c93fa15958f89cfe60f
  - Merge branch 'stable-2.16'
    
    * stable-2.16:
      Set next version to 3.1
    
    Change-Id: I71973fc0b2e2764997f7007beabb2d257ca3f6eb
    
  - Set next version to 3.1
    
    Next forthcoming Gerrit version is 3.1 and thus the plugin-manager
    should return master plugins when the version string starts with
    3.1 *ONLY*.
    
    Bug: Issue 11880
    Change-Id: I49e193c75d2937b2ddb8dd67c1d84bf8b4e52bb9
2019-11-08 06:28:10 +00:00
Luca Milanesio
842c26cd41 Update git submodules
* Update plugins/replication from branch 'stable-2.16'
  to 22ef9a9634008dfc09ea4dae6f17d99aa4dbbb81
  - Clarify that starred-changes ref is not needed on slaves
    
    When using the replication plugin to push to a Gerrit slave
    or to a standard Git repository, refs/starred-changes/* is not
    needed in the replication.config.
    
    Change-Id: Ia77da5a0a8b0247470507bf28680117801c441d3
2019-11-07 23:20:57 +00:00
Nick Talbot
fadfa30d87 Update git submodules
* Update plugins/hooks from branch 'master'
  to 71cdc88f4804a4811e613d8679862cb33dd75cc1
  - Clarify when patchset-created event isn't created.
    
    Bug: Issue 8724
    Change-Id: If2d046c2fef61c9d3ccb5699a4d192fb22862bb1
2019-10-30 04:16:45 +00:00
Paladox
002278f1be Update plugins/codemirror-editor to the latest master revision
Adds the following commit:

92ce310 - Add django, handlebars, jinja2, rpm and sparql languages

Change-Id: I152e56c5eb98caac78a911653cfe97fbd71627c4
2019-10-30 09:55:22 +09:00
Martin Fick
c281954486 Update git submodules
* Update plugins/replication from branch 'master'
  to 4786c07027a0040810ae3e6a517f737cb57e1283
  - Prune non-waiting tasks from queue during distribution
    
    Make the replication distributor also prune the tasks which have been
    removed from the persistent waiting directory but that are still in the
    queue. Since these tasks are not in the waiting directory, they will not
    run once they could run anyway. Cleaning these tasks up gives a more
    accurate picture of the replication work still needing to be done.
    Presumably these tasks have been removed externally by another actor
    (likely because they completed on another master in the cluster). This
    keeps the scheduled and waiting lists approximately synchronized across
    all the nodes in a multi-master cluster.
    
    Change-Id: If99ed75041fa07632fdc0f23473dad4d8942a3e1
    
  - Add a replication distributor
    
    The distributor schedules everything from the persistent waiting list
    every replication.distributionInterval so that replication can act on
    externally written tasks (likely by other nodes in the cluster). The
    interval defaults to 0, off.
    
    Change-Id: I8d7799b3a6f3f5362561fc593e52628ec2de51d4
2019-10-30 00:06:21 +00:00
Ben Rohlfs
717e39195f Revert accidental change to plugins/replication commit
The file was changed in https://gerrit-review.googlesource.com/c/gerrit/+/242420

Change-Id: I7b7f61a0959d9bbc86d395ea9923a04835ba8a4c
2019-10-29 14:26:17 +00:00
Ben Rohlfs
4a809aabdc Change font-size to 14px and tweak the UI
Changes the normal font-size from 13px to 14px.

Enforces 24px row height in change metadata and change requirements for
most rows. Text spans should always be 20px in height, even for icons
inputs and gr-autocomplete. Metadata titles are not bold anymore.

Converts the --line-height-* css vars from being relative to absolute.
That is extremely useful for specifying height of icons in inline layout
flow.

Reduces tab height (Files, Checks, Change Log, etc.) to 36px.

Dashboard, file list and change log rows are all targeted to have 28px
height: 20px line-height + 2*4px padding. For the change log this seems
too drastic a change, so we are keeping 36px height for now.

Reduces the vertical padding in the diff-view header.

Makes the comment thread widget nicer by replacing the border with
margin, box-shadow and border-radius. Colors the buttons blue and
reduces them to the 20px line height. Change the border color from
black to gray.

Change-Id: I3fc76c64dc42b61f05cbeb8e3a62629240571080
2019-10-29 08:03:12 +01:00
David Pursehouse
4f889cba0d Update git submodules
* Update plugins/replication from branch 'master'
  to 5622267e9fe339e185c6e80978b57100476d8f25
  - Remove unused private methods
    
    Change-Id: Ibad18b68f471bfb2e6fadaf1455993aa2d382d9d
    
  - Get a URI lock before running tasks.
    
    This allows more than one related gerrit process (as in multi-master
    situations) to access the persistent task store at the same time without
    deleting each other's task files. This also prevents more than one gerrit
    process from pushing to the same URI at the same time.
    
    Change-Id: I1f3f4d60605ff21038e722553cb38494e18b9ff9
    
  - Create persistent task files safely
    
    Use a temporary directory to create the files in first to avoid
    partially written files being exposed in the waiting directory.
    
    Change-Id: I82222e16b52926ced304cb24eadd1c8d56cf9a7a
    
  - Fix potential loss of persisted replication task
    
    There was a race window between the check to see if any new updates were
    available for the completed update and the deletion of the persistent
    update. If an update occurred in that window it could leave the event
    missing from the persisted task store. If the server went down before
    this update completed, the update would be missed entirely.
    
    Eliminate the race by separating the running tasks from the waiting
    tasks in the persistent store by placing each into their own
    subdirectories. Place new waiting tasks in a "waiting" directory and
    move them to the "running" directory once they are running. This allows
    new updates to be persisted to the "waiting" directory while a similar
    update is running without the waiting task getting deleted when the
    persisted running task is deleted. On startup, reset all running tasks
    by moving them back to the waiting directory to ensure that they are
    retried.
    
    Reset "running" tasks (return them to the "waiting" directory) when a
    retry is rescheduled, this allows the retry to be consolidated with the
    new run, and helps ensure that the persistence store reflects what is
    actually happening better.
    
    Bug: Issue 11672
    Change-Id: Ia31329e8d939f8e5cb1e7455de69744431f34d66
2019-10-28 21:57:41 +00:00
Ben Rohlfs
1389c4c5d8 Remove redundant font:inherit styles
This is already set in shared-styles.

Change-Id: Iecff0860466608814fbbeb848ce29dc38ea6246c
2019-10-28 07:14:55 +01:00
Martin Fick
9c615a89d3 Update git submodules
* Update plugins/replication from branch 'master'
  to 7a130c30c42ca8bc1e8858513ee8643ca6041b3a
  - Get a URI lock before running tasks.
    
    This allows more than one related gerrit process (as in multi-master
    situations) to access the persistent task store at the same time without
    deleting each other's task files. This also prevents more than one gerrit
    process from pushing to the same URI at the same time.
    
    Change-Id: I1f3f4d60605ff21038e722553cb38494e18b9ff9
2019-10-26 04:47:49 +00:00
Martin Fick
ef6a3acd81 Update git submodules
* Update plugins/replication from branch 'master'
  to 51750cae8ba3c68bcefedbe8b05faabf9ea5ada4
  - Create persistent task files safely
    
    Use a temporary directory to create the files in first to avoid
    partially written files being exposed in the waiting directory.
    
    Change-Id: I82222e16b52926ced304cb24eadd1c8d56cf9a7a
2019-10-25 21:47:04 +00:00
Martin Fick
56d9ecf241 Update git submodules
* Update plugins/replication from branch 'master'
  to 48ff6f398941572243a0fd7aa26e07d6c95696a1
  - Fix potential loss of persisted replication task
    
    There was a race window between the check to see if any new updates were
    available for the completed update and the deletion of the persistent
    update. If an update occurred in that window it could leave the event
    missing from the persisted task store. If the server went down before
    this update completed, the update would be missed entirely.
    
    Eliminate the race by separating the running tasks from the waiting
    tasks in the persistent store by placing each into their own
    subdirectories. Place new waiting tasks in a "waiting" directory and
    move them to the "running" directory once they are running. This allows
    new updates to be persisted to the "waiting" directory while a similar
    update is running without the waiting task getting deleted when the
    persisted running task is deleted. On startup, reset all running tasks
    by moving them back to the waiting directory to ensure that they are
    retried.
    
    Reset "running" tasks (return them to the "waiting" directory) when a
    retry is rescheduled, this allows the retry to be consolidated with the
    new run, and helps ensure that the persistence store reflects what is
    actually happening better.
    
    Bug: Issue 11672
    Change-Id: Ia31329e8d939f8e5cb1e7455de69744431f34d66
2019-10-25 21:46:07 +00:00
Antonio Barone
c199f37d8f Update git submodules
* Update plugins/replication from fefba17b04224e9346a50f6e66944142f4878179
      to 94a465e0989ff8124aca3dca8e200aeb870cc9dd
      - Merge "Decouple observable queue implementation from ReplicationQueue"
      - Decouple observable queue implementation from ReplicationQueue

        Prior to this change, AutoReloadRunnable used to depend on
        ReplicationQueue, which was used just to observe the status of the queue
        during the run() phase of the reloading.

        Decouple reloading of configuration from specific queue implementations
        by depending only on a way to observe the queue, rather than the queue
        itself.

        Incidentally, allow AutoReloadRunnable to be reused by implementations
        that use a different queueing systems, or no queuing at all, such
        as the pull-replication.

        Change-Id: I589c5bf3fb49a53734ba3a991d08db33bc189d3e
      - Merge "Move isSingleProjectMatch() to RemoteConfiguration interface"
      - Merge "Make persistent task keys stable"
      - Merge "Persist tasks before scheduling replication"
      - Move isSingleProjectMatch() to RemoteConfiguration interface

        The logic used to identify whether a configuration is related to a
        single project as opposed to a family of project, is the same across
        destination or source targets.

        Provide a default  isSingleProjectMatch method so that it can be
        leveraged by both replication (for DestinationConfiguration) and by
        pull-replication (for SourceConfiguration)

        Change-Id: I1a366841e77755a1d17cfd9f68fe235a7a099f48
      - Make persistent task keys stable

        GSON was used to create json as the input for sha1 task keys, however
        gson can order the json keys differently anytime. Use the values in a
        specific order to create stable keys.

        Bug: Issue 11760
        Change-Id: I6900b5ddb3ba8ab7b5cf7803ae9dd551b5980a59
      - Persist tasks before scheduling replication

        Consolidate the replication firing paths and in doing so improve the
        replicate-all path to persist events before scheduling them, thus
        reducing the chance the task could be lost on server interruption. This
        consolidation also has the side effect of adding replicate-all events to
        the "beforeStartupEventsQueue" if they somehow happen to get fired
        before replication is started.
        Change-Id: Iaadbb89c4e5bc2f0eb751d26059868ba9cb7e9d7

Change-Id: I3b9da087264124d3b41224d4d754f4a1c44a566b
2019-10-24 22:49:30 +02:00
Luca Milanesio
70b01c5c3f Update git submodules
* Update plugins/replication from branch 'master'
  to 94a465e0989ff8124aca3dca8e200aeb870cc9dd
  - Merge "Decouple observable queue implementation from ReplicationQueue"
  - Decouple observable queue implementation from ReplicationQueue
    
    Prior to this change, AutoReloadRunnable used to depend on
    ReplicationQueue, which was used just to observe the status of the queue
    during the run() phase of the reloading.
    
    Decouple reloading of configuration from specific queue implementations
    by depending only on a way to observe the queue, rather than the queue
    itself.
    
    Incidentally, allow AutoReloadRunnable to be reused by implementations
    that use a different queueing systems, or no queuing at all, such
    as the pull-replication.
    
    Change-Id: I589c5bf3fb49a53734ba3a991d08db33bc189d3e
2019-10-24 10:54:59 +00:00
Antonio Barone
5f6e1caa4e Update git submodules
* Update plugins/replication from branch 'master'
  to 6236969ab60c7f3b943bfafe822ab945c70838b7
  - Merge "Move isSingleProjectMatch() to RemoteConfiguration interface"
  - Move isSingleProjectMatch() to RemoteConfiguration interface
    
    The logic used to identify whether a configuration is related to a
    single project as opposed to a family of project, is the same across
    destination or source targets.
    
    Provide a default  isSingleProjectMatch method so that it can be
    leveraged by both replication (for DestinationConfiguration) and by
    pull-replication (for SourceConfiguration)
    
    Change-Id: I1a366841e77755a1d17cfd9f68fe235a7a099f48
2019-10-23 19:50:17 +00:00
Luca Milanesio
4c4a11b9d4 Update git submodules
* Update plugins/replication from branch 'master'
  to f1cf5e878f2934573c6667adee99ca45f76815a0
  - Merge "Make persistent task keys stable"
  - Make persistent task keys stable
    
    GSON was used to create json as the input for sha1 task keys, however
    gson can order the json keys differently anytime. Use the values in a
    specific order to create stable keys.
    
    Bug: Issue 11760
    Change-Id: I6900b5ddb3ba8ab7b5cf7803ae9dd551b5980a59
2019-10-22 20:54:56 +00:00
Saša Živkov
547b110806 Update git submodules
* Update plugins/replication from branch 'master'
  to 31025f1a1179c4fb7da52408666ee209222d57bb
  - Merge "Persist tasks before scheduling replication"
  - Persist tasks before scheduling replication
    
    Consolidate the replication firing paths and in doing so improve the
    replicate-all path to persist events before scheduling them, thus
    reducing the chance the task could be lost on server interruption. This
    consolidation also has the side effect of adding replicate-all events to
    the "beforeStartupEventsQueue" if they somehow happen to get fired
    before replication is started.
    
    Change-Id: Iaadbb89c4e5bc2f0eb751d26059868ba9cb7e9d7
2019-10-22 13:30:51 +00:00
Paladox none
daccc5b37c Update git submodules
* Update plugins/codemirror-editor from branch 'master'
  to 92ce310ecf717133601b9e824c38bc5e5eafecba
  - Add django, handlebars, jinja2, rpm and sparql languages
    
    Change-Id: Idbaf522cccf1c676f64c86d1114fe652dc36074e
2019-10-21 14:50:40 +00:00
Martin Fick
f576b6fd11 Update git submodules
* Update plugins/replication from branch 'master'
  to fefba17b04224e9346a50f6e66944142f4878179
  - Merge "Fix firing pending "..all.." events on startup"
  - Fix firing pending "..all.." events on startup
    
    The Destination.wouldPushRef() method is called on startup to see if a
    Destination is configured to be pushed to for a specific ref, if it is
    not configured to do so, then firing the pending update is skipped.
    Since the magic "..all.." ref will never match the configuration in
    replication.config, always match it since if replication is configured
    at all, then it should be matched.
    
    Bug: Issue 11745
    Change-Id: I53bd527932e6aea9ddd465772925d601aa034bd3
2019-10-16 16:12:32 +00:00
David Ostrovsky
b03a6e9a71 Rename reviewdb package to entities and dissolve client package
This is long overdue renaming step to manifest that SQL database is
removed from gerrit core. Moreover, client/server package division
was needed due to GWT UI that was removed as well in release 3.0.

Bug: Issue 11678
Change-Id: Icfd83a309a6affac54141e7284e70f1255537dc4
2019-10-15 23:07:11 +02:00
Antonio Barone
91ee2675d3 Update git submodules
* Update plugins/replication from branch 'master'
  to d8194b291bb0433b5c3abe059ebad6f00fcb3a22
  - Generalize replication configuration type
    
    Configuration is tightly coupled to destination configuration, however
    this can be abstracted away so that different type of configurations can
    be plugged in at runtime.
    
    Introduce the concept of RemoteConfiguration, so that pull-replication
    can leverage the existing configuration classes and auto-reload
    mechanism.
    
    Feature: Issue 11751
    Change-Id: I4ca494feb11c02b6f75b665815d8a0f43dcff8bb
2019-10-15 17:12:32 +00:00
David Ostrovsky
8bec85501e Link to JGit source as git submodule
This is the second attempt to build JGit from the source using git
submodule approach. The first attempt that was abandoned is here: [1].

Using a submodule to bring in the source files vastly simplifies
updating JGit. Gerrit developers can bump the SHA-1 of the submodule
and not deal with the Maven rebuild process for JGit.

This change updates JGit dependency from 5.4.3.201909031940-r to commit
009e07882fee2b0ad2ebe7ba44e2ff52c101f858, and Javadoc version from:
5.4.3.201909031940-r to 5.5.0.201909110433-r.

To bump to new Javadoc API _DOC_VERS should be updated in
java/com/google/gerrit/extensions/BUILD to point to the desired JGit
Javadoc release.

JGit sources are imported in Eclipse as source folders. One side effect
of this change is that the source code warnings for JGit project are now
shown.

[1] https://gerrit-review.googlesource.com/c/gerrit/+/61892

Feature: Issue 11737
Change-Id: I16370e57f27e26b2382243ca448484f53dfa96bb
2019-10-15 17:22:39 +02:00
Antonio Barone
457fec010c Update git submodules
* Update plugins/replication from branch 'master'
  to 3bd8b958d4afbd06fbe43edec24d03d8d386d2e1
  - Make replaceName and getConfig public
    
    replaceName and getConfig should have public access so that they can be
    used from pull-replication too
    
    Change-Id: I601a746c451c242c93975358d770b6b64cd801ff
2019-10-15 13:50:23 +00:00
Antonio Barone
a9cdbeb65a Update git submodules
* Update plugins/replication from branch 'master'
  to 1bcdf90a1eed4227491b6e41f2a97065c273222c
  - Remove duplicate replaceName method
    
    replaceName was duplicated into DestinationCollection, but can be
    statically accessed from ReplicationFileBasedConfig
    
    Change-Id: Id56cc2b677247876088e7d96ba17371ba566bbb2
2019-10-15 13:48:30 +00:00
Antonio Barone
1f1adda69e Update git submodules
* Update plugins/replication from branch 'master'
  to c09a7c08fb44094c7475313ac52154adac39a54c
  - Make SecureCredentialsFactory public
    
    Access to secure.config is useful to more than just replication plugin.
    Allow instantiating this class from packages other than replication
    plugin. Specifically this is useful, as this class can be used from
    pull-replication too.
    
    Change-Id: Id268c869e993c6cabacfa0043ec269172e0efba1
2019-10-15 13:43:06 +00:00
David Pursehouse
451e36752f Update plugin revisions
Update revisions of delete-project, gitiles and webhooks to
include merges from stable-3.0.

Change-Id: I7d566c72856937a3018b0ffd7219642e673279cd
2019-10-15 14:23:43 +09:00
David Pursehouse
6bf4f20991 Update plugin revisions
Update revisions of delete-project, gitiles and webhooks to
include merges from stable-2.16.

Change-Id: I18ef8ac79e8e3c81890a9d80f34a0de2acf9bd55
2019-10-15 09:57:17 +09:00
David Ostrovsky
205bd4b898 Update git submodules
* Update plugins/webhooks from branch 'master'
  to e26745604c1f4301cf5d130d4bcc9da8463e0b1a
  - Bazel: Use test dependencies directly in junit_tests rule
    
    Also remove local tag, because the tests can also be executed
    sandboxed.
    
    Change-Id: I38a10423b6ddf4cd297951db86a87ddc819a642f
2019-10-14 06:21:57 +00:00
David Ostrovsky
58c568e0a9 Update git submodules
* Update plugins/plugin-manager from branch 'master'
  to c921234cec4c0d058b35a8d117f55fce4d4c5e65
  - Bazel: Remote unused PLUGIN_DEPS variable
    
    Change-Id: I39c1dfd9d5c1a025410bbd9cdf7eec0bd76dcccd
2019-10-14 06:20:39 +00:00
David Ostrovsky
7a9cca18bc Update git submodules
* Update plugins/gitiles from branch 'stable-3.0'
  to f69151035e10437409549fb1ca92b7403b90fc2f
  - Bazel: Remove unused gitiles__classpath_deps rule
    
    Change-Id: I5840a9f45721bf36f76352c46ec37aa6af675a10
2019-10-14 06:20:00 +00:00