Skip to content

Conversation

@kormide
Copy link
Contributor

@kormide kormide commented Dec 23, 2022

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

The test_aio step always has a cache miss on //aio:dgeni.

Using 'always' as the stamp attribute caused stable-status.txt to always be included as an input, which has different values on different ci executors causing a cache miss.

We run the regular aio build without stamping on ci so only include status files when stamping is explicitly enabled.

What is the new behavior?

Cache hit on ci. Note that this does not fix the caching issues for the test_aio_local step which must enable stamping for architect to work with local angular packages. I will look into those issues separately.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Note that even when there is a cache hit you will often see dgeni output in the ci logs. This is because Bazel also caches stdout and seeing this output does not indicate that dgeni is re-running. Outputting the json execution log confirms the cache hit.

Using 'always' as the stamp attribute caused stable-status.txt
to always be included as an input, which has different values on
different ci executors causing a cache miss.

We run the regular aio build without stamping on ci so only include
status files when stamping is explicitly enabled.
@kormide kormide requested a review from devversion December 23, 2022 19:59
@kormide kormide marked this pull request as ready for review December 23, 2022 19:59
@pullapprove pullapprove bot requested a review from jessicajaniuk December 23, 2022 19:59
@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Dec 23, 2022
@ngbot ngbot bot added this to the Backlog milestone Dec 23, 2022
exec_properties = ENABLE_NETWORK,
output_dir = True,
stamp = "@rules_nodejs//nodejs/stamp:always",
stamp = "@rules_nodejs//nodejs/stamp:use_stamp_flag",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is actually the default, but I like to keep this here to indicate that this action makes use of stamping.

Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

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

Yay. Thanks!

Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

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

LGTM

Reviewed-for: global-dev-infra-approvers

@devversion devversion added the action: merge The PR is ready for merge by the caretaker label Dec 23, 2022
@devversion devversion removed the request for review from jessicajaniuk December 23, 2022 20:06
@devversion devversion added the target: patch This PR is targeted for the next patch release label Dec 23, 2022
@devversion
Copy link
Member

This PR was merged into the repository by commit 8c9f067.

devversion pushed a commit that referenced this pull request Dec 24, 2022
Using 'always' as the stamp attribute caused stable-status.txt
to always be included as an input, which has different values on
different ci executors causing a cache miss.

We run the regular aio build without stamping on ci so only include
status files when stamping is explicitly enabled.

PR Close #48585
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 24, 2023
trekladyone pushed a commit to trekladyone/angular that referenced this pull request Feb 1, 2023
Using 'always' as the stamp attribute caused stable-status.txt
to always be included as an input, which has different values on
different ci executors causing a cache miss.

We run the regular aio build without stamping on ci so only include
status files when stamping is explicitly enabled.

PR Close angular#48585
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants