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

[CI] Remove signed off IPs from the register module checker #977

Merged
merged 1 commit into from Nov 13, 2019

Conversation

eunchan
Copy link
Contributor

@eunchan eunchan commented Nov 13, 2019

This is temporary fix until the IP versioning discussion is completed.
As PR #965 merged, the Azure Pipeline failed on newer PRs.

Build log #L1010
Register headers not up-to-date. Regenerate them with 'make -C hw regs'.

PR #965 didn't include gpio, uart, rv_timer from the collaterals
as those IPs were signed off ( #676 #615 #652 ). The azure pipeline
checks every IPs' generated register modules.

It is good as it can catch this case, which prevents silent upgrade of
internal modules in the signed-off IPs. But it is also annoying every
PRs from now failed.

So, temporary the checker ignores signed-off IPs until better IP
versioning rule is suggested.

This is related to #975

@@ -42,7 +42,7 @@ jobs:
# displayName: 'Run Python lint'

- bash: |
make -C hw regs && git diff --exit-code
make -C hw regs && git restore -- hw/ip/gpio hw/ip/uart hw/ip/rv_timer && git diff --exit-code
Copy link
Contributor

Choose a reason for hiding this comment

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

How about removing these modules from the hw makefile instead of reverting the check here?

And please explicitly comment them out and add a comment referring to an issue explaining what's going on. Autogenerated files in the tree which are actually not auto-generated are problematic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. I've changed hw/Makefile rather than azure-pipelines.yml

@eunchan eunchan force-pushed the signedoff branch 2 times, most recently from 10b36a8 to d2417df Compare November 13, 2019 21:56
@imphil
Copy link
Contributor

imphil commented Nov 13, 2019

Thanks @eunchan!

This is temporary fix until the IP versioning discussion is completed.
As PR lowRISC#965 merged, the Azure Pipeline failed on newer PRs.

```log
Build log #L1010
Register headers not up-to-date. Regenerate them with 'make -C hw regs'.
```

PR lowRISC#965 didn't include `gpio`, `uart`, `rv_timer` from the collaterals
as those IPs were signed off ( lowRISC#676 lowRISC#615 lowRISC#652 ). The azure pipeline
checks every IPs' generated register modules.

It is good as it can catch this case, which prevents silent upgrade of
internal modules in the signed-off IPs. But it is also annoying every
PRs from now failed.

So, temporary `hw/Makefile` ignores signed-off IPs until better IP
versioning rule is suggested.

This is related to lowRISC#975

Signed-off-by: Eunchan Kim <eunchan@opentitan.org>
@eunchan eunchan merged commit 53e3b3b into lowRISC:master Nov 13, 2019
@eunchan eunchan deleted the signedoff branch November 13, 2019 22:32
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.

None yet

2 participants