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

Setup GitHub Actions #131

Merged
merged 5 commits into from
Sep 28, 2021
Merged

Setup GitHub Actions #131

merged 5 commits into from
Sep 28, 2021

Conversation

aliciapaz
Copy link
Collaborator

@aliciapaz aliciapaz commented Sep 21, 2021

Migrating to Travis for CI

  • Exporter Tests
  • Rubocop
  • Docker Build

@gitpod-io
Copy link

gitpod-io bot commented Sep 21, 2021

@aliciapaz aliciapaz changed the title Setup GH Actions/Rubocop Setup GitHub Actions Sep 21, 2021
@jywarren
Copy link
Member

@icarito will this trigger a rebuild? Maybe we should do on a day we're online?

Looks awesome @aliciapaz!!!

@jywarren
Copy link
Member

Oh odd, looks like an error but it didn't return it!

examples, 0 failures

/home/runner/work/mapknitter-exporter-sinatra/mapknitter-exporter-sinatra/lib/export.rb:74:in `save': undefined method `files' for nil:NilClass (NoMethodError)
	from /home/runner/work/mapknitter-exporter-sinatra/mapknitter-exporter-sinatra/vendor/bundle/ruby/2.4.0/gems/mapknitter-exporter-1.0.9/lib/mapknitterExporter.rb:329:in `run_export'

@jywarren
Copy link
Member

Does it need the ruby files class included? Or something?

@icarito
Copy link
Member

icarito commented Sep 25, 2021 via email

@aliciapaz
Copy link
Collaborator Author

aliciapaz commented Sep 25, 2021

Thank you both!

Indeed the trigger is set for main branch. We could change it to stable branch to keep in line with other repositories.

@icarito Where is this change to be done?

@icarito
Copy link
Member

icarito commented Sep 25, 2021 via email

@aliciapaz
Copy link
Collaborator Author

Oh odd, looks like an error but it didn't return it!

examples, 0 failures

/home/runner/work/mapknitter-exporter-sinatra/mapknitter-exporter-sinatra/lib/export.rb:74:in `save': undefined method `files' for nil:NilClass (NoMethodError)
	from /home/runner/work/mapknitter-exporter-sinatra/mapknitter-exporter-sinatra/vendor/bundle/ruby/2.4.0/gems/mapknitter-exporter-1.0.9/lib/mapknitterExporter.rb:329:in `run_export'

Does it need the ruby files class included? Or something?

I think not...it looks more like something is nil in a moment when it shouldn't. I noticed when debugging that the @directory variable is nil after is created inside the initialize method of Export.rb (line 36), and it is as well when the export.save call is made.

@jywarren
Copy link
Member

I think not...it looks more like something is nil in a moment when it shouldn't. I noticed when debugging that the @directory variable is nil after is created inside the initialize method of Export.rb (line 36), and it is as well when the export.save call is made.

Ah ok, does this need some further debugging then? Was this error happening same way in Travis?

@icarito i think once @aliciapaz confirms this is good to go, we can just merge it and manually monitor and test an export, just to be sure. I guess someday we should make it republish /only/ if we bump the version or something, or switch it to stable, but it's really not that important, this service is basically completely stable.

@icarito
Copy link
Member

icarito commented Sep 28, 2021 via email

@aliciapaz
Copy link
Collaborator Author

Yes, this is a Travis run from about a year ago:
https://app.travis-ci.com/github/publiclab/mapknitter-exporter-sinatra/jobs/423729539

So yes, we're good to go 👍🏽
Thanks!!

@jywarren
Copy link
Member

OK Great - i'll open an issue for this just to track but it seems harmless with @aliciapaz's confirmation - here's the old Travis log that's exactly the same; the tests pass even though it shows this error, and the error does not disrupt the actual export:

undefined method `files' for nil:NilClass (NoMethodError)
	from /home/travis/build/publiclab/mapknitter-exporter-sinatra/vendor/.bundle/ruby/2.4.0/gems/mapknitter-exporter-1.0.9/lib/mapknitterExporter.rb:329:in `run_export'
	from /home/travis/build/publiclab/mapknitter-exporter-sinatra/app/controllers/export_controller.rb:73:in `block in run_export'
	from /home/travis/build/publiclab/mapknitter-exporter-sinatra/app/controllers/export_controller.rb:71:in `fork'
	from /home/travis/build/publiclab/mapknitter-exporter-sinatra/app/controllers/export_controller.rb:71:in `run_export'
	from /home/travis/build/publiclab/mapknitter-exporter-sinatra/app/controllers/export_controller.rb:35:in `block in <top (required)>'

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