• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cyverse / atmosphere / 1001 / 2
37%
master: 37%

Build:
Build:
LAST BUILD BRANCH: script-chmod
DEFAULT BRANCH: master
Ran 27 Feb 2018 09:55PM UTC
Files 451
Run time 17s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Feb 2018 09:45PM UTC coverage: 35.364% (-0.01%) from 35.377%
DISTRIBUTION=jetstream

Pull #585

travis-ci

web-flow
Fix invalid argument to check_allocation

When an instance is started, a call is made to check_allocation with an
allocation source snapshot. However, check_allocation expects an
allocation_source.

Here is a stack trace, which would lead to the assertion error

  /opt/dev/atmosphere/api/v2/views/instance.py(99)actions()
     98             return self.list_instance_actions(request, pk=pk)
---> 99         return self.post_instance_action(request, pk=pk)
    100

  /opt/dev/atmosphere/api/v2/views/instance.py(119)post_instance_action()
    118         try:
--> 119             result_obj = run_instance_action(user, identity, instance_id, action, action_params)
    120             api_response = {

  /opt/dev/atmosphere/service/instance.py(2054)run_instance_action()
   2053         instance_allocation_source = InstanceAllocationSourceSnapshot.objects.get(instance__provider_alias=instance_id)
-> 2054         check_allocation(user.username, instance_allocation_source)
   2055     if 'resize' == action_type:

  /opt/dev/atmosphere/service/instance.py(1327)check_allocation()
   1326     enforcement_override_choice = AllocationSourcePluginManager.get_enforcement_override(user,
-> 1327                                                                                          allocation_source)
   1328     logger.debug('check_allocation - enforcement_override_choice: %s', enforcement_override_choice)

  /opt/dev/atmosphere/core/plugins.py(200)get_enforcement_override()
    199                                                                            allocation_source=allocation_source,
--> 200                                                                            provider=provider)
    201             if _enforcement_override_choice != EnforcementOverrideChoice.NO_OVERRIDE:

  /opt/dev/atmosphere/cyverse_allocation/plugins/allocation_source.py(39)get_enforcement_override()
     38         """
---> 39         return _get_enforcement_override(allocation_source... (continued)
Pull Request #585: Fix invalid argument to check_allocation

999 of 7099 branches covered (14.07%)

Branch coverage included in aggregate %.

11474 of 28171 relevant lines covered (40.73%)

0.41 hits per line

Source Files on job 1001.2 (DISTRIBUTION=jetstream)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1
  • Travis Job 1001.2
  • e2e14752 on github
  • Prev Job for DISTRIBUTION=jetstream on v30 (#995.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc