!sBfrWMVsLoSyFTCkNv:nixos.org

OfBorg

179 Members
Number of builds and evals in queue: <TBD>62 Servers

Load older messages


SenderMessageTime
17 Jun 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao) NameError: name 'default_flags' is not defined -> File "<string>", line 18, in create_machine_named
But in line 14 of the script you clearly see default_flags.
18:51:50
@blaggacao:matrix.orgDavid Arnold (blaggacao)What's going on here?18:51:57
@blaggacao:matrix.orgDavid Arnold (blaggacao)

and print(default_flags) on my local machine just before with subtest("Create the NixOS configuration"): gives:

{'hdaInterface': 'virtio', 'hda': 'vm-state-machine/machine.qcow2', 'qemuFlags': '-cpu max -m 1024'}
18:55:27
@blaggacao:matrix.orgDavid Arnold (blaggacao)(I can't beleive this would have to do with ofborg)18:58:32
@blaggacao:matrix.orgDavid Arnold (blaggacao)Here is a debugging variant with quite a few print statments: https://logs.nix.ci/?key=nixos/nixpkgs.125979&attempt_id=91f8642a-c409-4e2a-8097-ad6125be9a19 (hope that could help)19:19:01
@blaggacao:matrix.orgDavid Arnold (blaggacao)This is a mircale, I set up a face PR to compare to the previous state of the world: https://github.com/NixOS/nixpkgs/pull/127259/19:45:07
@blaggacao:matrix.orgDavid Arnold (blaggacao) * This is a mircale, I set up a fake PR to compare to the previous state of the world: https://github.com/NixOS/nixpkgs/pull/127259/19:45:26
@blaggacao:matrix.orgDavid Arnold (blaggacao)

It looks like python would be configured to reset the locals() dict within the scope of a function:

{'hdaInterface': 'virtio', 'hda': 'vm-state-machine/machine.qcow2', 'qemuFlags': '-cpu max -m 1024'}
# within create_machine_named(name):
===locals===: {'name': 'boot-after-install'}
19:47:11
@blaggacao:matrix.orgDavid Arnold (blaggacao)I have a feeling these tests are failing since some time, already... Let's see what https://github.com/NixOS/nixpkgs/pull/127259/checks?check_run_id=2852425621 will show us.19:48:21
@blaggacao:matrix.orgDavid Arnold (blaggacao)OK, looks like my PR caused this python behaviour... https://github.com/NixOS/nixpkgs/pull/127259/checks?check_run_id=285256709520:02:45
@blaggacao:matrix.orgDavid Arnold (blaggacao)Nothing to do with ofborg, uff!20:02:56
@blaggacao:matrix.orgDavid Arnold (blaggacao)

Solution:

  • exec(x) -- globals initialized at the moment exec function is initialized
  • exec(x, globals()) -- globals initialized at the moment the function is called
  • default_flags was a global symbol
20:27:07
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Solution:

  • exec(x) -- globals initialized at the moment exec function object is initialized
  • exec(x, globals()) -- globals initialized at the moment the function object is called
  • default_flags was a global symbol
20:27:44
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Solution:

  • exec(x) -- globals initialized at the moment exec function object is initialized
  • exec(x, globals()) -- globals initialized at the moment the function object is called
  • default_flags was a global symbol
20:27:52
@blaggacao:matrix.orgDavid Arnold (blaggacao)* **Solution:** - `exec(x)` -- globals initialized at the moment exec function object is _initialized_ - `exec(x, globals())` -- globals initialized at the moment A globals is accessored (?) - late enough in any case - `default_flags` was a global symbol20:54:29
22 Jun 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao)l.m.k.w.y.t. https://demo.hedgedoc.org/s/RO9YawHcY18:23:43
26 Jun 2021
@grahamc:nixos.org@grahamc:nixos.org invited @mjolnir:nixos.orgNixOS Moderation Bot.01:36:39
@mjolnir:nixos.orgNixOS Moderation Bot joined the room.01:36:41
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.01:36:43
27 Jun 2021
@piegames:matrix.orgpiegames joined the room.13:38:36
@piegames:matrix.orgpiegames left the room.13:40:04
@piegames:matrix.orgpiegames joined the room.13:40:21
@piegames:matrix.orgpiegamesSomehow Element doesn't want to show me this on the NixOS space :(13:40:59
@hexa:lossy.networkhexa piegames: join #teams:nixos.org 13:52:36
@piegames:matrix.orgpiegamesInteresting. Then why did it work for the NixOS Gnome channel?13:53:20
@piegames:matrix.orgpiegamesAh, maybe that teams sub-space is a new thing?13:53:29
@hexa:lossy.networkhexaJust confirmed that meta.maintainers won't get me review requests on tests or modules. ☹️22:36:23
@hexa:lossy.networkhexahttps://github.com/NixOS/ofborg/aissues/56822:36:33
@hexa:lossy.networkhexa * https://github.com/NixOS/ofborg/issues/56822:44:15
@server_stats:nordgedanken.devServer Stats Discoverer (traveler bot) joined the room.22:59:17

Show newer messages


Back to Room ListRoom Version: 6