Skip to content

Conversation

@jlebon
Copy link
Member

@jlebon jlebon commented Nov 20, 2018

This is generally useful but especially so for the pkglist alone for
higher level tools displaying releases/build outputs.

Closes: #197

@jlebon
Copy link
Member Author

jlebon commented Nov 20, 2018

Still testing this!

@cgwalters
Copy link
Member

LGTM, will let someone else review though too.

This is generally useful but especially so for the pkglist alone for
higher level tools displaying releases/build outputs.

Closes: coreos#197
@dustymabe dustymabe self-requested a review November 20, 2018 21:43
@dustymabe
Copy link
Member

Still testing this!

let us know when ready.

@dustymabe dustymabe added the WIP PR still being worked on label Nov 20, 2018
@dustymabe dustymabe changed the title build: Also output commitmeta.json WIP: build: Also output commitmeta.json Nov 20, 2018
@jlebon
Copy link
Member Author

jlebon commented Nov 20, 2018

OK, now tested!

@jlebon jlebon removed the WIP PR still being worked on label Nov 20, 2018
Copy link
Member

@miabbott miabbott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not super familiar with the Python bindings, but I pulled the PR and it worked for me.

@miabbott
Copy link
Member

@jlebon Do you want to make a separate PR for the rhcos branch?

@jlebon
Copy link
Member Author

jlebon commented Nov 20, 2018

I can do so once the PR is merged.

@jlebon jlebon changed the title WIP: build: Also output commitmeta.json build: Also output commitmeta.json Nov 20, 2018
@cgwalters cgwalters merged commit 816b2dc into coreos:master Nov 21, 2018
@dustymabe
Copy link
Member

LGTM. sorry about being late

I did have one question. Is a negative value for timestamp allowed/expected?

[coreos-assembler]$ /usr/lib/coreos-assembler/commitmeta_to_json ./repo/ 82748f30b8475fa16f8e879b3f71daf00b9517188a2abca1eb13340d6dc15b7e
{                                   
  "rpmostree.inputhash" : "6577bfcb0b1d9c547b5d087eb2f36290c51750ffb66721f92303df31ea8713c4",
  "coreos-assembler.config-dirty" : false,
  "rpmostree.rpmmd-repos" : [                          
    {                                     
      "id" : "fedora",                                        
      "timestamp" : 2301568498846924800                    
    },                                 
    {                                                  
      "id" : "fedora-updates",                         
      "timestamp" : -7864432448686260224                                                    
    },                                  
    {                                   
      "id" : "fedora-updates-testing",  
      "timestamp" : 358858995915554816  
    },                                         
    {                                                      
      "id" : "dustymabe-ignition",      
      "timestamp" : 4343974019603628032                          
    }                                                            
  ],               

@lucab
Copy link
Contributor

lucab commented Nov 21, 2018

Positive timestamps are off as well (not in this century). Opposite integer endianness?

@jlebon
Copy link
Member Author

jlebon commented Nov 21, 2018

Yeah, that's some GVariant implementation detail. Will tweak!

@cgwalters
Copy link
Member

Opposite integer endianness?

Yep. libostree uses BE by default to force this issue (similar rationale as ext4). We need to swap here, which...hm. Maybe it'd be easier to have rpm-ostree compose tree --output-commitmeta-json.

(Of course there's the "JS numbers are really doubles" problem but that's only going to be an issue a rather long time from now)

@jlebon
Copy link
Member Author

jlebon commented Nov 21, 2018

#231

@jlebon
Copy link
Member Author

jlebon commented Nov 21, 2018

@jlebon Do you want to make a separate PR for the rhcos branch?

#233

@jlebon jlebon deleted the pr/add-commitmeta branch July 6, 2020 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants