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][9.0] travis: Add SASS #284

Merged
merged 3 commits into from
Nov 25, 2016
Merged

[FIX][9.0] travis: Add SASS #284

merged 3 commits into from
Nov 25, 2016

Conversation

lasley
Copy link
Contributor

@lasley lasley commented Nov 15, 2016

Possible fix to #282 and resubmit of #283, which was to the wrong branch.

Question still stands as to why this issue just popped up, and why it's not showing on v8 or v10.

@lasley lasley added the bug label Nov 15, 2016
@lasley lasley added this to the 9.0 milestone Nov 15, 2016
@lasley
Copy link
Contributor Author

lasley commented Nov 15, 2016

Crap Travis is building this on 10.0 too. I'm now incredibly confused - The travis file clearly says v9.

@lasley
Copy link
Contributor Author

lasley commented Nov 15, 2016

Amending the commit did the trick. I'll keep in mind for future. Now back to troubleshooting the real issue

@lasley lasley changed the title [FIX] travis: Add SASS [FIX][9.0] travis: Add SASS Nov 15, 2016
@lasley lasley force-pushed the bugfix/9.0/sass branch 2 times, most recently from 5d012df to 7fc1043 Compare November 15, 2016 19:08
* Upgrade ruby version
* Add `bootstrap-sass` dependency
* Add `compass` dependency
* Remove v8 migrations
* Remove duplicated http send in favor of pass
* Fix broken test for exception handling
@lasley
Copy link
Contributor Author

lasley commented Nov 15, 2016

Alright this should be good assuming build passes. I'm still baffled why this error appeared out of nowhere, but I needed to update the Ruby version in Travis to support SASS, then add bootstrap-sass and compass as gem depends.

After that, I resolved the test issue in _logo and removed the v8 migrations.

@lasley
Copy link
Contributor Author

lasley commented Nov 15, 2016

Now we're ping-ponging CIs here. Runbot is failing due to the use of the RVM command, which is by far the best way to upgrade Ruby on Travis. Version <2 Ruby is deprecated for sass and outright not supported for compass.

We'll need to add this either to Travis2Docker or to the Docker base image for Runbot. I think the image, but I'll wait for response from Vauxoo in associated issue before randomly hacking about.

@yajo
Copy link
Member

yajo commented Nov 16, 2016

Shouldn't we be using t2d at this point?

@pedrobaeza
Copy link
Member

Travis2docker is not activated yet for all repositories. I don't know if website is one of them.

@lasley
Copy link
Contributor Author

lasley commented Nov 16, 2016

Website is one of them, and the issue is specific to T2D - although we would have the same issue if stock Runbot. I'm working on fixing the base Docker image, and should have something submitted by EOD today

@yajo
Copy link
Member

yajo commented Nov 17, 2016

Seems like runbot went ❌

@lasley
Copy link
Contributor Author

lasley commented Nov 22, 2016

Runbot 🔴 was fixed in:

We just need to wait for updates noted in OCA/runbot-addons#105 (comment) then a rebuild will fix.

Copy link

@moylop260 moylop260 left a comment

Choose a reason for hiding this comment

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

Using the last changes this pr work fine!

screen shot 2016-11-21 at 5 48 41 pm

(I'll add small comments non-blocking)

@@ -80,5 +80,5 @@ def website_logo(self, dbname=None, **kw):
image, filename=imgname, mtime=mtime)
return response
except Exception:
return http.send_file(placeholder(imgname))
pass

Choose a reason for hiding this comment

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

Using pep-0020:

  • Errors should never pass silently.

If there’s really nothing to do add a _logger.error

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmmm guess I need to re-read that one, but I agree this was bad. .error it is, there is indeed nothing to do because the end return handles it

@lasley
Copy link
Contributor Author

lasley commented Nov 25, 2016

Alright Runbot fixed, and green like @moylop260 noted. This is good for a merge I believe

@pedrobaeza pedrobaeza merged commit 46ae987 into OCA:9.0 Nov 25, 2016
@lasley lasley deleted the bugfix/9.0/sass branch November 25, 2016 18:34
@moylop260
Copy link

🎉 🎈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants