| 17 Jun 2021 |
David 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 |
David Arnold (blaggacao) | What's going on here? | 18:51:57 |
David 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 |
David Arnold (blaggacao) | (I can't beleive this would have to do with ofborg) | 18:58:32 |
David 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 |
David 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 |
David 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 |
David 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 |
David 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 |
David Arnold (blaggacao) | OK, looks like my PR caused this python behaviour... https://github.com/NixOS/nixpkgs/pull/127259/checks?check_run_id=2852567095 | 20:02:45 |
David Arnold (blaggacao) | Nothing to do with ofborg, uff! | 20:02:56 |
David 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 |
David 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 |
David 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 |
David 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 symbol | 20:54:29 |
| 22 Jun 2021 |
David Arnold (blaggacao) | l.m.k.w.y.t. https://demo.hedgedoc.org/s/RO9YawHcY | 18:23:43 |
| 26 Jun 2021 |
| @grahamc:nixos.org invited NixOS Moderation Bot. | 01:36:39 |
| NixOS Moderation Bot joined the room. | 01:36:41 |
| @grahamc:nixos.orgchanged room power levels. | 01:36:43 |
| 27 Jun 2021 |
| piegames joined the room. | 13:38:36 |
| piegames left the room. | 13:40:04 |
| piegames joined the room. | 13:40:21 |
piegames | Somehow Element doesn't want to show me this on the NixOS space :( | 13:40:59 |
hexa | piegames: join #teams:nixos.org | 13:52:36 |
piegames | Interesting. Then why did it work for the NixOS Gnome channel? | 13:53:20 |
piegames | Ah, maybe that teams sub-space is a new thing? | 13:53:29 |
hexa | Just confirmed that meta.maintainers won't get me review requests on tests or modules. ☹️ | 22:36:23 |
hexa | https://github.com/NixOS/ofborg/aissues/568 | 22:36:33 |
hexa | * https://github.com/NixOS/ofborg/issues/568 | 22:44:15 |
| Server Stats Discoverer (traveler bot) joined the room. | 22:59:17 |