Skip to content

CI on pull requests #885

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

CI on pull requests #885

wants to merge 2 commits into from

Conversation

hannesa2
Copy link

Some test are failing with OutOfMemoryException
I started to find workarounds or exclude them, but I stopped this, because for me it's a bigger question:

What are you doing to have that much memory consumption ? Is this really practicable ?

@dghgit
Copy link
Contributor

dghgit commented Feb 17, 2021

I'm guessing but are the tests related to Argon2 and Scrypt?

@hannesa2
Copy link
Author

hannesa2 commented Feb 17, 2021

Yes, one of them is Argon2Test the others I forgot

@hannesa2
Copy link
Author

As long as it's not merged, you see no output. But you can download report from my test-pull request here https://github.com/hannesa2/bouncycastle/pull/1/checks?check_run_id=1902628057

image

This is the first error

java.lang.OutOfMemoryError: Java heap space
	at org.bouncycastle.crypto.generators.Argon2BytesGenerator$Block.<init>(Argon2BytesGenerator.java:630)
	at org.bouncycastle.crypto.generators.Argon2BytesGenerator$Block.<init>(Argon2BytesGenerator.java:621)
	at org.bouncycastle.crypto.generators.Argon2BytesGenerator.initMemory(Argon2BytesGenerator.java:153)
	at org.bouncycastle.crypto.generators.Argon2BytesGenerator.doInit(Argon2BytesGenerator.java:144)
	at org.bouncycastle.crypto.generators.Argon2BytesGenerator.init(Argon2BytesGenerator.java:74)

@winfriedgerlach
Copy link
Collaborator

@hannesa2 @dghgit this PR seems to be severely outdated. Can it be closed?

@hannesa2
Copy link
Author

hannesa2 commented Apr 8, 2025

You ignored this contribution for 4 years !
I rebased it, but to be honest, I'm complete out of the loop now

@hannesa2
Copy link
Author

hannesa2 commented Apr 8, 2025

When you run the test, you'll see this
image

e.g this file is missing
image

@hannesa2 hannesa2 changed the base branch from master to main April 9, 2025 04:23
@winfriedgerlach
Copy link
Collaborator

@hannesa2 are you sure you have followed the instructions from README.md?

Important: You will also need to check out the bc-test-data repository at the same level as the bc-java repository if you want to run the tests.

@hannesa2
Copy link
Author

hannesa2 commented Apr 9, 2025

You drive this project without a CI !

This pull request in now just the skeleton of a CI, and a fixing why it not builds properly is out of the scope here and a next step. But I don't invest more time in it, when a pull request is 4 years on hold.

Merge it, then we can see how we continue ...
Or close it

@winfriedgerlach
Copy link
Collaborator

OK, let's see whether we get a response from @dghgit , @peterdettman or another dev.

@dghgit
Copy link
Contributor

dghgit commented Apr 9, 2025

Apologies for the delay on this, although I think the original issue was fixed. We do use a CI as well, and the file is in bc-test-data - we needed to migrate the test data files out of the main repository as the work on PQC meant the repository was getting overloaded.

If you set up with bc-test-data do things now work for you, or do you still see out of memory errors?

@hannesa2
Copy link
Author

hannesa2 commented Apr 9, 2025

You mean this CodeQL https://github.com/bcgit/bc-java/actions ?
If yes, then this would not fulfill my requirements of a CI. I at least would build it

@dghgit
Copy link
Contributor

dghgit commented Apr 9, 2025

No, we actually have some local servers which build the repositories on check in. This repository is a mirror.

@hannesa2
Copy link
Author

hannesa2 commented Apr 9, 2025

local server

As long as it's not public it's a rumor. I at least don't see any advantage to have these servers private

@dghgit
Copy link
Contributor

dghgit commented Apr 12, 2025

It's a little tricky but I'll see if there's someway of getting the reports pushed somewhere public - or at least a report based on what's currently sourced on github public.

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.

3 participants