question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[question] Numeric node IDs in lockfiles

See original GitHub issue

When our CI builder script runs, it separates the export, build, test, upload steps for each recipe from our monorepo. Exporting is performed only once for all recipes. Building (via conan create) is performed according to the build-order determined by conan. Finally, testing and uploading is done via conan test and conan upload.

The reason for separating each step is to be able to report on what exactly fails.

When using lockfiles, I lock a metapackage (“variant”) with the profile. Later, I supply this lockfile to each conan create invocation.

Then, in the test step I do the same, with the expectation that test will utilize all the package revisions that were just built. However, I get an error along the lines of:

ERROR: The node ID 68 was not found in the lock 

If I look inside the lockfile, there is unsurprisingly, no node with that ID. But why is conan looking for it? My expectation would be that it would work similarly to when I pass the lockfile to conan create. And the effect should be “use the revisions that are locked in this lockfile to run the test”. Am I misunderstanding something?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Mar 3, 2020

Yes, the I do get the following warning: WARN: Package can't be locked, not found in the lockfile, is normal, it is exactly what is happening, the cmake_installer node was not locked, as the test_package/conanfile.py is NOT in the locked graph. Build requires are also private for each node, so it is normal that there are multiple nodes for build-requires.

I keep investigating @sztomi issues.

0reactions
memshardedcommented, Mar 9, 2020

We are releasing a general.relax_lockfile configuration in 1.23 to implement this behavior, because of concerns of breaking something. This config is highly experimental, most likely will be removed in future versions, but we wanted to at least provide an opt-in for this behavior to be able to move forward.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install produces different lockfiles on different computes
I'm opening this issue because: npm is crashing. npm is producing an incorrect install. npm is doing something I don't understand.
Read more >
When Not to Use Lock Files with Node.js - Hacker News
Yes, you should ignore lock files in the .npmignore, so that they won't be published to npm, because library users don't consume them....
Read more >
Lockfiles — conan 1.23.0 documentation
Lockfiles are files that store the information of a dependency graph, including the exact versions, revisions, options, and configuration of that dependency ...
Read more >
IT22683: INTEGRATION NODE ABEND ON STARTUP ... - IBM
If the file size is greater than 1024 bytes, storage corruption occurs. Problem conclusion. The product no longer abends on startup if the...
Read more >
Elasticsearch, Failed to obtain node lock, is the following ...
first find the id of running elastic. ... There were some answers to remove node.lock file but that didn't help since the running...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found