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

Ease debugging, fix some CI issues, tweak folder structure #200

Merged
merged 10 commits into from
May 8, 2023
Merged

Ease debugging, fix some CI issues, tweak folder structure #200

merged 10 commits into from
May 8, 2023

Conversation

paulo-ferraz-oliveira
Copy link
Collaborator

@paulo-ferraz-oliveira paulo-ferraz-oliveira commented May 6, 2023

Opening as draft to try and troubleshoot #199. (and then some πŸ˜„)

This:

  • adds a debugLog function
  • replaces calls to console. with appropriate calls to core.
    • then lints to make sure we're not using console.
  • moves __tests__ to test
  • moves test-projects to test/projects
  • moves matchers to (new) folder matchers
  • fixes some CI issues
    • issues with annotations on non-failing tests are fixed
    • issues with rebar_core breaking are fixed
    • issues with parsing non-list -based JSON are "fixed" via better logging
    • issues with npm run tests are fixed
    • test maintenance is improved

CI is all βœ… again. We still get errors regarding hitting the GitHub API all too often, but that's outside the scope of this PR and there's already an ongoing PR for this.

The fact that one mirror fails in the above test and others follow
working is test enough for me

A single failing mirror should fail, but it's confusing to have
an error annotation for a success (via continue-on-error) while
not being able to suppress it via GitHub Actions
Might simply be that the bug is already fixed and we need to bump rebar3
We're getting Access Denied for
Fetching registry from "https://repo.hex.pm:443/registry.ets.gz?"
@paulo-ferraz-oliveira paulo-ferraz-oliveira changed the title Enable debug for OTP versions' listings Enable debug for OTP versions' listings plus some other tweaks May 7, 2023
@paulo-ferraz-oliveira paulo-ferraz-oliveira changed the title Enable debug for OTP versions' listings plus some other tweaks Ease debugging, fix some CI issues, tweak folder structure May 7, 2023
@paulo-ferraz-oliveira paulo-ferraz-oliveira marked this pull request as ready for review May 7, 2023 01:36
if: ${{ steps.failing-setup-beam.outcome == 'success' }}
run: |
echo "Action is expected to fail"
exit 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why remove this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We get an annotation with an error, which lead us to think that there was an issue, but then there wasn't because the action is βœ…. It's basically very misleading. We can add a non-workflow action test (e.g. JavaScript) to test the same condition, though, if it's absolutely necessary.

dist/index.js Show resolved Hide resolved
@paulo-ferraz-oliveira paulo-ferraz-oliveira merged commit b9783cd into erlef:main May 8, 2023
59 checks passed
@paulo-ferraz-oliveira paulo-ferraz-oliveira deleted the feature/debug-for-otp-versions-listings branch May 8, 2023 08:31
@paulo-ferraz-oliveira
Copy link
Collaborator Author

Released in v1.16.0 / v1.16. Tag v1 moved up...

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

3 participants