Message ID | 20230515160531.2523390-1-numans@ovn.org |
---|---|
State | Accepted |
Headers | show |
Series | [ovs-dev] CI : Fix the failing multinode system tests. | expand |
Context | Check | Description |
---|---|---|
ovsrobot/apply-robot | success | apply and check: success |
ovsrobot/github-robot-_Build_and_Test | success | github build: passed |
ovsrobot/github-robot-_ovn-kubernetes | success | github build: passed |
On 5/15/23 18:05, numans@ovn.org wrote: > From: Numan Siddique <numans@ovn.org> > > Update the apt cache before installing dependencies in > the multinode test jobs, otherwise installing depencies > may fail if the cache is out dated. > > Suggested-by: Ilya Maximetes <i.maximets@ovn.org> > Signed-off-by: Numan Siddique <numans@ovn.org> > --- > .github/workflows/ovn-fake-multinode-tests.yml | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/.github/workflows/ovn-fake-multinode-tests.yml b/.github/workflows/ovn-fake-multinode-tests.yml > index e24d8ce873..9c10a8fc01 100644 > --- a/.github/workflows/ovn-fake-multinode-tests.yml > +++ b/.github/workflows/ovn-fake-multinode-tests.yml > @@ -100,7 +100,9 @@ jobs: > > steps: > - name: install required dependencies > - run: sudo apt install -y ${{ env.dependencies }} > + run: | > + sudo apt update > + sudo apt install -y ${{ env.dependencies }} Will the step fail if update fails? I don't remember how that works. In case it does, it may be better to || true it. See: https://github.com/openvswitch/ovs/commit/d5c429a303341c2bf07090193e640434b3c51080 Best regards, Ilya Maximets.
On Mon, May 15, 2023 at 12:33 PM Ilya Maximets <i.maximets@ovn.org> wrote: > > On 5/15/23 18:05, numans@ovn.org wrote: > > From: Numan Siddique <numans@ovn.org> > > > > Update the apt cache before installing dependencies in > > the multinode test jobs, otherwise installing depencies > > may fail if the cache is out dated. > > > > Suggested-by: Ilya Maximetes <i.maximets@ovn.org> > > Signed-off-by: Numan Siddique <numans@ovn.org> > > --- > > .github/workflows/ovn-fake-multinode-tests.yml | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/.github/workflows/ovn-fake-multinode-tests.yml b/.github/workflows/ovn-fake-multinode-tests.yml > > index e24d8ce873..9c10a8fc01 100644 > > --- a/.github/workflows/ovn-fake-multinode-tests.yml > > +++ b/.github/workflows/ovn-fake-multinode-tests.yml > > @@ -100,7 +100,9 @@ jobs: > > > > steps: > > - name: install required dependencies > > - run: sudo apt install -y ${{ env.dependencies }} > > + run: | > > + sudo apt update > > + sudo apt install -y ${{ env.dependencies }} > > Will the step fail if update fails? I don't remember how that works. > In case it does, it may be better to || true it. See: > https://github.com/openvswitch/ovs/commit/d5c429a303341c2bf07090193e640434b3c51080 Sure. Sounds good to me. I'll wait for other comments. I guess I can modify this before applying the patch if I get ack from you or others (if no other comments) Thanks Numan > > Best regards, Ilya Maximets. > _______________________________________________ > dev mailing list > dev@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev >
On 5/15/23 19:46, Numan Siddique wrote: > On Mon, May 15, 2023 at 12:33 PM Ilya Maximets <i.maximets@ovn.org> wrote: >> >> On 5/15/23 18:05, numans@ovn.org wrote: >>> From: Numan Siddique <numans@ovn.org> >>> >>> Update the apt cache before installing dependencies in >>> the multinode test jobs, otherwise installing depencies >>> may fail if the cache is out dated. >>> >>> Suggested-by: Ilya Maximetes <i.maximets@ovn.org> >>> Signed-off-by: Numan Siddique <numans@ovn.org> >>> --- >>> .github/workflows/ovn-fake-multinode-tests.yml | 4 +++- >>> 1 file changed, 3 insertions(+), 1 deletion(-) >>> >>> diff --git a/.github/workflows/ovn-fake-multinode-tests.yml b/.github/workflows/ovn-fake-multinode-tests.yml >>> index e24d8ce873..9c10a8fc01 100644 >>> --- a/.github/workflows/ovn-fake-multinode-tests.yml >>> +++ b/.github/workflows/ovn-fake-multinode-tests.yml >>> @@ -100,7 +100,9 @@ jobs: >>> >>> steps: >>> - name: install required dependencies >>> - run: sudo apt install -y ${{ env.dependencies }} >>> + run: | >>> + sudo apt update >>> + sudo apt install -y ${{ env.dependencies }} >> >> Will the step fail if update fails? I don't remember how that works. >> In case it does, it may be better to || true it. See: >> https://github.com/openvswitch/ovs/commit/d5c429a303341c2bf07090193e640434b3c51080 > > Sure. Sounds good to me. > I'll wait for other comments. I guess I can modify this before > applying the patch if I get ack from you or others (if no other > comments) I didn't test, but it looks fine in general. With '|| true': Acked-by: Ilya Maximets <i.maximets@ovn.org> > > Thanks > Numan
On Mon, May 15, 2023 at 3:11 PM Ilya Maximets <i.maximets@ovn.org> wrote: > > On 5/15/23 19:46, Numan Siddique wrote: > > On Mon, May 15, 2023 at 12:33 PM Ilya Maximets <i.maximets@ovn.org> wrote: > >> > >> On 5/15/23 18:05, numans@ovn.org wrote: > >>> From: Numan Siddique <numans@ovn.org> > >>> > >>> Update the apt cache before installing dependencies in > >>> the multinode test jobs, otherwise installing depencies > >>> may fail if the cache is out dated. > >>> > >>> Suggested-by: Ilya Maximetes <i.maximets@ovn.org> > >>> Signed-off-by: Numan Siddique <numans@ovn.org> > >>> --- > >>> .github/workflows/ovn-fake-multinode-tests.yml | 4 +++- > >>> 1 file changed, 3 insertions(+), 1 deletion(-) > >>> > >>> diff --git a/.github/workflows/ovn-fake-multinode-tests.yml b/.github/workflows/ovn-fake-multinode-tests.yml > >>> index e24d8ce873..9c10a8fc01 100644 > >>> --- a/.github/workflows/ovn-fake-multinode-tests.yml > >>> +++ b/.github/workflows/ovn-fake-multinode-tests.yml > >>> @@ -100,7 +100,9 @@ jobs: > >>> > >>> steps: > >>> - name: install required dependencies > >>> - run: sudo apt install -y ${{ env.dependencies }} > >>> + run: | > >>> + sudo apt update > >>> + sudo apt install -y ${{ env.dependencies }} > >> > >> Will the step fail if update fails? I don't remember how that works. > >> In case it does, it may be better to || true it. See: > >> https://github.com/openvswitch/ovs/commit/d5c429a303341c2bf07090193e640434b3c51080 > > > > Sure. Sounds good to me. > > I'll wait for other comments. I guess I can modify this before > > applying the patch if I get ack from you or others (if no other > > comments) > > I didn't test, but it looks fine in general. With '|| true': > > Acked-by: Ilya Maximets <i.maximets@ovn.org> Thanks. I applied this patch to main branch with '|| true'. I also did the same (i,e apt update || true) in the build image job before applying. Numan > > > > > Thanks > > Numan > > _______________________________________________ > dev mailing list > dev@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev
diff --git a/.github/workflows/ovn-fake-multinode-tests.yml b/.github/workflows/ovn-fake-multinode-tests.yml index e24d8ce873..9c10a8fc01 100644 --- a/.github/workflows/ovn-fake-multinode-tests.yml +++ b/.github/workflows/ovn-fake-multinode-tests.yml @@ -100,7 +100,9 @@ jobs: steps: - name: install required dependencies - run: sudo apt install -y ${{ env.dependencies }} + run: | + sudo apt update + sudo apt install -y ${{ env.dependencies }} - name: Free up disk space run: sudo eatmydata apt-get remove --auto-remove -y aspnetcore-* dotnet-* libmono-* mono-* msbuild php-* php7* ghc-* zulu-*