Skip to content

Commit

Permalink
Merge branch 'upstream' into internal
Browse files Browse the repository at this point in the history
  • Loading branch information
dsh2dsh committed Oct 18, 2024
2 parents 1622f68 + 908807b commit 450aac6
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,14 @@ wrapup-and-checksum:
tar --mtime='1970-01-01' --sort=name \
--transform 's/$(ARTIFACTDIR)/zrepl-$(_ZREPL_VERSION)-noarch/' \
--transform 's#dist#zrepl-$(_ZREPL_VERSION)-noarch/dist#' \
--transform 's#config/samples#zrepl-$(_ZREPL_VERSION)-noarch/config#' \
--transform 's#internal/config/samples#zrepl-$(_ZREPL_VERSION)-noarch/config#' \
-acf $(NOARCH_TARBALL) \
$(ARTIFACTDIR)/docs/html \
$(ARTIFACTDIR)/bash_completion \
$(ARTIFACTDIR)/_zrepl.zsh_completion \
$(ARTIFACTDIR)/go_env.txt \
dist \
config/samples
internal/config/samples
rm -rf "$(ARTIFACTDIR)/release"
mkdir -p "$(ARTIFACTDIR)/release"
cp -l $(ARTIFACTDIR)/zrepl* \
Expand Down Expand Up @@ -282,7 +282,7 @@ cover-platform:

TEST_PLATFORM_BIN_PATH := $(ARTIFACTDIR)/platformtest-$(ZREPL_TARGET_TUPLE)
test-platform-bin:
$(GO_BUILD) -o "$(TEST_PLATFORM_BIN_PATH)" ./platformtest/harness
$(GO_BUILD) -o "$(TEST_PLATFORM_BIN_PATH)" ./internal/platformtest/harness
test-platform:
export _TEST_PLATFORM_CMD="\"$(TEST_PLATFORM_BIN_PATH)\""; \
$(MAKE) _test-or-cover-platform-impl
Expand All @@ -299,7 +299,7 @@ ifndef _TEST_PLATFORM_CMD
endif
rm -f "$(ZREPL_PLATFORMTEST_ZFS_LOG)"
rm -f "$(ARTIFACTDIR)/platformtest.cover"
platformtest/logmockzfs/logzfsenv "$(ZREPL_PLATFORMTEST_ZFS_LOG)" `which zfs` \
internal/platformtest/logmockzfs/logzfsenv "$(ZREPL_PLATFORMTEST_ZFS_LOG)" `which zfs` \
$(_TEST_PLATFORM_CMD) \
-poolname "$(ZREPL_PLATFORMTEST_POOLNAME)" \
-imagepath "$(ZREPL_PLATFORMTEST_IMAGEPATH)" \
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
extlinks = {
'issue':('https://github.com/zrepl/zrepl/issues/%s', 'issue #%s'),
'repomasterlink':('https://github.com/zrepl/zrepl/blob/master/%s', '%s'),
'sampleconf':('https://github.com/zrepl/zrepl/blob/master/config/samples%s', 'config/samples%s'),
'sampleconf':('https://github.com/zrepl/zrepl/blob/master/internal/config/samples%s', 'internal/config/samples%s'),
'commit':('https://github.com/zrepl/zrepl/commit/%s', 'commit %s'),
}

6 changes: 3 additions & 3 deletions docs/quickstart/backup_to_external_disk.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ A few additional requirements:
The following config snippet implements the setup described above.
You will likely want to customize some aspects mentioned in the top comment in the file.

.. literalinclude:: ../../config/samples/quickstart_backup_to_external_disk.yml
.. literalinclude:: ../../internal/config/samples/quickstart_backup_to_external_disk.yml


Offline Backups with two (or more) External Disks
Expand All @@ -43,7 +43,7 @@ To accomplish this,
* create one zpool per external HDD, each with a unique name, and
* define a pair of ``push`` and ``sink`` job **for each** of these zpools, each with a unique ``name``, ``listener_name``, and ``root_fs``.

The unique names ensure that the jobs don't step on each others' toes when managing :ref:`zrepl's ZFS abstractions <zrepl-zfs-abstractions>` .
The unique names ensure that the jobs don't step on each others' toes when managing :ref:`zrepl's ZFS abstractions <zrepl-zfs-abstractions>` .


:ref:`Click here <quickstart-apply-config>` to go back to the quickstart guide.
:ref:`Click here <quickstart-apply-config>` to go back to the quickstart guide.
4 changes: 2 additions & 2 deletions docs/quickstart/continuous_server_backup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Configure server ``prod``

We define a **push job** named ``prod_to_backups`` in ``/etc/zrepl/zrepl.yml`` on host ``prod`` :

.. literalinclude:: ../../config/samples/quickstart_continuous_server_backup_sender.yml
.. literalinclude:: ../../internal/config/samples/quickstart_continuous_server_backup_sender.yml

.. _tutorial-configure-prod:

Expand All @@ -86,7 +86,7 @@ Configure server ``backups``

We define a corresponding **sink job** named ``sink`` in ``/etc/zrepl/zrepl.yml`` on host ``backups`` :

.. literalinclude:: ../../config/samples/quickstart_continuous_server_backup_receiver.yml
.. literalinclude:: ../../internal/config/samples/quickstart_continuous_server_backup_receiver.yml

Go Back To Quickstart Guide
---------------------------
Expand Down
4 changes: 2 additions & 2 deletions docs/quickstart/fan_out_replication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ Mutual TLS via the :ref:`TLS client authentication transport <transport-tcp+tlsc
Configure source server A
-------------------------

.. literalinclude:: ../../config/samples/quickstart_fan_out_replication_source.yml
.. literalinclude:: ../../internal/config/samples/quickstart_fan_out_replication_source.yml

Configure each target server
----------------------------

.. literalinclude:: ../../config/samples/quickstart_fan_out_replication_target.yml
.. literalinclude:: ../../internal/config/samples/quickstart_fan_out_replication_target.yml

Go Back To Quickstart Guide
---------------------------
Expand Down
2 changes: 1 addition & 1 deletion internal/daemon/job/build_jobs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
}

func TestSampleConfigsAreBuiltWithoutErrors(t *testing.T) {
paths, err := filepath.Glob("../../config/samples/*")
paths, err := filepath.Glob("../../../internal/config/samples/*")
if err != nil {
t.Errorf("glob failed: %+v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/daemon/logging/trace/trace_convenience_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestGetCallerOrPanic(t *testing.T) {
}
ret := withStackFromCtxMock()
// zrepl prefix is stripped
assert.Equal(t, "daemon/logging/trace.TestGetCallerOrPanic", ret)
assert.Equal(t, "internal/daemon/logging/trace.TestGetCallerOrPanic", ret)
}

func TestWithTaskGroupRunTasksConcurrently(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion packaging/deb/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ override_dh_auto_install:
dh_install artifacts/docs/html usr/share/doc/zrepl/docs/

# install examples
dh_install config/samples/* usr/share/doc/zrepl/examples
dh_install internal/config/samples/* usr/share/doc/zrepl/examples

# install default config
mkdir -p debian/tmp/etc/zrepl
Expand Down
2 changes: 1 addition & 1 deletion packaging/rpm/zrepl.spec
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ install -Dm 0644 artifacts/bash_completion %{buildroot}%{_datadir}/
install -Dm 0644 artifacts/rpmbuild/zrepl.yml %{buildroot}%{_sysconfdir}/zrepl/zrepl.yml
install -d %{buildroot}%{_datadir}/doc/zrepl
cp -a artifacts/docs/html %{buildroot}%{_datadir}/doc/zrepl/html
cp -a config/samples %{buildroot}%{_datadir}/doc/zrepl/examples
cp -a internal/config/samples %{buildroot}%{_datadir}/doc/zrepl/examples

%post
%systemd_post zrepl.service
Expand Down

0 comments on commit 450aac6

Please sign in to comment.