adoptium / adoptium/aqa-tests

TestHeadlessComponents_0_FAILED tar: This does not look like a tar archive

Open
#5,224 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
155
Forks
346
Avg merge
2d 9h
Merged PRs (30d)
36

Description

[internal j9 test build](https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk17_j9_dev.functional_aarch64_mac/11/).
related: backlog/issues/1372

```
[2024-03-02T15:57:33.704Z] + unwrap_file_to_location /Users/jenkins/workspace/Test_openjdk17_j9_dev.functional_aarch64_mac/bootjdkarchive/adoptopenjdk /Users/jenkins/bootjdk
[2024-03-02T15:57:33.704Z] + '[' mac == mac -o mac == linux ']'
[2024-03-02T15:57:33.704Z] + tar --strip-components=1 -xf /Users/jenkins/workspace/Test_openjdk17_j9_dev.functional_aarch64_mac/bootjdkarchive/adoptopenjdk -C /Users/jenkins/bootjdk
[2024-03-02T15:57:33.704Z] tar: This does not look like a tar archive
[2024-03-02T15:57:33.704Z] tar: Exiting with failure status due to previous errors
[2024-03-02T15:57:33.704Z] -----------------------------------
[2024-03-02T15:57:33.704Z] TestHeadlessComponents_0_FAILED
```

The test passed `tar --strip-components=1` on aarch64_mac at Adoptium, but failed at a later stage `/Users/admin/bootjdk/Contents/Home/bin/javac: No such file or directory`:
https://ci.adoptium.net/job/Test_openjdk17_hs_dev.functional_aarch64_mac/11/console
```
18:07:25 + '[' mac == mac -o mac == linux ']'
18:07:25 + tar --strip-components=1 -xf /Users/admin/workspace/workspace/Test_openjdk11_hs_dev.functional_aarch64_mac/bootjdkarchive/adoptopenjdk -C /Users/admin/bootjdk
18:07:25 + JAVAC_BINARY=/Users/admin/bootjdk/bin/javac
18:07:25 + '[' mac == mac ']'
18:07:25 + JAVAC_BINARY=/Users/admin/bootjdk/Contents/Home/bin/javac
18:07:25 + cp -r /Users/admin/workspace/workspace/Test_openjdk11_hs_dev.functional_aarch64_mac/aqa-tests/functional/testHeadlessComponents/TestHeadlessComponents/testHeadlessComponents /Users/admin/workspace/workspace/Test_openjdk11_hs_dev.functional_aarch64_mac
18:07:25 + ls /Users/admin/workspace/workspace/Test_openjdk11_hs_dev.functional_aarch64_mac
18:07:25 aqa-tests
18:07:25 aqa-tests@tmp
18:07:25 bootjdkarchive
18:07:25 jdkbinary
18:07:25 jvmtest
18:07:25 testHeadlessComponents
18:07:25 + pushd /Users/admin/workspace/workspace/Test_openjdk11_hs_dev.functional_aarch64_mac/testHeadlessComponents/jreTestingSwingComponents/src
18:07:25 ~/workspace/workspace/Test_openjdk11_hs_dev.functional_aarch64_mac/testHeadlessComponents/jreTestingSwingComponents/src ~/workspace/workspace/Test_openjdk11_hs_dev.functional_aarch64_mac/bootjdkarchive
18:07:25 ++ mktemp -d
18:07:25 + cp=/var/folders/fs/0w3t9t1d28xc3bj0tgb8hcrw0000gn/T/tmp.UL5PC9ijmo
18:07:25 ++ find . -type f -name '*.java'
18:07:25 + /Users/admin/bootjdk/Contents/Home/bin/javac ./IncompatibleComponent.java ./JLabelExample.java ./JDialogExample.java ./JButtonExample.java ./JComboBoxExample.java ./MainRunner.java ./JFrameExample.java ./TestArgumentParser.java ./CompatibleComponent.java ./SwingTestUtils.java ./JCheckBoxExample.java ./AbstractComponent.java -d /var/folders/fs/0w3t9t1d28xc3bj0tgb8hcrw0000gn/T/tmp.UL5PC9ijmo
18:07:25 /Users/admin/workspace/workspace/Test_openjdk11_hs_dev.functional_aarch64_mac/aqa-tests/TKG/../functional/testHeadlessComponents/TestHeadlessComponents/testHeadlessComponents.sh: line 189: /Users/admin/bootjdk/Contents/Home/bin/javac: No such file or directory
18:07:25 -----------------------------------
18:07:25 TestHeadlessComponents_0_FAILED
18:07:25 -----------------------------------
```

The test was added recently: https://github.com/adoptium/aqa-tests/issues/4875

Contributor guide

Open the contributing guide

Research direction

Start with functional/testHeadlessComponents/TestHeadlessComponents/testHeadlessComponents.sh, especially the unwrap_file_to_location call and line 189 where javac is invoked. Compare the archive produced by the linked internal build with the successful Adoptium job and verify the extracted macOS JDK layout. Done means the archive extracts correctly, javac is found, and TestHeadlessComponents passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, macos, shell
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.