Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

chore(linux tests) apply shellcheck and fix concurency issues #299

Merged
merged 2 commits into from
Nov 12, 2022

Conversation

dduportal
Copy link
Contributor

@dduportal dduportal commented Nov 12, 2022

While debugging #296 (why are the Linux tests failing for JDK17 Debian only? Why not reproducible locally?) I realized that the bats test was not ready for concurent executions (which is the case in the CI).

This PR aims at fixing this by:

  • Applying shellcheck rules on the test harness
  • Using local shell keyword to mark variables local to function and avoid scope issues
  • Fix the order of the "netcat/SUT" container flow + add 1s sleep to let time to the system to start the inbound process

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@dduportal dduportal marked this pull request as ready for review November 12, 2022 12:56
@dduportal dduportal requested a review from a team as a code owner November 12, 2022 12:56
Signed-off-by: Damien Duportal <[email protected]>
@dduportal dduportal merged commit 2ab4f91 into jenkinsci:master Nov 12, 2022
@dduportal dduportal deleted the chore/tests/shellcheck branch November 12, 2022 20:31
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Nov 28, 2023
…uportal/chore/tests/shellcheck

chore(linux tests) apply shellcheck and fix concurency issues
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Nov 28, 2023
…uportal/chore/tests/shellcheck

chore(linux tests) apply shellcheck and fix concurency issues
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Nov 28, 2023
…uportal/chore/tests/shellcheck

chore(linux tests) apply shellcheck and fix concurency issues
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Nov 28, 2023
…uportal/chore/tests/shellcheck

chore(linux tests) apply shellcheck and fix concurency issues
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Nov 28, 2023
…uportal/chore/tests/shellcheck

chore(linux tests) apply shellcheck and fix concurency issues
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Jan 12, 2024
…chore/tests/shellcheck

chore(linux tests) apply shellcheck and fix concurency issues
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant