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

GH workflow builds against ngen submodule commit, not current commit #104

Closed
hellkite500 opened this issue Mar 18, 2024 · 5 comments · Fixed by #105
Closed

GH workflow builds against ngen submodule commit, not current commit #104

hellkite500 opened this issue Mar 18, 2024 · 5 comments · Fixed by #105

Comments

@hellkite500
Copy link
Member

- name: Build Noah-owp-modular Surfacebmi

Just noticed that the workflow here is using the ngen build-submodule action to build the NOM library to test the integration with. This will cause the runner to use the pinned ngen submodule commit to build form, not the current code. This likely isn't the intended behavior here.

Can either toy with the ngen submod build action to try to get the correct code/pr-branch updated in the runner's ngen clone, or simply build the ngen lib from source (would be easier once #103 is complete). Could also hack somewhere in the middle and use the checked out code to overwrite the dir and try to re-build via a second action step.

Either way, something to think about for getting a local integration test setup.

@SnowHydrology
Copy link
Contributor

@hellkite500, other ngen-build workflows are failing (e.g., in evapotranspiration). Do you think this is the cause across formulations?

@madMatchstick
Copy link
Contributor

@hellkite500, other ngen-build workflows are failing (e.g., in evapotranspiration). Do you think this is the cause across formulations?

So, there's kind of two unique-ish things going on here,

  1. This issue Nels just outline. Most (if not all?) ngen_integration.yml workflows (across all implemented formation repos) directly call an existing 'ngen' action to build (sub)module libraries. Although convenient because the set-up already exists, this is not exactly what we want because action pulls whatever pinned commit is currently in ngen/extern from the submodules master/main branch. So we aren't even running the integration workflow with updated code from PR. At glance, I'm thinking ${{ github.head_ref }} maybe worth investigating...
  2. Because the NOM build requires a -DNGEN_IS_MAIN_PROJECT flag, the use of the linked action in (1) to build NOM specifically, now breaks as ngen issue #761 addresses. See proposed ngen pr #768 if this helps clarify.

@hellkite500 can correct me if I'm off. I believe getting item (1), this issue #104, is more priority.

@stcui007
Copy link
Contributor

stcui007 commented Mar 19, 2024 via email

@stcui007
Copy link
Contributor

stcui007 commented Mar 20, 2024 via email

@madMatchstick
Copy link
Contributor

ok, I'll take a look. Thanks @stcui007 !

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 a pull request may close this issue.

4 participants