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

bug: fix handling of variables in conditions #82

Merged
merged 2 commits into from
Oct 13, 2023
Merged

Conversation

MSevey
Copy link
Member

@MSevey MSevey commented Oct 13, 2023

Overview

Here is the debug log:
Screen Shot 2023-10-13 at 9 35 38 AM

The variables that we were creating were assumed boolean types because when printed they are true and false. However by checking the values against boolean and string representations, we can see that the variables are indeed strings. This resulted in the logical if statements always being evaluated to true because if a string is not "" then it is true.

@MSevey MSevey marked this pull request as ready for review October 13, 2023 13:40
@MSevey MSevey requested a review from a team as a code owner October 13, 2023 13:40
Copy link
Contributor

@tty47 tty47 left a comment

Choose a reason for hiding this comment

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

👍

@MSevey MSevey changed the title debug: add log statements to github action bug: fix handling of variables in conditions Oct 13, 2023
@MSevey MSevey requested review from Bidon15 and smuu October 13, 2023 13:59
@Bidon15 Bidon15 merged commit 98b8060 into main Oct 13, 2023
8 checks passed
@Bidon15 Bidon15 deleted the sevey/logic-debug branch October 13, 2023 13:59
Wondertan pushed a commit to celestiaorg/celestia-node that referenced this pull request Oct 13, 2023
Final bug fix celestiaorg/.github#82

Visual proof of action executing as expected now
celestiaorg/celestia-node/actions/runs/6509222904/job/17680437495
Screen Shot 2023-10-13 at 10 13 28 AM
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