Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
9344 Lượt xem

I had one of the branches with testing enabled in Odoo.sh. I was trying to automatically set the company_id for customers in a multi-company setting. The functionality works fine.. however, looks like some of the tests around accounting are failing with the following: 


File "/home/odoo/src/odoo/odoo/models.py", line 3238, in check_access_rule
raise self.env['ir.rule']._make_access_error(operation, forbidden)
odoo.exceptions.AccessError: ('The requested operation ("read" on "Contact" (res.partner)) was rejected because of the following rules:\n- res.partner company\n\nNote: this might be a multi-company issue.\n\n(Records: company_1_data (id=358), User: Because I am accountman! (id=89))', None)

For some reason, due to those test errors, the build wasn't going anywhere and after 2 hours, it was dropped. 
My question is - is there a way to kill the build process right away so I can have it rebuilt with the new commits? I wasn't able to get the branch rebuilt with new commit while the previous build is still running. Thank you Odoo'ers. 

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Hi everyone - I realized that if the build is running too long due to errors in the tests, I can simply delete that branch, which apparently kills that build process as well. I can then check-in my fix and let the new build take over for that branch. So the delete-branch option looks like a reasonable option in this case. If you know a way of simply cancelling the build w/o nuke, let me know as well. Thanks! :-)

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

As a solution for the test env this is one of the solutions, but what if the build queued on the production env?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 19
3346
0
thg 11 21
1762
1
thg 7 25
1729
4
thg 4 25
12098
1
thg 2 25
3471