Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

om ci: Copy results back from remote Nix store #360

Merged
merged 1 commit into from
Dec 10, 2024
Merged

om ci: Copy results back from remote Nix store #360

merged 1 commit into from
Dec 10, 2024

Conversation

srid
Copy link
Member

@srid srid commented Dec 10, 2024

During om ci run --on ssh://.. -o om.json

  • Copy built paths back to local store but only if `-o is specified
  • Also, make sure -o om.json creates that JSON file locally

Resolves #358 - and this can also be used as an alternative to remote builder protocol with its own benefits (like custom CI steps being run natively).

Also, write the JSON file locally.
@srid
Copy link
Member Author

srid commented Dec 10, 2024

nix --refresh run github:juspay/omnix/ci-ssh-json -- ci run github:haskell/hackage-server -o om.json --on ssh://pureintent

image

❯ jq < om.json
{
  "systems": [
    "x86_64-linux"
  ],
  "flake": "/nix/store/if3lnyl2xzdlq2q5068xh3sw5d26m3rw-source",
  "result": {
    "ROOT": {
      "build": {
        "outPaths": [
          "/nix/store/7417161wlsvnm8ziap3bdx8lsgcg1can-mirror-hackage-server/bin/mirror-hackage-server",
          "/nix/store/9n1mrjwkfqagn40jcigapj9qhlq9g7rf-run-hackage-server/bin/run-hackage-server",
          "/nix/store/vbq99wyi906s2gjr87f03kagpgd3ib74-hackage-server-0.5.1",
          "/nix/store/vbq99wyi906s2gjr87f03kagpgd3ib74-hackage-server-0.5.1/bin/hackage-build",
          "/nix/store/vbq99wyi906s2gjr87f03kagpgd3ib74-hackage-server-0.5.1/bin/hackage-import",
          "/nix/store/vbq99wyi906s2gjr87f03kagpgd3ib74-hackage-server-0.5.1/bin/hackage-mirror",
          "/nix/store/vbq99wyi906s2gjr87f03kagpgd3ib74-hackage-server-0.5.1/bin/hackage-server",
          "/nix/store/zwb4wsw8bf43p7znl5mmi7l8fr1cnxwv-ghc-shell-for-hackage-server-0.5.1-0"
        ],
        "byName": {
          "hackage-server": "/nix/store/vbq99wyi906s2gjr87f03kagpgd3ib74-hackage-server-0.5.1",
          "ghc-shell-for-hackage-server-0.5.1-0": "/nix/store/zwb4wsw8bf43p7znl5mmi7l8fr1cnxwv-ghc-shell-for-hackage-server-0.5.1-0"
        }
      }
    }
  }
}

@srid srid merged commit df3cc2b into main Dec 10, 2024
5 checks passed
@srid srid deleted the ci-ssh-json branch December 10, 2024 02:14
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.

om ci: -o does not work when used with --on
1 participant