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

Improve tests [DI-337] #241

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Improve tests [DI-337] #241

merged 1 commit into from
Nov 20, 2024

Conversation

JackPGreen
Copy link
Collaborator

@JackPGreen JackPGreen commented Nov 8, 2024

#237 highlighted a gap in our test process, investigation found further issues this PR addresses:

  • We test Debian packages on Ubuntu
    • A better target would be Debian, action updated to use debian:latest and install required tools
    • Note that this means the build now fails because the fix for Problem with upgrade Debian 12 #237 has yet to be merged - this is a good thing, as we've recreated the issue
  • Unnecessary Java installation
    • The Debian package specifies a JRE, we don't need to install our own
    • This didn't obscure the issue in Problem with upgrade Debian 12 #237, but if there was an incompatibility in Java versions, it might've been hidden
  • Test repo not reliably cleaned
    • The test undeploys the packages from the test repo, but only if it completes successfully - when it fails, it's not removed

Fixes: DI-337

Post-merge action:

  • copy to management centre

@JackPGreen JackPGreen self-assigned this Nov 8, 2024
@JackPGreen JackPGreen marked this pull request as ready for review November 8, 2024 11:34
Copy link
Contributor

@nishaatr nishaatr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs backport?

@JackPGreen
Copy link
Collaborator Author

Needs backport?

I don't think so.

@JackPGreen JackPGreen changed the title Improve tests Improve tests [DI-337] Nov 8, 2024
@JackPGreen
Copy link
Collaborator Author

@ldziedziul are you able to take a look at this, please?

@JackPGreen JackPGreen merged commit d16e776 into master Nov 20, 2024
31 of 43 checks passed
@JackPGreen JackPGreen deleted the improve-tests branch November 20, 2024 08:46
JackPGreen added a commit to hazelcast/management-center-packaging that referenced this pull request Nov 20, 2024
JackPGreen added a commit that referenced this pull request Nov 28, 2024
#237 highlighted
a gap in our test process, investigation found further issues this PR
addresses:

- We test Debian packages on Ubuntu
- A better target would be Debian, action updated to use `debian:latest`
and install required tools
- Note that this means the **build now fails** because the fix for
#237 has yet to
be merged - this is a good thing, as we've recreated the issue
- Unnecessary Java installation
- The Debian package specifies a JRE, we don't need to install our own
- This didn't obscure the issue in
#237, but if
there was an incompatibility in Java versions, it might've been hidden
- Test repo not reliably cleaned
- The test undeploys the packages from the test repo, but _only_ if it
completes successfully - when it
[fails](https://github.com/hazelcast/hazelcast-packaging/actions/runs/11727659937/job/32669285892),
it's not removed

Fixes: [DI-337](https://hazelcast.atlassian.net/browse/DI-337)

[DI-337]:
https://hazelcast.atlassian.net/browse/DI-337?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
JackPGreen added a commit that referenced this pull request Nov 28, 2024
#237 highlighted
a gap in our test process, investigation found further issues this PR
addresses:

- We test Debian packages on Ubuntu
- A better target would be Debian, action updated to use `debian:latest`
and install required tools
- Note that this means the **build now fails** because the fix for
#237 has yet to
be merged - this is a good thing, as we've recreated the issue
- Unnecessary Java installation
- The Debian package specifies a JRE, we don't need to install our own
- This didn't obscure the issue in
#237, but if
there was an incompatibility in Java versions, it might've been hidden
- Test repo not reliably cleaned
- The test undeploys the packages from the test repo, but _only_ if it
completes successfully - when it
[fails](https://github.com/hazelcast/hazelcast-packaging/actions/runs/11727659937/job/32669285892),
it's not removed

Fixes: [DI-337](https://hazelcast.atlassian.net/browse/DI-337)

[DI-337]:
https://hazelcast.atlassian.net/browse/DI-337?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
JackPGreen added a commit that referenced this pull request Nov 28, 2024
JackPGreen added a commit that referenced this pull request Nov 28, 2024
JackPGreen added a commit that referenced this pull request Nov 28, 2024
`apt install` prompts for confirmation, which caused the job to fail
when not specified - with the newly added option, this is avoided.

Note that I do not understand why this is only _now_ causing a problem,
as recent changes do not explain it:
- #220
   - I can reproduce this issue with both `apt-get` and `apt`
- #241
   - I can reproduce this issue with both Ubuntu and Debian

I think it should _always_ have failed.

Fixes: [DI-358](https://hazelcast.atlassian.net/browse/DI-358)

[DI-358]:
https://hazelcast.atlassian.net/browse/DI-358?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
JackPGreen added a commit that referenced this pull request Nov 28, 2024
`apt install` prompts for confirmation, which caused the job to fail
when not specified - with the newly added option, this is avoided.

Note that I do not understand why this is only _now_ causing a problem,
as recent changes do not explain it:
- #220
   - I can reproduce this issue with both `apt-get` and `apt`
- #241
   - I can reproduce this issue with both Ubuntu and Debian

I think it should _always_ have failed.

Fixes: [DI-358](https://hazelcast.atlassian.net/browse/DI-358)

[DI-358]:
https://hazelcast.atlassian.net/browse/DI-358?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
JackPGreen added a commit that referenced this pull request Nov 28, 2024
`apt install` prompts for confirmation, which caused the job to fail
when not specified - with the newly added option, this is avoided.

Note that I do not understand why this is only _now_ causing a problem,
as recent changes do not explain it:
- #220
   - I can reproduce this issue with both `apt-get` and `apt`
- #241
   - I can reproduce this issue with both Ubuntu and Debian

I think it should _always_ have failed.

Fixes: [DI-358](https://hazelcast.atlassian.net/browse/DI-358)

[DI-358]:
https://hazelcast.atlassian.net/browse/DI-358?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
JackPGreen added a commit that referenced this pull request Nov 28, 2024
`apt install` prompts for confirmation, which caused the job to fail
when not specified - with the newly added option, this is avoided.

Note that I do not understand why this is only _now_ causing a problem,
as recent changes do not explain it:
- #220
   - I can reproduce this issue with both `apt-get` and `apt`
- #241
   - I can reproduce this issue with both Ubuntu and Debian

I think it should _always_ have failed.

Fixes: [DI-358](https://hazelcast.atlassian.net/browse/DI-358)

[DI-358]:
https://hazelcast.atlassian.net/browse/DI-358?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
JackPGreen added a commit that referenced this pull request Nov 28, 2024
`apt install` prompts for confirmation, which caused the job to fail
when not specified - with the newly added option, this is avoided.

Note that I do not understand why this is only _now_ causing a problem,
as recent changes do not explain it:
- #220
   - I can reproduce this issue with both `apt-get` and `apt`
- #241
   - I can reproduce this issue with both Ubuntu and Debian

I think it should _always_ have failed.

Fixes: [DI-358](https://hazelcast.atlassian.net/browse/DI-358)

[DI-358]:
https://hazelcast.atlassian.net/browse/DI-358?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
JackPGreen added a commit that referenced this pull request Nov 30, 2024
`apt install` prompts for confirmation, which caused the job to fail
when not specified - with the newly added option, this is avoided.

Note that I do not understand why this is only _now_ causing a problem,
as recent changes do not explain it:
- #220
   - I can reproduce this issue with both `apt-get` and `apt`
- #241
   - I can reproduce this issue with both Ubuntu and Debian

I think it should _always_ have failed.

Fixes: [DI-358](https://hazelcast.atlassian.net/browse/DI-358)

[DI-358]:
https://hazelcast.atlassian.net/browse/DI-358?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
JackPGreen added a commit that referenced this pull request Nov 30, 2024
`apt install` prompts for confirmation, which caused the job to fail
when not specified - with the newly added option, this is avoided.

Note that I do not understand why this is only _now_ causing a problem,
as recent changes do not explain it:
- #220
   - I can reproduce this issue with both `apt-get` and `apt`
- #241
   - I can reproduce this issue with both Ubuntu and Debian

I think it should _always_ have failed.

Fixes: [DI-358](https://hazelcast.atlassian.net/browse/DI-358)

[DI-358]:
https://hazelcast.atlassian.net/browse/DI-358?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
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