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

fix: use of uninitialized global variable #135

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

pendo324
Copy link
Member

Issue #, if available: https://github.com/runfinch/finch/actions/runs/8427176493/job/23080891806#step:10:2784

Description of changes:

  • Fixes issue where some tests were using an uninitialized global variable since the assignment statements were executed before ginkgo's SynchronizedBeforeSuite, which actually populates localImages
    • Somehow I didn't catch this when I did my local testing before the last release, but I have confirmed this change fixes it locally
  • Also added a trivial change to allow remote pulls in SetupLocalRegistry to take up to 60 seconds

Testing done:

  • Local testing

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Signed-off-by: Justin Alvarez <[email protected]>
@pendo324 pendo324 requested a review from Shubhranshu153 March 26, 2024 16:57
@pendo324 pendo324 self-assigned this Mar 26, 2024
@pendo324 pendo324 changed the title fix: uninitialized global variable fix: use of uninitialized global variable Mar 26, 2024
@pendo324 pendo324 merged commit 02a134d into runfinch:main Mar 26, 2024
4 checks passed
pendo324 pushed a commit that referenced this pull request Mar 26, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.7.18](v0.7.17...v0.7.18)
(2024-03-26)


### Bug Fixes

* use of uninitialized global variable
([#135](#135))
([02a134d](02a134d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Shubhranshu153 pushed a commit to Shubhranshu153/common-tests that referenced this pull request Mar 26, 2024
Issue #, if available:
https://github.com/runfinch/finch/actions/runs/8427176493/job/23080891806#step:10:2784

*Description of changes:*
- Fixes issue where some tests were using an uninitialized global
variable since the assignment statements were executed before ginkgo's
`SynchronizedBeforeSuite`, which actually populates `localImages`
- Somehow I didn't catch this when I did my local testing before the
last release, but I have confirmed this change fixes it locally
- Also added a trivial change to allow remote pulls in
`SetupLocalRegistry` to take up to 60 seconds

*Testing done:*
- Local testing


- [x] I've reviewed the guidance in CONTRIBUTING.md


#### License Acceptance

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

Signed-off-by: Justin Alvarez <[email protected]>
Shubhranshu153 pushed a commit to Shubhranshu153/common-tests that referenced this pull request Mar 26, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.7.18](runfinch/common-tests@v0.7.17...v0.7.18)
(2024-03-26)


### Bug Fixes

* use of uninitialized global variable
([runfinch#135](runfinch#135))
([02a134d](runfinch@02a134d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants