Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let's see if we can re-enable s390x again #4963

Merged
merged 1 commit into from
Jan 27, 2024
Merged

Conversation

nickva
Copy link
Contributor

@nickva nickva commented Jan 16, 2024

Previously it had issues downloading from hex.pm

@nickva
Copy link
Contributor Author

nickva commented Jan 16, 2024

Interestingly enough, re-enabling s390x now shows a discrepancy in the new fast_pbkdf2 module on s390x:

[2024-01-16T17:51:39.919Z]   module 'couch_passwords_tests'
[2024-01-16T17:51:39.919Z]     PBKDF2
[2024-01-16T17:51:39.919Z]       couch_passwords_tests:20: pbkdf2_test_ (Iterations: 1, length: 20)...*failed*
[2024-01-16T17:51:39.919Z] in function couch_passwords_tests:'-pbkdf2_test_/0-fun-1-'/0 (test/eunit/couch_passwords_tests.erl, line 22)
[2024-01-16T17:51:39.919Z] in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71)
[2024-01-16T17:51:39.919Z] in call from eunit_proc:run_test/1 (eunit_proc.erl, line 531)
[2024-01-16T17:51:39.920Z] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 356)
[2024-01-16T17:51:39.920Z] in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 514)
[2024-01-16T17:51:39.920Z] in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 456)
[2024-01-16T17:51:39.920Z] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 346)
[2024-01-16T17:51:39.920Z] in call from eunit_proc:run_group/2 (eunit_proc.erl, line 570)
[2024-01-16T17:51:39.920Z] **error:{assertEqual,[{module,couch_passwords_tests},
[2024-01-16T17:51:39.920Z]               {line,22},
[2024-01-16T17:51:39.920Z]               {expression,"couch_passwords : pbkdf2 ( << \"password\" >> , << \"salt\" >> , 1 , 20 )"},
[2024-01-16T17:51:39.920Z]               {expected,<<"0c60c80f961f0e71f3a9b524af6012062fe037a6">>},
[2024-01-16T17:51:39.920Z]               {value,<<"f35fbe4aae65fbc6f43df01e6bb6c86f9f75db74">>}]}
[2024-01-16T17:51:39.920Z]   output:<<"">>
[2024-01-16T17:51:39.920Z] 
[2024-01-16T17:51:39.920Z]       couch_passwords_tests:26: pbkdf2_test_ (Iterations: 2, length: 20)...*failed*

@rposts
Copy link

rposts commented Jan 16, 2024

@nickva I will get someone from my team to look into it as well - tx!

@nickva
Copy link
Contributor Author

nickva commented Jan 16, 2024

Thank you, @rposts. It might endianness related.

Since last time we ran the CI worker we included this library: https://github.com/esl/fast_pbkdf2/blob/main/c_src/fast_pbkdf2.c I wonder if it just make an implicit assumption that it's handling little endian data always.

@big-r81
Copy link
Contributor

big-r81 commented Jan 16, 2024

Could this and this be the reason?

@nickva
Copy link
Contributor Author

nickva commented Jan 16, 2024

That looks plausible, thanks for taking a look, @big-r81

@namrata-ibm
Copy link

@nickva The issue in fast_pbkdf2 is endianness related. With a few changes in it, couch_passwords_tests passed on an s390x system. I am working on adding the changes via PR to fast_pbkdf2. Thank you.

@namrata-ibm
Copy link

namrata-ibm commented Jan 25, 2024

@nickva @big-r81 The issue with fast_pbkdf2 has been resolved via PR.
Wanted to know how those changes are picked up here? Is fast_pbkdf2 updated on regular basis?

@big-r81
Copy link
Contributor

big-r81 commented Jan 25, 2024

Hey @namrata-ibm, you update the files from upstream like here.

@big-r81
Copy link
Contributor

big-r81 commented Jan 25, 2024

and we should wait until esl/fast_pbkdf2#13 is merged.

@NelsonVides
Copy link

Fast-PBKDF2 all merged and new release created: https://hex.pm/packages/fast_pbkdf2/1.0.6, thanks for the contributions :)

Previously it had issues downloading from hex.pm
@nickva
Copy link
Contributor Author

nickva commented Jan 26, 2024

I noticed one successful run on s390x!

Screenshot 2024-01-26 at 6 54 09 PM

I'll restart it to see a get a few more successful runs.

@big-r81
Copy link
Contributor

big-r81 commented Jan 27, 2024

This looks good. Thanks @namrata-ibm and @NelsonVides for your support.

@nickva
Copy link
Contributor Author

nickva commented Jan 27, 2024

There were 4 successful CI runs in row, so it looks quite promising. I'll merge the PR.

@nickva nickva merged commit 1f77e2e into main Jan 27, 2024
58 checks passed
@nickva nickva deleted the jenkins-try-re-enable-s390x branch January 27, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants