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

Added commitID for activation tests that immediately run state pull to update. #2862

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

mitchell-as
Copy link
Contributor

@mitchell-as mitchell-as commented Nov 1, 2023

BugDX-2308 Nightly failure: Activation errors

The commitID doesn't matter, but it ought to be specified. Projects without commitIDs don't exist in the real world as far as I can tell.

@mitchell-as
Copy link
Contributor Author

The failure here is intermittent and not related to this PR.

@mitchell-as mitchell-as requested a review from MDrakos November 1, 2023 18:01
@mitchell-as mitchell-as marked this pull request as ready for review November 1, 2023 18:01
@@ -423,6 +423,7 @@ version: %s
`, constants.BranchName, constants.Version))

ts.PrepareActiveStateYAML(content)
ts.PrepareCommitIdFile("59404293-e5a9-4fd0-8843-77cd4761b5b5")
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't the commit ID file be disabled for v43? Sorry if I'm missing something here...

Copy link
Contributor Author

@mitchell-as mitchell-as Nov 1, 2023

Choose a reason for hiding this comment

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

That function body will have a temporary shim to handle legacy vs. commit ID file. At this time since that PR is not merged yet, we're still using commit ID files.

Copy link
Member

Choose a reason for hiding this comment

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

Does this change now that the PR is removed?

Copy link
Contributor Author

@mitchell-as mitchell-as Nov 2, 2023

Choose a reason for hiding this comment

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

The function ends up modifying the activestate.yaml to the project: org/project#commitId format instead of creating a commit file. Whenever we end up putting localcommits and buildscripts back, that function will go back to writing commit files instead of modifying activestate.yaml.

Either way is transparent to the test and the test should not care what happens behind the scenes.

@mitchell-as mitchell-as requested a review from MDrakos November 2, 2023 14:09
@mitchell-as mitchell-as closed this Nov 2, 2023
@mitchell-as mitchell-as reopened this Nov 2, 2023
@mitchell-as mitchell-as merged commit 4b4b5f1 into version/0-43-0-RC1 Nov 2, 2023
20 of 28 checks passed
@mitchell-as mitchell-as deleted the mitchell/dx-2308 branch November 2, 2023 22:00
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.

2 participants