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

Refactor snapshot updating/checking scripts #172

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

ChAoSUnItY
Copy link
Collaborator

Previously in #171, I had encountered an snapshot checking issue, which is snapshot only contains arm32 backend but rv32. In order to resolve this, I have added few more rules to update/check snapshots:

  • make update-snapshots / make check-snapshots
    Updates/Checks all backends' snapshots.

  • make update-snapshot / make check-snapshots
    Updates/Checks current backend's snapshots.

Additionally I've separated arm and riscv backend CI into different matrix, to better observe which backend is running into failure.

Breaking changes for snapshots scripts

Now directly using snapshots scripts is unrecommended, instead, uses the above mentioned make rules to update/check snapshots.

@jserv jserv requested a review from vacantron December 7, 2024 08:20
@ChAoSUnItY
Copy link
Collaborator Author

Should I create a mkconfig for current session variable storage? For example, when I changed to riscv, until next time I make distclean config ARCH=arm, the remaining make target's ARCH should be riscv without explicitly specifying.

@jserv
Copy link
Collaborator

jserv commented Dec 7, 2024

Should I create a mkconfig for current session variable storage? For example, when I changed to riscv, until next time I make distclean config ARCH=arm, the remaining make target's ARCH should be riscv without explicitly specifying.

Feel free to consolidate! Check #44

@ChAoSUnItY ChAoSUnItY force-pushed the fix/rv32-snapshot branch 3 times, most recently from 2652237 to 53e2042 Compare December 7, 2024 09:03
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@ChAoSUnItY
Copy link
Collaborator Author

I would like to work on package prerequisites validation in another PR after the this one is merged.

Makefile Outdated Show resolved Hide resolved
tests/update-snapshots.sh Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
tests/check-snapshots.sh Outdated Show resolved Hide resolved
tests/update-snapshots.sh Outdated Show resolved Hide resolved
tests/update-snapshots.sh Outdated Show resolved Hide resolved
Copy link
Collaborator

@jserv jserv left a comment

Choose a reason for hiding this comment

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

Rebase the latest master branch.

- Adds .session.mk generation for consistent
  makefile execution behavior.
- Refine document about snapshot test

Co-authored-by: Meng-Hung Chen <[email protected]>
@jserv jserv merged commit 882c3ad into sysprog21:master Dec 15, 2024
6 checks passed
@jserv
Copy link
Collaborator

jserv commented Dec 15, 2024

Thank @ChAoSUnItY for contributing!

@ChAoSUnItY ChAoSUnItY deleted the fix/rv32-snapshot branch December 15, 2024 13:24
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.

3 participants