~radicle-link/dev

4 3

Haunted tests

Details
Message ID
<CAH_DpYSrVoauqGAEkfDZ0qra3C_TfKAQiyo95+DP1a3A9F_L_Q@mail.gmail.com>
DKIM signature
missing
Download raw message
Working on the `lnk clone` patch I noticed the following.

This test passes

    cargo nextest run default_branch_head

But this fails

    cargo nextest run -p librad-test default_branch_head

I haven't figured out why yet. What I am worried is happening is that
the `replication-v3` feature flag is getting turned on by some part of
the top level test crate and that we are consequently not testing
non-replication-v3 in CI. Anyone have any insight?
Details
Message ID
<047A8432-A03C-44B7-A704-29CD631B85B2@eagain.io>
In-Reply-To
<CAH_DpYSrVoauqGAEkfDZ0qra3C_TfKAQiyo95+DP1a3A9F_L_Q@mail.gmail.com> (view parent)
DKIM signature
missing
Download raw message

> Anyone have any insight?

- stabilise replication-v3
- refrain from using feature flags
- use a sane build tool
Details
Message ID
<CAH_DpYSTuBre82FgLBmgNvUGbaYqxdJ9QK=zuka73YKW2hBuvw@mail.gmail.com>
In-Reply-To
<047A8432-A03C-44B7-A704-29CD631B85B2@eagain.io> (view parent)
DKIM signature
missing
Download raw message
On 30/05/22 01:07pm, Kim Altintop wrote:
> - stabilise replication-v3

I think we should do this. The problem here is caused by the fact that
`gitd-lib` and `lnk-sync` depend non-optionally on replication-v3, which
brings the feature in for the whole create so `cargo test` always runs
with replication-v3. This means we have two options:

1. Add implementations of the missing parts of `gitd-lib` and `lnk-sync`
   for non-replication-v3 and make the replication-v3 dependency optional
2. Stabilise replication-v3

Replication v3 is now feature complete and in practice, no one is
depending on replication-v2 (or whatever it is) _at all_ as most of the
rest of the ecosystem is using the alt-clients git push/pull based
replication. Consequently I think the risk of stabilising is very low.
Details
Message ID
<CKD31SI8FDZP.27FXMWCZHJ2SD@haptop>
In-Reply-To
<CAH_DpYSTuBre82FgLBmgNvUGbaYqxdJ9QK=zuka73YKW2hBuvw@mail.gmail.com> (view parent)
DKIM signature
missing
Download raw message
On Mon May 30, 2022 at 12:49 PM IST, Alex Good wrote:
> On 30/05/22 01:07pm, Kim Altintop wrote:
> > - stabilise replication-v3
>
> I think we should do this. The problem here is caused by the fact that
> `gitd-lib` and `lnk-sync` depend non-optionally on replication-v3, which
> brings the feature in for the whole create so `cargo test` always runs
> with replication-v3. This means we have two options:
>
> 1. Add implementations of the missing parts of `gitd-lib` and `lnk-sync`
>    for non-replication-v3 and make the replication-v3 dependency optional
> 2. Stabilise replication-v3
>
> Replication v3 is now feature complete and in practice, no one is
> depending on replication-v2 (or whatever it is) _at all_ as most of the
> rest of the ecosystem is using the alt-clients git push/pull based
> replication. Consequently I think the risk of stabilising is very low.

Ya, let's do it. I initialy held off because of removing gitoxide, but
that's a whole 'nother kettle of fish.

This will make our lives easier :)
Details
Message ID
<CKD625UUN3OP.1FAWD3RI39KGA@haptop>
In-Reply-To
<CAH_DpYSTuBre82FgLBmgNvUGbaYqxdJ9QK=zuka73YKW2hBuvw@mail.gmail.com> (view parent)
DKIM signature
missing
Download raw message
On Mon May 30, 2022 at 12:49 PM IST, Alex Good wrote:
> On 30/05/22 01:07pm, Kim Altintop wrote:
> > - stabilise replication-v3
>
> I think we should do this. The problem here is caused by the fact that
> `gitd-lib` and `lnk-sync` depend non-optionally on replication-v3, which
> brings the feature in for the whole create so `cargo test` always runs
> with replication-v3. This means we have two options:
>
> 1. Add implementations of the missing parts of `gitd-lib` and `lnk-sync`
>    for non-replication-v3 and make the replication-v3 dependency optional
> 2. Stabilise replication-v3
>
> Replication v3 is now feature complete and in practice, no one is
> depending on replication-v2 (or whatever it is) _at all_ as most of the
> rest of the ecosystem is using the alt-clients git push/pull based
> replication. Consequently I think the risk of stabilising is very low.

Can confirm that both incantations works on `seen` with the stable
replication-v3 changes :)
Reply to thread Export thread (mbox)