If it is true (the default), there is no change from the current behavior,
but setting it to False and running another package's tests allows
to make sure that package does not rely on origin ids at all. (eg. see D1691)
Details
Diff Detail
- Repository
- rDSTO Storage manager
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/542/ for more details.
sounds fine.
a couple of suggestion to improve readability.
swh/storage/in_memory.py | ||
---|---|---|
1146 | why not use the same instruction as below? return origin_id if ENABLE_ORIGIN_IDS else origin['url'] | |
1160 | Just a note outside the scope of this diff. | |
1334 | simplify this a bit: key = 'id' if ENABLE_ORIGIN_IDS else 'url' visit['origin'] = self._origins[visit['origin']['url']][key] return visit |
swh/storage/in_memory.py | ||
---|---|---|
1146 | I used the ternary to make tests shorter, but in the main code I prefer readability. |
Build is green
See https://jenkins.softwareheritage.org/job/DSTO/job/tox/544/ for more details.
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/545/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/545/console