Skip to content

bootstrap-tarballs: Document script #1757

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
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

larsewi
Copy link
Contributor

@larsewi larsewi commented Jun 19, 2025

Example output:

$ BUILD_TYPE=DEBUG ./buildscripts/build-scripts/bootstrap-tarballs
 ---snip---
bootstrap-tarballs: Debug: Running configure on core repository...
bootstrap-tarballs: Debug: Running make dist on core repository...
bootstrap-tarballs: Debug: Running make distclean on core repository...
bootstrap-tarballs: Debug: Running configure on masterfiles repository...
bootstrap-tarballs: Debug: Running make dist on masterfiles repository...
bootstrap-tarballs: Debug: Running make tar-package on masterfiles repository...
bootstrap-tarballs: Debug: Running make distclean on masterfiles repository...
bootstrap-tarballs: Debug: Installing javascript dependencies...
bootstrap-tarballs: Debug: Installing PHP dependencies from mission-portal repository...
bootstrap-tarballs: Debug: Installing PHP dependencies from nova repository...
bootstrap-tarballs: Debug: Compiling Mission Portal styles...
bootstrap-tarballs: Debug: Installing LDAP API dependencies...

I snipped out noise from sourced scripts.

With exotics (no tests)
Build Status

Failures are unrelated:

@larsewi larsewi requested a review from craigcomstock June 19, 2025 11:18
@larsewi larsewi marked this pull request as draft June 19, 2025 11:40
@larsewi larsewi removed the request for review from craigcomstock June 19, 2025 11:40
larsewi added 9 commits June 20, 2025 11:30
Ticket: ENT-12600
Signed-off-by: Lars Erik Wik <[email protected]>
Ticket: ENT-12600
Signed-off-by: Lars Erik Wik <[email protected]>
I feel like the installation of dependencies does not belong here. Maybe
they should go in to the install-dependencies script?

Ticket: ENT-12600
Signed-off-by: Lars Erik Wik <[email protected]>
The use of `|| true` will cause an error message to be printed by `rm`
which may lead QA personnel to believe that there is something wrong
while there is not. -f will simply ignore nonexistent files.

```
rm: cannot remove 'nosuchfile': No such file or directory
```

Signed-off-by: Lars Erik Wik <[email protected]>
Added a comment to the top of the file explaining what the script does
and how you can run it.

Ticket: ENT-12600
Signed-off-by: Lars Erik Wik <[email protected]>
@larsewi larsewi force-pushed the bootstrap-tarballs branch from b762ba5 to 0bcf793 Compare June 20, 2025 10:02
@larsewi larsewi requested a review from craigcomstock June 20, 2025 10:05
@larsewi larsewi marked this pull request as ready for review June 20, 2025 10:05
Copy link
Contributor

@craigcomstock craigcomstock left a comment

Choose a reason for hiding this comment

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

yeah, phew!

# sure that they actually work.
#
# Currently this script also fetches pull request info and installs PHP and
# javascript dependencies. This core really does not belong here. Created a
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# javascript dependencies. This core really does not belong here. Created a
# javascript dependencies. This code really does not belong here. I created a

# .
# ├── buildscripts
# ├── core
# ├── enterprise
Copy link
Contributor

Choose a reason for hiding this comment

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

if PROJECT=community you don't need all the ent stuff. Maybe clarify that with separate lists?

Comment on lines +41 to +42
# Get information about PRs among the used revisions. These PRs will have to be
# notified of build progress.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# Get information about PRs among the used revisions. These PRs will have to be
# notified of build progress.
# Get information about PRs among the used revisions.
# These PRs will have to be notified of build progress.

I would somewhat prefer a sentence per line honestly. easier for maintenance and editing.

Comment on lines +122 to +123
if test -f "$BASEDIR"/mission-portal/public/scripts/package.json; then
cd "$BASEDIR"/mission-portal/public/scripts
Copy link
Contributor

Choose a reason for hiding this comment

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

This change isn't so needed but is fine. I often prefer to avoid the quotes as if more vars enter the expression things get noisy.

fi
)

echo "$(basename "$0"): Debug: Installing PHP dependencies from mission-portal repository..."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
echo "$(basename "$0"): Debug: Installing PHP dependencies from mission-portal repository..."
echo "$(basename "$0"): Debug: Installing PHP composer dependencies from mission-portal repository..."

CKSUM=$(sum sha256sums.txt | cut -d ' ' -f 1)
mv sha256sums.txt sha256sums."$CKSUM".txt

echo "$(basename "$0"): Debug: Installing javascript dependencies..."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
echo "$(basename "$0"): Debug: Installing javascript dependencies..."
echo "$(basename "$0"): Debug: Installing javascript npm dependencies..."

fi
)

echo "$(basename "$0"): Debug: Installing PHP dependencies from nova repository..."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
echo "$(basename "$0"): Debug: Installing PHP dependencies from nova repository..."
echo "$(basename "$0"): Debug: Installing PHP composer dependencies from nova repository..."

fi
)

echo "$(basename "$0"): Debug: Installing LDAP API dependencies..."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
echo "$(basename "$0"): Debug: Installing LDAP API dependencies..."
echo "$(basename "$0"): Debug: Installing LDAP API PHP composer dependencies..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants