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

Various code cleanups and modernisations #36

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

Jacalz
Copy link

@Jacalz Jacalz commented Apr 30, 2024

Just a small tidy to keep code quality up and in sync with Fyne v2.5.0.

andydotxyz
andydotxyz previously approved these changes May 2, 2024
Copy link

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

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

Thanks for this

@andydotxyz
Copy link

It looks like the CI is not matching the versions required in this update, so I guess it also needs to be changed to match what Fyne is using upstream?

@Jacalz
Copy link
Author

Jacalz commented May 2, 2024

Good point. Should be fixed now

@Jacalz
Copy link
Author

Jacalz commented May 28, 2024

Ping. Would you mind doing a re-review of this? :)

andydotxyz
andydotxyz previously approved these changes May 28, 2024
Copy link

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

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

Sorry this dropped off my radar - looks good thanks

@Jacalz
Copy link
Author

Jacalz commented May 28, 2024

I had forgot that the Go update made changes to comment formatting. I have now re-formatted the code 👍

andydotxyz
andydotxyz previously approved these changes May 28, 2024
@andydotxyz
Copy link

Any idea what the failure means @Jacalz ?

@Jacalz
Copy link
Author

Jacalz commented May 29, 2024

It was missing some package. Sorry about that. Should be working now 😅

@Jacalz Jacalz requested a review from andydotxyz May 29, 2024 13:35
andydotxyz
andydotxyz previously approved these changes Jun 16, 2024
Copy link

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

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

Thanks

@andydotxyz
Copy link

Hmm, the changes don't seem to have fixed the static-check failure. I don't understand the message, do you?

@Jacalz
Copy link
Author

Jacalz commented Jun 17, 2024

It is a very strange error. From what I can tell, the test fails when testing with coverage data enabled because it tries to compare the binaries and they no longer match (due to different coverage?). I added a change to skip the tests when we get to that point. We can probably update it in the future to not run it on the ci tag but I didn't have time to implement that right now.

@Jacalz Jacalz requested a review from andydotxyz June 28, 2024 19:59
@andydotxyz
Copy link

Can this skips really have dropped this 20% in coverage?

@Jacalz
Copy link
Author

Jacalz commented Jul 5, 2024

Seems very strange. I tried to rectify it by not calling t.Skip() but instead returning thinking that a skip made the whole test not count towards the coverage. I have no idea if it works or not but seems not to change anything from my local tests. I only have Go 1.22 available so I can't compare before and after outputs with -cover given that those fail locally for me as well.

@andydotxyz
Copy link

Hmm, no change with this new approach @Jacalz.

Oh I see what has happened - it added the cmd folder compare to previous test coverage.
This was not caused directly by the code changes. Do you want to revert the new skip approach as the last one was less code?

Copy link

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

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

Commented on the thread - seems the coverage issue was not that test after all, do you want to go back to the previous approach, or leave as is?

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.

None yet

2 participants