[backport/1.22] ocsp: rotate certs of test data to fix flaky tests (#23635)#23842
[backport/1.22] ocsp: rotate certs of test data to fix flaky tests (#23635)#23842phlax merged 4 commits intoenvoyproxy:release/v1.22from
Conversation
|
/assign @phlax |
|
i think most likely this will also need the infra fix - if you check this PR - #23817 - you can see the other commit that is likely required |
|
thanks for updating @dcillera could you fix DCO please im surprised that DCO is failing as the commits are signed by the original contributors - but it seems like it wants your signature also |
0054069 to
36cd4f0
Compare
|
Fixed DCO problem by performing suggested procedure. |
|
arggh - seems like time has warped on this branch and one of the dependencies was released on a different date im just looking at this branch so im happy to fix - but if you add the fix here first i will land |
|
I think the following commit is also missing. Do you think we should add it to this PR? commit b1f5e92 |
|
yep - that looks like the fix i think |
|
CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to |
|
i just hit a similar (codeql) problem trying to update the 1.21 branch #23852 (comment) |
|
testing a fix for codeql here - #23859 |
|
@dcillera the codeql problem is caused by the ubuntu image not being pinned - ie its set to im going to fix that on main so its explicit which version its using which should prevent this happening in the future for this PR do you want to add the following diff/commit: diff --git a/.github/workflows/codeql-daily.yml b/.github/workflows/codeql-daily.yml
index 612fa1722e..0c37880c7d 100644
--- a/.github/workflows/codeql-daily.yml
+++ b/.github/workflows/codeql-daily.yml
@@ -11,7 +11,7 @@ jobs:
fail-fast: false
# CodeQL runs on ubuntu-latest and windows-latest
- runs-on: ubuntu-latest
+ runs-on: ubuntu-18.04
steps:
- name: Checkout repository
diff --git a/.github/workflows/codeql-push.yml b/.github/workflows/codeql-push.yml
index bb31007938..b6a42b8f7b 100644
--- a/.github/workflows/codeql-push.yml
+++ b/.github/workflows/codeql-push.yml
@@ -17,7 +17,7 @@ jobs:
fail-fast: false
# CodeQL runs on ubuntu-latest and windows-latest
- runs-on: ubuntu-latest
+ runs-on: ubuntu-18.04
if: github.repository == 'envoyproxy/envoy'
steps:
ill test it now - but im fairly confident this is the required fix |
|
the release bug in CI looks like a genuine fail `[2022-11-07 12:57:38.820][17][error][envoy_bug] [source/extensions/transport_sockets/tls/context_impl.cc:443] envoy bug failure: value_stat_name != fallback. Details: Unexpected ssl.ciphers value: unexpected |
|
im wondering if this commit 6d39a4e is related to the tls failures - merging requires some conflict resolution and not 100% certain if its the issue/fix but looks like it to me |
bca9a69 to
81adb9d
Compare
|
hmm seems like my suggestion was either incorrect or incomplete - did you have any joy debugging locally ? |
|
However, I observe that even in 1.23 and 1.24 we have: "runs-on: ubuntu-latest" (and "ubuntu-20.04" in main). |
im pretty sure that suggestion was correct -that was just a fix for codeql - the ubuntu version is going to be different on different versions - in 1.21/2 its a case of just setting it to what was the TLS bug in the release CI is more concerning - there are a few possible commits in the 1.23 that could be the fix - im not c++ so figuring out which one is beyond my immediate skills - the suggestion i made on this seems to be wrong |
|
@wbpcode @daixiang0 could you help out here we are trying to update the 1.22 branch with recent fixes from if we add just 6d39a4e we are getting an error: test/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator_test.cc:560:59: error: member reference base type 'size_t' (aka 'unsigned long') is not a structure o
r union
EXPECT_EQ(19956, validator().daysUntilFirstCertExpires().value());
i then tried picking #20581 and #21428 but that then throws other errors - as i think the code had changed on any help would be much appreciated! its important to get this branch functioning again |
|
cc @phlax could just run the refresh script in the 1.22 rather than cherry-pick? |
i could - thanks! i guess i can find it - but ftr - how do you do that ? |
|
ive added a commit here |
|
arggh - it didnt but from scan it looks like another openssl version issue - i think i may need to rerun using the envoy build container (and not my dev container) |
|
@wbpcode if i just update the certs with the script i hit this: test/extensions/transport_sockets/tls/context_impl_test.cc:156: Failure
Expected equality of these values:
context->daysUntilFirstCertExpires()
Which is: 0
days_until_expiry
Which is: -19
which is i think the same problem i had when picking the change from other branch @daixiang0 any ideas on this - i know you fixed some related issues on main |
|
cc @phlax Seems like the certs for |
|
i thought that was what i was trying to fix - this branch already has the oscp update i think - is there a different command we need to run or commit to pick ? |
|
You can update them by the following commands: please take care the format of the generated |
|
that is what i did - which is not working im realising tho that the ocsp cert fix is the same - im wondering if removing that and running the script will fix - ill try on my other branch ... |
Previously `/var/run/docker.sock` is readable/writable inside docker run because group ID of `envoygroup` coincidentally matches host docker group, while it is no longer true during rolling out new image. Fixing that by forcing `envoygroup` has host docker group ID. Risk Level: Low Testing: CI Docs Changes: Release Notes: Platform Specific Features: Signed-off-by: Lizan Zhou <lizan@tetrate.io> Signed-off-by: Dario Cillerai <dcillera@redhat.com> Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com> Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
|
argghhh - the same result |
|
I am running the commands and tests in my local env. It need take some times. |
Signed-off-by: wbpcode <wangbaiping@corp.netease.com> Signed-off-by: Ryan Northey <ryan@synca.io>
a4a8f42 to
c75043b
Compare
|
🙀 Error while processing event: |
Signed-off-by: wbpcode wangbaiping@corp.netease.com
Signed-off-by: wbpcode wangbaiping@corp.netease.com
Signed-off-by: wbpcode wangbaiping@corp.netease.com