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] Add codebuild #2229

Closed
wants to merge 2 commits into from
Closed

[ci] Add codebuild #2229

wants to merge 2 commits into from

Conversation

zarubaf
Copy link

@zarubaf zarubaf commented Oct 6, 2023

No description provided.

@zarubaf zarubaf force-pushed the zarubaf/feature/add-ci branch 2 times, most recently from 0837f5a to 157df56 Compare October 6, 2023 13:47
Signed-off-by: Florian Zaruba <[email protected]>
@zarubaf zarubaf force-pushed the zarubaf/feature/add-ci branch from 157df56 to 23c3476 Compare October 6, 2023 13:55
@MikeOpenHWGroup MikeOpenHWGroup marked this pull request as ready for review October 10, 2023 20:03
build:
commands:
- chown -R florian:florian .
- su florian -c "source /synopsys/scripts/env.sh; echo $PATH"
Copy link
Member

@MikeOpenHWGroup MikeOpenHWGroup Oct 10, 2023

Choose a reason for hiding this comment

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

Why doesn't this command require the runner to provide the password for user florian? (When I type su mike -c "source... I am prompted for my passwd.)

build:
commands:
- chown -R florian:florian .
- su florian -c "source /synopsys/scripts/env.sh; echo $PATH"
Copy link
Member

Choose a reason for hiding this comment

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

Looking at log AWS logs I see this:

[Container] 2023/10/10 20:38:27 Running command su florian -c "source /synopsys/scripts/env.sh; echo $PATH"

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/codebuild/user/bin

It seems that "sourcing" the script does not propagate the env vars to the invoking shell. How about this:

     commands:
      - chown -R florian:florian .
      - export VCS_HOME=/synopsys/vcs/S-2021.09-SP1
      - export PATH=$VCS_HOME/bin:$PATH
      - vcs -id

Copy link
Author

@zarubaf zarubaf Oct 11, 2023

Choose a reason for hiding this comment

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

If it works, please change whatever works! This PR is entirely yours now :-)

@MikeOpenHWGroup MikeOpenHWGroup added the Common Infrastructure Library components or scriptware common to all environments in CORE-V-VERIF label Nov 27, 2023
@zarubaf zarubaf closed this Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Common Infrastructure Library components or scriptware common to all environments in CORE-V-VERIF
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants