-
Notifications
You must be signed in to change notification settings - Fork 5
fix: Stabilise the CI #45
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
Open
yejseo01
wants to merge
48
commits into
main
Choose a base branch
from
move-sim
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 25 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
b24db69
fix: Copy the bundle to the VM
yejseo01 eebf9ec
fix: cleanup properly on bundle path
yejseo01 fd02300
fix: fix CI by migrating the simulator to the VM
yejseo01 45b8105
fix: stabilize CI
yejseo01 20afe34
fix: isolate the remoteproc names
yejseo01 ca87c58
fix: fix log skipping
yejseo01 fddc63a
fix: setup simulator in non-mounted area
yejseo01 02f713c
fix: Assert checks filesystem inside VM
yejseo01 d382711
fix: setup simulator and binaries in unmounted VM area
yejseo01 f13be98
lint: remove unnecessary print
yejseo01 2a7835c
fix: don't mount the area!
yejseo01 1b7f752
fix: improve remoteproc device indexing
yejseo01 92212d0
fix: remove mount dependency
yejseo01 b4b1919
fix: remove unused mount directory
yejseo01 28dde4a
fix: add test helper file
yejseo01 0f4065e
fix: Make sure that destination folders exist before building binaries
yejseo01 8168bd2
lint: receive error
yejseo01 a24fc01
lint: tie same types together in functions
yejseo01 d2445b5
refactor: Refactor the git process
yejseo01 c10291d
lint: verbosify function name
yejseo01 4db0ace
lint: rename function
yejseo01 880e601
lint: remove unnecessary comment
yejseo01 8a12116
fix: preserve Stop()'s error if there is any
yejseo01 efc268c
fix: remove potential lockup
yejseo01 87abf3e
fix: remove unncessary bits
yejseo01 1bb529b
fix: Pin the remoteproc-simulator when building
yejseo01 8f2ee8a
fix: Add assertion
yejseo01 3db3984
fix: make the detection target message const
yejseo01 e6451c8
fix: make rootpathPrefix more identifiable
yejseo01 12e7641
fix: don't use rootpathPrefix as binary dumping area
yejseo01 ef68f98
fix: retrieve correct number of files in VM dir
yejseo01 9c585fb
fix: remove simulator installation
yejseo01 4bc2193
fix: remove simulator installation properly
yejseo01 3aa6fa0
fix: download artifacts rather than building in CI
yejseo01 74f98ec
debug: check the architecture
yejseo01 37ed6b1
lint: remove unnecessary messages
yejseo01 79d1acc
lint: rename variable
yejseo01 778ed2c
fix: cleanup properly after the simulator inside the VM
yejseo01 93ad8cf
fix: remove usage of WithIndex()
yejseo01 55a26f9
fix: take if statement out of the loop
yejseo01 6569a68
refactor: cleanup parameter intake of Start()
yejseo01 1073bfd
lint: remove unused public function
yejseo01 84a6d9c
lint: pass limavm.Debian not limavm.VM
yejseo01 46bbba1
feat: implement vm.ReadDir() and use it
yejseo01 995da7c
fix: remove unnecessary modules
yejseo01 2cc4bd3
lint: rename variable to match consistency
yejseo01 684e8ce
fix: remove unnecessary parameters
yejseo01 3d19d40
fix: rename variable properly
yejseo01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,38 +1,38 @@ | ||
| package remoteproc | ||
|
|
||
| import ( | ||
| "os" | ||
| "path/filepath" | ||
| "testing" | ||
| "time" | ||
|
|
||
| "github.com/arm/remoteproc-runtime/e2e/limavm" | ||
| "github.com/stretchr/testify/assert" | ||
| "github.com/stretchr/testify/require" | ||
| ) | ||
|
|
||
| func AssertState(t testing.TB, deviceDir string, wantState string) { | ||
| func AssertState(t testing.TB, vm limavm.VM, deviceDir, wantState string) { | ||
| t.Helper() | ||
| const waitFor = 500 * time.Millisecond | ||
| const tickEvery = 100 * time.Millisecond | ||
| stateFilePath := filepath.Join(deviceDir, "state") | ||
| assert.EventuallyWithT(t, func(c *assert.CollectT) { | ||
| assertFileContent(c, stateFilePath, wantState) | ||
| assertFileContent(c, vm, stateFilePath, wantState) | ||
| }, waitFor, tickEvery) | ||
| } | ||
|
|
||
| func RequireState(t testing.TB, deviceDir string, wantState string) { | ||
| func RequireState(t testing.TB, vm limavm.VM, deviceDir, wantState string) { | ||
| t.Helper() | ||
| const waitFor = 500 * time.Millisecond | ||
| const tickEvery = 100 * time.Millisecond | ||
| stateFilePath := filepath.Join(deviceDir, "state") | ||
| require.EventuallyWithT(t, func(c *assert.CollectT) { | ||
| assertFileContent(c, stateFilePath, wantState) | ||
| assertFileContent(c, vm, stateFilePath, wantState) | ||
| }, waitFor, tickEvery) | ||
| } | ||
|
|
||
| func assertFileContent(t assert.TestingT, path string, wantContent string) { | ||
| gotContent, err := os.ReadFile(path) | ||
| func assertFileContent(t assert.TestingT, vm limavm.VM, path, wantContent string) { | ||
| gotContent, err := vm.ReadFileAsString(path) | ||
| if assert.NoError(t, err) { | ||
| assert.Equal(t, wantContent, string(gotContent)) | ||
| assert.Equal(t, wantContent, gotContent) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.