Skip to content

Require shellwords in artifact rake task#17319

Merged
donoghuc merged 1 commit intoelastic:mainfrom
donoghuc:fix-rake-shellwords
Mar 14, 2025
Merged

Require shellwords in artifact rake task#17319
donoghuc merged 1 commit intoelastic:mainfrom
donoghuc:fix-rake-shellwords

Conversation

@donoghuc
Copy link
Copy Markdown
Member

Release notes

[rn:skip]

What does this PR do?

The #17310 PR changed the rake task for artifact creation to use shellwords from standard library. The acceptance tests need to explitily load that library. This commit updates the rake file to handle loading the required code.

References

failing cell https://buildkite.com/elastic/logstash-exhaustive-tests-pipeline/builds/1515#01959199-086d-4bb5-8922-161dc535f3e0


2025-03-13 16:10:03 PDT | [docker] Building docker image
-- | --
  | 2025-03-13 16:10:03 PDT | rake aborted!
  | 2025-03-13 16:10:04 PDT | NameError: uninitialized constant Shellwords
  | 2025-03-13 16:10:04 PDT | /opt/buildkite-agent/builds/bk-agent-prod-gcp-1741906760078483547/elastic/logstash-exhaustive-tests-pipeline/rakelib/artifacts.rake:143:in `block in safe_system'
  | 2025-03-13 16:10:04 PDT | /opt/buildkite-agent/builds/bk-agent-prod-gcp-1741906760078483547/elastic/logstash-exhaustive-tests-pipeline/rakelib/artifacts.rake:142:in `safe_system'
  | 2025-03-13 16:10:04 PDT | /opt/buildkite-agent/builds/bk-agent-prod-gcp-1741906760078483547/elastic/logstash-exhaustive-tests-pipeline/rakelib/artifacts.rake:828:in `block in build_docker'
  | 2025-03-13 16:10:04 PDT | /opt/buildkite-agent/builds/bk-agent-prod-gcp-1741906760078483547/elastic/logstash-exhaustive-tests-pipeline/rakelib/artifacts.rake:827:in `build_docker'
  | 2025-03-13 16:10:04 PDT | /opt/buildkite-agent/builds/bk-agent-prod-gcp-1741906760078483547/elastic/logstash-exhaustive-tests-pipeline/rakelib/artifacts.rake:341:in `block in <main>'
  | 2025-03-13 16:10:04 PDT | org/jruby/ext/monitor/Monitor.java:82:in `synchronize'


The elastic#17310 PR changed the rake task for
artifact creation to use shellwords from standard library. The acceptance tests
need to explitily load that library. This commit updates the rake file to handle
loading the required code.
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 14, 2025

This pull request does not have a backport label. Could you fix it @donoghuc? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit.
  • backport-8.x is the label to automatically backport to the 8.x branch.
  • If no backport is necessary, please add the backport-skip label

@elastic-sonarqube
Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@donoghuc donoghuc added the backport-active-all Automated backport with mergify to all the active branches label Mar 14, 2025
@elasticmachine
Copy link
Copy Markdown

💚 Build Succeeded

@donoghuc donoghuc added backport-9.0 Automated backport to the 9.0 branch with mergify and removed backport-active-all Automated backport with mergify to all the active branches labels Mar 14, 2025
Copy link
Copy Markdown
Member

@robbavey robbavey left a comment

Choose a reason for hiding this comment

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

Lgtm

@donoghuc
Copy link
Copy Markdown
Member Author

Note that this only needs to be backported to 9.0 as the bug that introduced the need for this change only went in to main and 9.0. The other backports will be modified to not contain this bug as there were other issues doing the backport.

@donoghuc donoghuc merged commit 964468f into elastic:main Mar 14, 2025
10 checks passed
mergify bot pushed a commit that referenced this pull request Mar 14, 2025
The #17310 PR changed the rake task for
artifact creation to use shellwords from standard library. The acceptance tests
need to explitily load that library. This commit updates the rake file to handle
loading the required code.

(cherry picked from commit 964468f)
donoghuc added a commit that referenced this pull request Mar 14, 2025
The #17310 PR changed the rake task for
artifact creation to use shellwords from standard library. The acceptance tests
need to explitily load that library. This commit updates the rake file to handle
loading the required code.

(cherry picked from commit 964468f)

Co-authored-by: Cas Donoghue <cas.donoghue@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-9.0 Automated backport to the 9.0 branch with mergify

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants