Skip to content

Security: TestHeadlessComponents downloads its own JDKΒ #6653

@adamfarley

Description

@adamfarley

Summary
TestHeadlessComponents downloads two dependencies for use during testing.

This sidesteps Adoptium's control over test dependencies

Ideas

We should:

  • modify the test to prevent the downloads.
  • set $BOOTJDK_ARCHIVE_DIR to prevent a JDK download.
  • set $RFaT to prevent the git clone.

Ideally we should do all 3.

P.S. It looks like, if BOOTJDK is not provided, the test starts doing things inside ~/bootjdk rather than inside the workspace.

That should probably be fixed too.

Links
https://ci.adoptium.net/job/Test_openjdk11_hs_dev.functional_x86-64_mac
https://github.com/rh-openjdk/TestHeadlessComponents/blob/main/testHeadlessComponents.sh

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions