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

Wait for apt locks #4000

Merged
merged 5 commits into from
Apr 24, 2024
Merged

Wait for apt locks #4000

merged 5 commits into from
Apr 24, 2024

Conversation

geyslan
Copy link
Member

@geyslan geyslan commented Apr 23, 2024

1. Explain what the PR does

d4a0dfa fix(tests): address shellcheck SC1091

Silence shellcheck SC1091 in e2e-install-deps.sh.

95ea66a fix(tests): address shellcheck SC2001

- SC2001: See if you can use ${variable//search/replace} instead.

In this was used % (shortest match - suffix) since it's more appropriate
for the use case.

3700b40 fix(tests): address shellcheck SC2005

- SC2005: Useless echo? Instead of 'cmd; echo $?' just use 'cmd'.

d06ef23 fix(tests): address shellcheck SC2086

- SC2086: Double quote to prevent globbing and word splitting.

a4475b8 fix(tests): call wait_for_apt_locks before apt-get

Reduce the window of opportunity for apt-get to fail due to locks by
calling wait_for_apt_locks before each apt-get command.

2. Explain how to test it

3. Other comments

geyslan added 5 commits April 23, 2024 14:36
Reduce the window of opportunity for apt-get to fail due to locks by
calling wait_for_apt_locks before each apt-get command.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2005: Useless echo? Instead of 'cmd; echo $?' just use 'cmd'.
- SC2001: See if you can use ${variable//search/replace} instead.

In this was used % (shortest match - suffix) since it's more appropriate
for the use case.
Silence shellcheck SC1091 in e2e-install-deps.sh.
@geyslan geyslan self-assigned this Apr 23, 2024
@geyslan geyslan marked this pull request as ready for review April 23, 2024 18:19
@geyslan geyslan requested a review from rscampos April 23, 2024 18:19
@geyslan
Copy link
Member Author

geyslan commented Apr 23, 2024

a4475b8 is a fix attempt for #3945 (comment)

The other commits are timely.

@rscampos
Copy link
Collaborator

rscampos commented Apr 24, 2024

The shellcheck fixes seem to be OK, I've double checked each one. I'll take a look wait_for_apt_locks before apt's.

Copy link
Collaborator

@rscampos rscampos left a comment

Choose a reason for hiding this comment

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

LGTM

@geyslan geyslan merged commit 0ff8d58 into aquasecurity:main Apr 24, 2024
33 checks passed
@geyslan geyslan deleted the wait-for-apt-locks branch May 16, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants